How to Add a Chatbot Form That Sends Leads to Your CRM

Posted
Mary Elo
Mary Elo

A chatbot form collects a visitor’s details inside the chat, at the moment they ask for a quote, a callback or a demo, instead of sending them off to a contact page. In this guide you’ll add a chatbot form to an Easy-Peasy.AI AI agent and send each submission straight to your CRM with a webhook. You won’t need Zapier or another subscription.

Chatbot form inside an AI agent's website chat asking for name, email, phone, budget and consent checkboxes

What Is a Chatbot Form?

A chatbot form is a short form that your chatbot shows in the conversation when it needs structured details. The visitor types a question like “Can I get a quote?”, the agent answers and shows a form with the fields you chose: name, email, phone, budget, a yes/no question. The visitor fills it in without leaving the chat.

Once the form is submitted, the conversation keeps going. The agent sees the answers, can reply to them (“Thanks, Ann, a 3-bedroom in Austin is a great fit for…”), and can pass them on to your other tools.

Chatbot Form vs. Contact Form

Both collect the same details. The difference is timing and context.

Contact form Chatbot form
When it appears On a separate page the visitor has to find In the chat, the moment the visitor asks for something
Context Only the fields The fields plus the whole conversation before them
After submitting A thank-you page The agent replies to the answers and keeps helping
Where the data goes Email or your website builder Your Leads list, email, and any CRM by webhook

A contact form still makes sense for visitors who already know what they want. A chatbot form catches the ones who start with a question.

How to Add a Chatbot Form to Your AI Agent (Step-by-Step)

If you don’t have an agent yet, create one and add it to your website first. It takes a few minutes: give it your website or documents, and it answers questions from them.

Step 1: Open your agent’s Actions

In your agent’s dashboard, open Build → Actions and choose Custom Form. Actions are the things your agent can do besides answering: show a form, call an API, book a meeting.

Step 2: Build the form

Give the form a title and a short description, then add your fields. Each field has a type: Text, Email, Number, Text Area, Select or Checkbox. Mark the ones you need as Required.

Custom Form editor for a chatbot form with a text field and two checkbox fields for consent

For a yes/no question, such as consent to be contacted or to receive marketing emails, use a Checkbox. Your CRM receives it as true or false. Make it required only when the visitor must agree before submitting: a required checkbox must be ticked.

Step 3: Tell your agent when to show it

Every action has Trigger Instructions: plain-language rules for when the agent should use it. For example:

Show this form when the visitor asks for a quote, a viewing or a callback, or wants someone to contact them.

Step 4: Try it in the Playground

Open the Playground, ask for a quote and fill in the form. Every submission is saved under Activity → Leads, and you can get an email for each new lead in Notifications.

How to Send Chatbot Form Submissions to Your CRM with a Webhook

A webhook is a web address that accepts data. Most CRMs and automation tools can give you one: you send it a JSON message, and it creates a contact, a deal or a task. Look for “incoming webhook” or “webhook received” in your CRM or automation tool and copy the URL it gives you. The Wix example below shows where to find it.

There are two ways to send the form’s answers there. Use one of them for each destination, or that destination gets every lead twice.

Option 1: Let the form send each submission (simplest)

Open your Custom Form in Build → Actions and turn on Send each submission to a webhook:

  1. Paste your CRM’s address into Webhook URL. Add Headers only if your CRM asks for an API key.
  2. Under JSON keys, give each field the name your CRM expects, such as first_name, email or contact_consent. A blank key uses a version of the field’s label.
  3. Click Copy next to Example payload. That’s the JSON your CRM will receive, ready to paste wherever it asks for a sample.
  4. Save the form.

From then on, every submitted form is posted to your CRM the moment the visitor clicks submit, whatever the conversation is about. Checkboxes arrive as true or false, numbers as numbers, and each message also carries form_title and submitted_at:

{
  "first_name": "Ann",
  "last_name": "Lee",
  "email": "[email protected]",
  "phone": "+1 555 010 2030",
  "budget": 450000,
  "area": "Austin",
  "contact_consent": true,
  "marketing_consent": false,
  "form_title": "Book a viewing",
  "submitted_at": "2026-12-06T00:24:08.578Z"
}

Chatbot form settings with Send each submission to a webhook turned on, the webhook URL, JSON keys and an example payload

Option 2: Send your own JSON with a Custom Action

