# Collect leads and send them to your CRM

> Your agent saves visitors who share contact details as leads, notifies you, and can send qualified prospects to HubSpot or any CRM by webhook.

When a visitor shares their contact details or asks to be contacted, the Collect lead action saves their email, name and phone as a lead linked to the conversation. It notifies you in the app and sends a `lead.captured` webhook, so you can pass the lead to any CRM. 

For B2B teams, a second action sends qualified prospects straight to HubSpot with company size, buying stage and budget band.

## How a lead is captured

The agent calls Collect lead when a visitor gives their details on their own, asks someone to get back to them, or shows clear buying interest such as a pricing or demo question. Each call:

1. Checks the email has an @ sign. If not, nothing is saved and the agent can ask again.
2. Looks for an existing lead with that email in this agent. If there is one, no duplicate is created.
3. Saves the lead with name, phone (when given), a consent note and a link to the conversation.
4. Notifies you and fires the `lead.captured` webhook.

If the visitor does not want to share details, nothing is saved. Leads are only saved when the visitor typed the details themselves, and you can delete a lead from the Leads page to act on an erasure request.

**Collect info** is the form version. It shows an editable card with name, email and phone that the visitor checks and submits, which avoids typos. Both save to the same Leads list.

## Set it up

#### New dashboard

1. Open **Behaviour** under **Your agent**, then **Actions**, and find **Collect Lead**.
2. To require a phone number, open its settings.
3. Under **Handoff and spam protection**, switch on **Ask for contact details when they show buying interest**.

#### Previous dashboard

1. Open **Automation** › **Skills** and find **Collect Lead**. It is on by default on plans that include actions.
2. To require a phone number, open its settings and add `{"require_phone": true}`.
3. To also ask for details when a visitor shows buying interest, switch on proactive lead capture under **Settings** › **AI Configuration**, in **Behavior**.

## Where leads go

- **The Leads page** (under Contacts) lists every lead with its source and a link to the conversation. See [contacts](/contacts/).
- **CSV export** of leads is on Growth and up.
- **Your CRM by webhook.** Point the `lead.captured` [webhook](/developers/webhooks/) at Zapier, Make or your own endpoint. Its data holds `lead_id`, `email`, `name` and `source`. Leads the agent captured also carry `conversation_id`. See [Zapier and Make](/channels/zapier-and-make/).
- **HubSpot**, below.

There is no built-in Salesforce or Pipedrive lead sync. Send those leads through the webhook.

## Send qualified prospects to HubSpot

The HubSpot lead qualifier records what the visitor says and creates or updates the HubSpot contact for that email with lifecycle stage **lead**.

| Field | Values |
| --- | --- |
| Email | Required |
| Company size | Number of employees, required |
| Buying stage | evaluating, implementing, browsing or support, required |
| Budget band | under 5k, 5k to 25k, 25k to 100k, 100k plus, or unknown |
| Name | Optional. The first name is sent. |

The contact gets the properties `company_size`, `buying_intent` and `budget_range`.

1. Connect HubSpot. It uses a HubSpot sign-in and needs the Growth plan or up.
2. In HubSpot, create contact properties named `company_size`, `buying_intent` and `budget_range` if you want those values kept.
3. Switch on **SDR Lead Qualifier** on the Skills page (current) or the Actions tab (new). It is off by default.
4. Test with a message like "We're 250 people, evaluating tools, budget about 30k, I'm jo@acme.co", then check HubSpot.

**Company size threshold.** By default only companies with at least 100 employees are sent. Change it with `{"min_company_size": 20}` in the action's settings. Add `"dry_run": true` to test without writing to HubSpot. The same email is sent at most once in 24 hours.

AskVault asks HubSpot for contact read and write access, and also deal write access that no AskVault feature uses today. Nothing else is synced: no transcripts, no deals, and the agent does not read HubSpot data to answer visitors. Use HubSpot workflows to route and score the contacts.

## Check it worked

In the widget, say "I'd like a quote, my email is you@example.com". The lead should appear on the Leads page within moments.

## If it doesn't work

**Nothing is saved.** The email is missing an @, or the visitor did not give details. If you require a phone number, the lead is refused without one.

**HubSpot fields are empty.** The custom contact properties do not exist in HubSpot. Create them with the exact names above.

**The qualifier asks to reconnect.** The HubSpot connection expired. Reconnect it.

**A small company was skipped.** It is under the company size threshold.

## Related

- [Actions](/actions/)
- [Book meetings from chat](/actions/book-a-meeting/)
- [Webhooks](/developers/webhooks/)
- [Import contacts](/contacts/import/)

Source: https://docs.askvault.co/actions/collect-leads/
