Make AI Agents (New)
Create AI agents for different...
Form-triggered AI agent
4 min
this form triggered ai agent {{scenario singular lowercase}} watches new form responses, and the agent replies to form questions in an email prerequisites a gmail account a tally account a tally form configured with the following fields your first name your last name your email your question a test form submission with your personal email address while this example uses tally, you can use any forms service step 1 add a watch new responses module the tally > watch new responses module is a https //help make com/webhooks that watches all new form responses to add the watch new responses module in the {{scenario singular}} builder, click the giant plus in the app search, search for and click tally click the watch new responses module click create a webhook in webhook name , name your webhook to identify it later in connection , select an existing tally connection alternatively, click add to create a new one and select oauth in form id , select the form that you created earlier click save click save click save on the {{scenario singular}} toolbar test the module click run once on the {{scenario singular}} toolbar click the output bubble to view your responses from the test form you submitted earlier you've now added a tally > watch new responses module to your {{scenario singular lowercase}} step 2 add a run an agent (new) module to add the make ai agents (new) > run an agent (new) module click the plus icon next to the tally > watch new responses module in the app search, search for and click make ai agents (new) click the run an agent (new) module in connection , select an existing ai provider connection from the dropdown or click add to add a new one if you don't want to set up an account with an ai provider, select make's ai provider in model , select a model from your chosen ai provider in instructions , describe who your agent is and what it does you can copy paste the below you are a friendly agent who answers general questions always use html for your answers you request html here so that the agent provides its answers in an email in a structured format in input , map the fields by id your question value from the tally > watch new responses module, so the agent receives the question from the tally form click save click save on the {{scenario singular}} toolbar you've now added the make ai agents (new) > run an agent (new) module to your {{scenario singular lowercase}} step 3 add a send an email module with the gmail > send an email module, the agent answers the form question directly to the user's email address to add a send an email module click the plus icon next to the run an agent (new) module in the app search, search for and click gmail click the send an email module in connection , select an existing gmail connection from the dropdown or click add to create a new one in to , click add recipient in recipient email address 1 , map the fields by id your email value from the tally > watch new responses module, so the agent replies to the email address specified in the tally form in subject , specify the subject of the agent's email reply, for example, "thanks for your question!" in body type, select raw html from the dropdown in content , map the response value from the run an agent (new) module click save click save on the {{scenario singular}} toolbar test the {{scenario singular lowercase}} click the down arrow next to run once on the {{scenario singular}} toolbar in scenario run , select the previous scenario run to use its trigger data as test data click run once check your email to see if the agent replied to your question you've now created a form triggered ai agent {{scenario singular lowercase}}