When your CRM needs a particular shape, such as nested objects, fixed values or a different structure, add a Custom Action in Build → Actions and fill in:

  • Endpoint URL: the webhook URL you copied
  • HTTP Method: POST
  • Headers: usually none (the request is sent as JSON automatically). Add one if your CRM asks for an API key.
  • Payload Template: the JSON your CRM should receive, with a {{name}} wherever a value from the form goes
{
  "first_name": "{{first_name}}",
  "last_name": "{{last_name}}",
  "email": "{{email}}",
  "phone": "{{phone}}",
  "budget": {{budget}},
  "area": "{{area}}",
  "contact_consent": {{contact_consent}},
  "marketing_consent": {{marketing_consent}}
}

Under the template, the editor lists every value your agent will fill in. Each {{name}} becomes a value the agent takes from the conversation, so the form’s answers land in the right place.

Custom Action with a webhook endpoint, POST method and a payload template with chatbot form variables

Then give the Custom Action its own Trigger Instructions, naming your form:

Run this once, right after the visitor submits the "Book a viewing" form, using the answers from that submission. Don't mention this step to the visitor.

When the visitor submits the form, their answers go into the chat, and your agent calls the Custom Action in its next reply with each value written into your template.

Map the fields in your CRM and test

Whichever option you chose, tell your CRM which JSON key goes into which contact field (most tools ask you for a sample of the JSON for this). Then submit the form once in the Playground and check that the contact arrived with the right values.

Chatbot form answers submitted in the Playground and the AI agent confirming the viewing

Example: Send Chatbot Form Leads to Wix CRM

Wix can start an automation whenever a webhook receives data, and that automation can create or update a contact in your Wix CRM. Here’s the setup for a real estate agency whose agent books viewings:

  1. In your Wix dashboard, open Automations, click + Create Automation, then + Start from Scratch.
  2. Choose Webhook received as the trigger and click Copy next to the webhook URL. Paste it into your form’s Webhook URL (or your Custom Action’s Endpoint URL).
  3. Click Set Payload Data Structure and paste the example payload you copied from the form (or a sample of your Custom Action’s JSON):
    {
      "first_name": "Ann",
      "last_name": "Lee",
      "email": "[email protected]",
      "phone": "+1 555 010 2030",
      "budget": 450000,
      "area": "Austin",
      "contact_consent": true,
      "marketing_consent": false
    }

    Click Preview Structure, save it and click Apply.

  4. Click Add Step, choose an action that creates or updates the contact, and map each webhook field to a contact field.
  5. Activate the automation and submit your chatbot form once to test it.

Two Wix details worth knowing: switching the trigger to something else and back gives you a new webhook URL (paste the new one into your form or Custom Action), and Wix won’t update the field mapping by itself if you change your JSON later, so set the payload structure again after any change.

Running a Wix site? The AI chatbot for Wix page shows how to add the agent to your site.

Send Chatbot Form Leads to HubSpot, Slack, Google Sheets and Other Apps

The same two options work with almost any app. Tools that give you a webhook URL take the form’s own webhook as it is: paste the URL and you’re done. Apps with an API want a particular JSON shape and an API key, so you send those with a Custom Action and a payload template. Your key goes in the action’s Headers, where the AI agent never sees it.

Platform Send it with What you paste
Wix Form webhook The URL of an Automations “Webhook received” trigger
Zapier, Make, n8n Form webhook A Catch Hook, Custom webhook or Webhook node URL
Airtable Form webhook The URL of a “When webhook received” automation trigger
Google Sheets Form webhook An Apps Script web app URL
HighLevel (GoHighLevel) Form webhook An Inbound Webhook trigger URL
Zoho CRM, Salesforce Form webhook A Zoho Flow, Zapier, Make or n8n webhook URL
HubSpot Custom Action The Contacts API and an access token
Pipedrive Custom Action The Persons API (v2) and your API token
ActiveCampaign Custom Action The contact sync API and your API key
Brevo Custom Action The contacts API and your API key
Follow Up Boss Custom Action The events API and your API key
Notion Custom Action The pages API and an integration token
Slack, Discord, Google Chat, Microsoft Teams Custom Action The channel’s incoming webhook URL

You can combine them for different destinations: the form’s webhook can add every lead to your CRM while a Custom Action posts a note to Slack.

Zapier, Make and n8n webhooks

