When users submit forms through your agent, the data is captured as leads (form submissions). You can view, filter, and export this data, as well as set up automations to send leads to your CRM or other tools.Documentation Index
Fetch the complete documentation index at: https://docs.ansa.so/llms.txt
Use this file to discover all available pages before exploring further.
How Leads Are Captured
- User interacts with your agent
- Agent presents a form based on conversation context
- User fills out the form naturally in chat
- Data is submitted and stored
- Post-actions run (webhooks, emails, etc.)
Automatic Context
Each lead submission includes:- Form data (fields the user filled)
- Conversation ID (link to full chat)
- Agent ID
- Timestamp
- Submission status
Viewing Leads
In Conversations
- Go to Conversations
- Open a conversation
- Scroll to Form Submissions section
- Form name
- Fields and values
- Submission status
- Timestamp
Form Analytics
- Go to Analytics
- View the Forms section:
- Submissions — Total form completions
- Conversion rate — Impressions to submissions
- Drop-off — Started but not completed
- Field completion — Which fields get filled
Lead Status
Each submission has a status:| Status | Meaning |
|---|---|
pending | Just submitted, processing |
completed | Successfully processed |
failed | Post-action failed |
retrying | Retrying failed action |
Automatic Retries
Failed webhooks are automatically retried:- Immediate retry
- After 1 minute
- After 5 minutes
Setting Up Lead Capture
1. Create a Form Tool
- Go to Tools
- Click Add Tool
- Select Form type
- Define your fields:
2. Configure Post-Actions
Set up what happens after submission:Webhook
Send data to your CRM or backend
Notify your team of new leads
3. Train the Agent
Add instructions so your agent knows when to show the form:Webhook Integration
Send leads to external systems in real-time.Setup
- Edit your form tool
- Set Execution Mode to
webhook - Enter your Webhook URL
- Save
Payload Format
Your endpoint receives:Response
Return a success status:Email Notifications
Get notified when leads come in.Setup
- Edit your form tool
- Add Email post-action
- Enter recipient email addresses
- Save
Email Contents
Notification emails include:- Form name
- All submitted data
- Link to conversation
- Timestamp
CRM Integrations
Connect leads to your existing tools:Zapier / Make
- Create a webhook in Zapier/Make
- Add the webhook URL to your form
- Map fields to your CRM
Direct Integration
Build a webhook handler:Lead Qualification
Use your agent to qualify leads before capturing.Qualification Flow
- Initial questions — Agent asks about needs
- Scoring — Based on responses
- Conditional form — Only show to qualified leads
- Routing — Send to appropriate team
Example Instructions
Exporting Leads
Via API
Bulk Export
Lead Analytics
Track form performance in Analytics:Key Metrics
| Metric | Description |
|---|---|
| Impressions | Times form was shown |
| Starts | Times user started filling |
| Submissions | Completed submissions |
| Conversion Rate | Submissions / Impressions |
| Avg Completion Time | Time from start to submit |
Field Analysis
See which fields:- Are most often completed
- Cause drop-offs
- Take longest to fill
Best Practices
Form Design
- Minimize required fields — Only ask what’s essential
- Use progressive disclosure — Show more fields as needed
- Provide context — Explain why you need each field
- Use smart defaults — Pre-fill when possible
Qualification
- Qualify before forms — Ask questions first
- Segment leads — Different forms for different needs
- Score leads — Prioritize follow-up
Follow-up
- Respond quickly — Set up instant notifications
- Include context — Review conversation history
- Track outcomes — Close the loop on lead quality
Troubleshooting
Webhook Failures
Check:- Webhook URL is accessible
- Endpoint returns 2xx status
- Response is valid JSON
- No timeout (30 second limit)
Missing Leads
Verify:- Form tool is properly configured
- Agent is trained to use the form
- User completed all required fields
Next Steps
Form Tools
Learn to build effective forms
Webhooks
Set up integrations