# Collect leads and data

> Have your agent ask for contact details or the information a request needs, right in the chat.

Source: https://help.askmavis.co/help/collect-leads  
Collection: Actions and procedures  
Last updated: 2026-12-05

Two actions let your AI agent gather information in the chat: **Collect leads** for contact details, and **Collect data** for anything else a request needs.

![Animation: a visitor asks for a quote, the AI agent shows a form asking for name and email, the visitor fills it in and submits, a thanks message shows, and the new lead appears at the top of Leads.](https://askmavis.co/help-media/collect-leads/leads-flow.webp)

What the animation shows:

1. A visitor asks for something that needs follow-up, like a quote.
2. The AI agent shows the lead form. The visitor fills it in and clicks **Submit**.
3. They see your **Message after saving**.
4. The lead appears in **Leads**.

## Collect leads

The agent asks for a name, email or phone when a visitor is interested, for example when they ask for a quote.

1. Open your agent, go to **Actions** and add **Collect leads**.
2. Describe **When to use** it, for example "When someone asks about pricing for a custom project".
3. For **Name**, **Email** and **Phone**, choose whether to **Ask for it** and whether it's **Required**. Add **More fields** if you need them.
4. Add a **Message after saving**, like "Thanks! Jo will send your quote today."
5. Turn on **Email the team about new leads** if you want an email for each one. It goes to your workspace's owners, admins, members and support people (anyone who can answer chats, but not Viewers), except anyone who turned off **New leads** in their account's email notifications.
6. Save, then publish.

Each lead is saved to **Leads** with the chat. It's added to **Contacts** only when the visitor agreed to be contacted, for example through the email gate or the form that offers a person.

## Collect data

The agent collects the details a request needs, like a return form or a booking request.

1. Add **Collect data** and describe **When to use** it.
2. Under **Fields**, click **Add field** for each detail. Give it a **Field name**, a **Type** (**Text**, **Number**, **Yes or no**, **Date** or **Email**), **What to ask for**, and whether it's **Required**.
3. Add a **Message when done**.
4. Save, then publish.

Submissions show in the action's list of details visitors gave, newest first. To get an email when one comes in, add [Email the team](https://help.askmavis.co/help/email-the-team) too.

## Tips

- Ask only for what you need. Every extra field means fewer people finish.
- Make the "when to use" description specific, so the agent doesn't ask too early.

## Related

- [Leads](https://help.askmavis.co/help/agent-leads)
- [What actions do](https://help.askmavis.co/help/actions-overview)