Automation tools are the easy way to reach apps without their own webhook, such as Salesforce. In Zapier, start a Zap with Webhooks by Zapier → Catch Hook (it needs a paid Zapier plan). In Make, add the Webhooks → Custom webhook module. In n8n, start a workflow with a Webhook node, activate the workflow and copy its production URL. Paste that URL into your form’s Webhook URL, submit the form once so the tool learns the fields, then add the step that creates the lead. Read more in the guides from Zapier, Make and n8n.

Airtable

Create an automation with the When webhook received trigger, copy its URL into your form’s Webhook URL and submit the form once. In Airtable, click Run test so it picks up the fields, add a Create record action that maps them to your columns, and turn the automation on. The trigger is on every Airtable plan, and each lead counts as one automation run (Airtable’s guide).

Prefer the API? Use a Custom Action with the endpoint https://api.airtable.com/v0/YOUR_BASE_ID/YOUR_TABLE, the header Authorization: Bearer YOUR_TOKEN (a personal access token with the data.records:write scope) and a template whose keys match your column names:

{
  "fields": {
    "First name": "{{first_name}}",
    "Last name": "{{last_name}}",
    "Email": "{{email}}",
    "Phone": "{{phone}}"
  }
}

Google Sheets

Google Sheets has no webhook of its own, but a few lines of Apps Script give it one. In your sheet, open Extensions → Apps Script and paste:

function doPost(e) {
  var data = JSON.parse(e.postData.contents);
  SpreadsheetApp.getActiveSpreadsheet().getSheets()[0].appendRow([
    new Date(), data.first_name, data.last_name, data.email, data.phone,
    data.contact_consent, data.marketing_consent
  ]);
  return ContentService.createTextOutput('ok');
}

Click Deploy → New deployment, choose Web app, set Execute as to yourself and Who has access to Anyone, then copy the web app URL (it ends in /exec) into your form’s Webhook URL. Each submission adds a row. If you change the script later, deploy a new version of the same deployment so the URL stays the same (Google’s guide to web apps).

HighLevel (GoHighLevel)

In a HighLevel workflow, add the Inbound Webhook trigger (a premium trigger), copy its URL into your form’s Webhook URL and submit the form once. Pick that request as the sample data, then add a contact action and map the fields. HighLevel needs an email or a phone number in each request, so make one of them required in your form (HighLevel’s guide).

Zoho CRM and Salesforce

Zoho CRM’s API uses short-lived OAuth tokens, so give it a webhook in front: a Zoho Flow webhook trigger set to JSON, followed by a Zoho CRM action that creates the lead. Salesforce’s Web-to-Lead takes classic form fields rather than JSON, so the simplest route there is a Zapier, Make or n8n webhook with a Salesforce “create lead” step.

HubSpot

Send new leads to HubSpot’s Contacts API with a Custom Action. You need an access token with the crm.objects.contacts.write scope: new HubSpot setups create a service key, and an existing private app token works too.

  • Endpoint URL: https://api.hubapi.com/crm/v3/objects/contacts
  • HTTP Method: POST
  • Header: Authorization with the value Bearer YOUR_TOKEN
{
  "properties": {
    "firstname": "{{first_name}}",
    "lastname": "{{last_name}}",
    "email": "{{email}}",
    "phone": "{{phone}}"
  }
}

HubSpot answers with an error when the email already belongs to a contact, so a returning visitor isn’t updated. HubSpot’s “When a webhook is received” workflow trigger only enrolls contacts that already exist, so it can’t create new leads (HubSpot’s API reference).

Pipedrive

Use Pipedrive’s API v2 (the old v1 person endpoint is no longer supported):

  • Endpoint URL: https://YOUR_COMPANY.pipedrive.com/api/v2/persons
  • HTTP Method: POST
  • Header: x-api-token with your API token
{
  "name": "{{first_name}} {{last_name}}",
  "emails": [{ "value": "{{email}}", "primary": true }],
  "phones": [{ "value": "{{phone}}", "primary": true }]
}

In v2, emails and phones are lists of objects, as above (Pipedrive’s v2 guide).

ActiveCampaign

ActiveCampaign’s sync endpoint creates the contact or updates it when the email is already there, which suits a chatbot well because visitors come back. Copy your API URL and key from Settings → Developer.

  • Endpoint URL: https://YOUR_ACCOUNT.api-us1.com/api/3/contact/sync
  • HTTP Method: POST
  • Header: Api-Token with your API key
{
  "contact": {
    "email": "{{email}}",
    "firstName": "{{first_name}}",
    "lastName": "{{last_name}}",
    "phone": "{{phone}}"
  }
}

