Advanced Features

Collecting Leads in Chatbots

Ask website visitors for their name, email, phone and your own questions inside the chat, then find every answer in one place.

Where: set up the form in Settings > Leads. See what visitors entered in Dashboard > Leads Dashboard.


Ways to collect visitor details

WayWho triggers itFieldsWhere answers goWorks on
Leads form, shown automaticallyYou: after the visitor sends a set number of messagesName, email, phone, plus custom fieldsLeads Dashboard, email summary or webhook, Zendesk, Shopify CustomersWebsite widget and iframe
Leads AI Action (lazy lead form)The AI agent, when the chat matches your descriptionSame as the leads formSame as the leads formWebsite widget and iframe
Custom form AI ActionThe AI agent, when the chat matches your descriptionAny fields you build (text, email, phone, number, lists)The conversation, and your webhookWebsite widget and iframe
Workflow Form nodeThe workflow, when it reaches the nodeText, long text, dropdown, checkboxesWorkflow variables; saved as a lead only with a Create or Update Lead nodeSee Workflow

Three things open the leads form: the message count you set, the visitor asking for a human, or the Leads AI Action; answers go to the Leads Dashboard, email summary or webhook, Zendesk, and Shopify Customers

Other channels

On WhatsApp, the visitor's phone number is collected automatically. Other third-party platforms don't share visitor details, so no lead information is available from them.

Leads Form Configuration

  1. Open Settings > Leads.
  2. Under Basic Fields, write the Form Title and turn on Name, Email and/or Phone.
  3. Optionally, add your own questions in the Custom Fields Builder.
  4. Under Behavior, choose when the form appears.
  5. Save.

Settings > Leads with Basic Fields (Form Title, Name, Email, Phone, Default Country Code) and Behavior, and a preview of the form on the right

SettingWhat it does
Form TitleThe short message at the top of the form.
Name, Email, PhoneWhich contact details to ask for. Each has its own label shown on the form.
Default Country CodeThe country code pre-selected for the phone field.
Show Form AutomaticallyOn: the form appears by itself, at the time you set below. Off: it appears only when your AI agent brings it up or the visitor asks for a human.
When to Show the Form"Show the form after the visitor sends ___ messages."
Require an AnswerVisitors must fill in the form before they can keep chatting.
Reminder MessageShown when a visitor tries to keep chatting without filling in a required form.
Shopify Customer TagShown when a Shopify store is connected. The tag added to leads mirrored into your Shopify Customers (chat-data-lead by default). See Shopify.
Send Leads to ZendeskOnce Zendesk is connected under Integrations, every lead is also sent to Zendesk. See Zendesk integration.

If a visitor asks to talk to a human before sharing their details, the form appears right away, whatever message count you set.

Custom Fields Builder

On the Entry plan and above, add your own questions to the form, such as a company name or a budget range. Field types: Single Line Text, Multi Line Text, Email, Phone Number, Number, Select, Multi Select and Checkboxes Group.

Custom Fields Builder with four custom questions (Single Line Text, Select, Multi Line Text, Checkboxes Group) and the form preview showing them

Custom fields are handled like Name, Email and Phone, and are sent in the email summary or webhook too.

Lazy Lead Form Triggering

Instead of a fixed message count, let the AI agent decide when to ask. Add a Leads AI Action in Settings > AI Actions and describe when to show the form. It uses the fields you set in Settings > Leads, so turn on at least one field there first. See Lead Form Action & Custom Button Action.

Show Form AutomaticallyLeads AI Action
When the form appearsAfter the visitor sends the number of messages you setWhen the conversation matches the description you wrote
Who decidesA fixed ruleThe AI agent
Where to set itSettings > Leads > BehaviorSettings > AI Actions > Leads

You can use both: turn off Show Form Automatically to rely on the AI Action alone.

CRM Integration

Leads go to the Leads Dashboard, and also to Zendesk or Shopify Customers when those are connected. From Dashboard > Leads Dashboard, click Export to download your leads as CSV or Print them. See Export Conversations and Leads.

Related: Custom Forms · Live Chat Escalation

Frequently Asked Questions

How do I collect leads with a Chat Data chatbot?

Lead collection is handled through a lead form configured in Settings > Leads. The form appears inside the website widget or iframe and can be used to collect user contact details during the conversation.

What can I configure in the chatbot lead form?

You can set the form title, which core fields to collect (name, email, phone), whether the form shows automatically after a number of visitor messages, whether an answer is required, and the reminder message shown when it is.

Can I add custom fields to the chatbot lead form?

Yes. On the Entry plan and above, you can add custom fields using the Custom Fields Builder. It supports single line text, multi line text, email, phone number, number, select, multi select, and checkboxes group, and those fields are treated the same as core lead fields in summaries and webhooks.

How can I export or route collected lead information today?

Custom fields and standard lead fields can be sent through email summaries or webhooks, and to Zendesk or your Shopify Customers when those are connected. You can also export leads from the Leads Dashboard as CSV or print them.

Previous
Embed Chatbots On Websites