Collect Leads
Capture visitor emails, names, and phone numbers during chat conversations.
The Collect Leads action captures visitor information during chat. Collect emails, names, and phone numbers, then send them to your CRM via webhooks or Zapier.
Setting Up Lead Collection
- Go to your agent's Actions tab
- Click Add Action → Collect Leads
- Configure the form fields
- Set up where leads should go (optional: webhooks)
- Save and test
Configuring Form Fields
Choose which fields to include:
| Field | Required? | Description |
|---|---|---|
| Optional | Visitor's email address | |
| Name | Optional | Visitor's name |
| Phone | Optional | Visitor's phone number |
Select at least one field. Each field has a configurable label and placeholder, and can be marked required to ensure visitors provide it.
When the Form Appears
The AI decides when to show the lead form based on your "When to use" instructions. Write natural language guidance:
When a visitor asks about pricing or scheduling a demo, collect their email before answering.
Form Customization
Customize the messages visitors see:
- Success message - Shown after the form is submitted
- Dismiss message - Shown if the visitor dismisses the form
Sending Leads to Your Tools
Webhooks
Send leads to any HTTPS endpoint:
- Go to Settings > Webhooks
- Add your webhook URL
- Select "Form Submission" as the event
- Leads post automatically on submission
Zapier Integration
Connect to 5,000+ apps through Zapier:
- Create a Zapier account
- Add the Agentkit trigger
- Connect your CRM or email tool
- Map lead fields to your app
Lead Webhook Payload
When a lead is submitted, the webhook receives:
{
"event": "form_submission",
"data": {
"id": "lead-uuid",
"chatbotId": "your-chatbot-id",
"name": "John Smith",
"email": "[email protected]",
"phone": "+1234567890",
"conversationId": "conversation-uuid",
"createdAt": "2025-01-10T12:00:00Z"
},
"timestamp": "2025-01-10T12:00:00Z"
}
Viewing Collected Leads
Access all captured leads from the Leads tab:
- View all submissions with timestamps
- Filter by date range
- Export leads as CSV
Best Practices
- Keep forms short - Only collect what you need
- Explain the value - Tell visitors why you need their info
- Time it right - Don't ask for email immediately
- Follow up quickly - Connect to your CRM for fast response
Example Use Cases
Schedule Demo Request:
- Ask for name and email
- Trigger when visitor mentions "demo" or "schedule"
- Connect to Calendly via Zapier
Newsletter Signup:
- Ask for email only
- Offer in exchange for helpful content
- Connect to Mailchimp
Support Ticket:
- Ask for email and description
- Create ticket in help desk
- Send confirmation via email
Next Steps
- Configure webhooks to send leads externally
- Set up Zapier for CRM integration
- View collected leads in your dashboard