See ActiveCampaign’s API reference.

Brevo

  • Endpoint URL: https://api.brevo.com/v3/contacts
  • HTTP Method: POST
  • Header: api-key with your Brevo API key
{
  "email": "{{email}}",
  "attributes": {
    "FIRSTNAME": "{{first_name}}",
    "LASTNAME": "{{last_name}}"
  },
  "listIds": [2],
  "updateEnabled": true
}

Replace 2 with the ID of your list, and check the attribute names in your account’s contact attributes, because they must already exist. updateEnabled updates a returning visitor instead of failing (Brevo’s API reference).

Follow Up Boss

Real estate teams can send each viewing request to Follow Up Boss as an event, which runs its lead routing and agent alerts and matches returning contacts by email or phone.

  • Endpoint URL: https://api.followupboss.com/v1/events
  • HTTP Method: POST
  • Headers: Authorization with Basic followed by the base64 of your API key and a colon (YOUR_KEY:), plus X-System and X-System-Key, which you get by registering your system with Follow Up Boss
{
  "source": "Website chatbot",
  "system": "YourSystemName",
  "type": "General Inquiry",
  "message": "Viewing request from the website chatbot",
  "person": {
    "firstName": "{{first_name}}",
    "lastName": "{{last_name}}",
    "emails": [{ "value": "{{email}}" }],
    "phones": [{ "value": "{{phone}}" }]
  }
}

See Follow Up Boss’s events reference.

Notion

Create an internal integration, share your database with it (••• → Add connections), and copy the database’s data source ID.

  • Endpoint URL: https://api.notion.com/v1/pages
  • HTTP Method: POST
  • Headers: Authorization with Bearer YOUR_TOKEN, and Notion-Version with 2025-09-03
{
  "parent": { "type": "data_source_id", "data_source_id": "YOUR_DATA_SOURCE_ID" },
  "properties": {
    "Name": { "title": [{ "text": { "content": "{{first_name}} {{last_name}}" } }] },
    "Email": { "email": "{{email}}" },
    "Contact consent": { "checkbox": {{contact_consent}} }
  }
}

The property names must match your database’s columns (Notion’s API reference).

Slack, Discord and Google Chat

For a ping in a channel when a lead arrives, create an incoming webhook and use its URL as the Custom Action’s endpoint, with no headers:

  • Slack: at api.slack.com/apps, create an app, turn on Incoming Webhooks and add a webhook for your channel. Template: {"text": "*New viewing request*\n{{first_name}} {{last_name}}, {{email}}, {{phone}}"}
  • Discord: in Server Settings → Integrations → Webhooks, create a webhook and copy its URL. Template: {"content": "**New viewing request**\n{{first_name}} {{last_name}}, {{email}}, {{phone}}"}
  • Google Chat: in a space, open Apps & integrations → Add webhooks (Google Workspace business accounts). Template: {"text": "*New viewing request*\n{{first_name}} {{last_name}}, {{email}}, {{phone}}"}

Slack answers ok and Discord answers with an empty 204 response, and both count as delivered. Details are in the guides from Slack, Discord and Google Chat.

Microsoft Teams

Teams retired its old incoming webhooks in 2026. In a channel, open Workflows, choose Send webhook alerts to a channel and copy the webhook link. It expects an Adaptive Card:

{
  "type": "message",
  "attachments": [{
    "contentType": "application/vnd.microsoft.card.adaptive",
    "contentUrl": null,
    "content": {
      "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
      "type": "AdaptiveCard",
      "version": "1.2",
      "body": [{
        "type": "TextBlock",
        "wrap": true,
        "text": "**New viewing request**\n\n{{first_name}} {{last_name}}, {{email}}, {{phone}}"
      }]
    }
  }]
}

Teams answers 202 as soon as it accepts the request. If no message appears, check the workflow’s run history (Microsoft’s guide).

Custom Action Template Variables, Explained

If you chose a Custom Action, your agent writes each answer into the template in a way that keeps the JSON valid:

You write The visitor answered Your CRM receives
"email": "{{email}}" [email protected] "email": "[email protected]"
"contact_consent": {{contact_consent}} Yes "contact_consent": true
"budget": {{budget}} 450000 "budget": 450000
"phone": "{{phone}}" (skipped) "phone": ""
"note": "{{note}}" The “blue” house "note": "The \"blue\" house"
  • Inside quotes, a value is sent as text. Quotes and line breaks in an answer are escaped, so they can’t break your JSON.
  • Without quotes, a value is sent as true, false, a number, or null when it’s empty. “Yes” and “No” become true and false, which suits consent fields.
  • In the Endpoint URL, a {{name}} is URL-encoded, so you can pass a value as a query parameter.
  • An empty template lets your agent write the whole request body itself.

Tips for Chatbot Forms That Convert

Ask only for what you’ll use

Every extra field loses some visitors. Name, email and one qualifying question (budget, service, date) are often enough. The agent can ask for the rest later in the conversation.

Show the form at the moment of intent

Write Trigger Instructions around what the visitor says (“asks for a quote”, “wants a callback”) rather than showing the form on the first message.

Make consent explicit

Use a separate checkbox for being contacted and for marketing emails, so your CRM receives each one as true or false. Make a checkbox required only when the visitor must agree before submitting.

Use the Email field type

An Email field checks the address before the form can be sent, so fewer leads bounce.

Test with one real submission

Before you go live, submit the form once and check three places: the Playground reply, Activity → Leads, and the contact in your CRM.

Other Ways to Send Chatbot Leads

  • Leads page and email alerts. Every chatbot form submission is saved under Activity → Leads, and Notifications can email you each one. No setup beyond the form.
  • Collect Data action. Instead of a form, the agent asks for the details in conversation, which also works on WhatsApp, Messenger, Telegram and other channels where a form can’t be shown. It has its own Webhook URL field and sends the answers once they’re all collected.
  • Any webhook receiver. The Custom Action can post to automation tools like Make or n8n, to a CRM’s API, or to your own server.

Want more ideas for what agents can do with actions? See these AI agent examples.

Frequently Asked Questions

What is a chatbot form?

A chatbot form is a short form shown inside a chat conversation. The chatbot displays it when it needs structured details, like a name, email or budget, and the visitor fills it in without leaving the chat.

Is a chatbot form better than a contact form?

It catches visitors at the moment they ask for something, with the conversation as context, and the chatbot can reply to the answers. A contact form still works for visitors who already know what they want, so many sites keep both.

Do I need Zapier to send chatbot leads to my CRM?

No. Turn on Send each submission to a webhook on the form, or use a Custom Action, and each submission goes straight to your CRM’s webhook URL. Zapier or Make are only needed if your CRM has no webhook or API of its own.

Can I send chatbot leads to HubSpot?

Yes. Add a Custom Action that posts to HubSpot’s Contacts API, put your access token in the Authorization header, and map the answers to firstname, lastname, email and phone in the payload template. The HubSpot section above has the exact template.

How do I post chatbot form submissions to Slack or Discord?

Create an incoming webhook for the channel and use its URL as a Custom Action’s endpoint, with a template such as {"text": "New lead: {{email}}"} for Slack or {"content": "New lead: {{email}}"} for Discord.

Can a chatbot form add rows to Google Sheets?

Yes. Deploy a short Apps Script as a web app, paste its URL into the form’s Webhook URL, and every submission adds a row. The script is in the Google Sheets section above.

Is every submission sent to my CRM automatically?

Yes, with the form’s own webhook: each submission is posted the moment the visitor clicks submit. A Custom Action works differently: your agent runs it in its next reply, when its Trigger Instructions tell it to. Either way, every submission is also saved under Activity → Leads.

What happens if a visitor skips a field?

With the form’s webhook, its key is still sent, empty, and an unticked checkbox is false. With a Custom Action, it’s "" inside quotes or null without quotes. Mark the fields your CRM can’t do without as Required.

Does the chatbot form work on WhatsApp or Messenger?

The form appears in your website chat widget. On WhatsApp, Messenger, Telegram and other channels, use the Collect Data action, which asks the same questions in conversation and has its own webhook option.

Which plans include chatbot forms and webhooks?

Actions, including Custom Forms and Custom Actions, are part of paid plans, which you can try first. See pricing for how many actions each plan includes.

Start Collecting Leads with a Chatbot Form

A chatbot form turns a question into a lead while the visitor is still interested, and a webhook puts that lead in your CRM in seconds. Create your AI agent, add a Custom Form and a Custom Action, and test it with one submission today.


Create Faster With AI.
Try it Risk-Free.

Stop wasting time and start creating high-quality content immediately with power of generative AI.

App screenshot

More Stories