# Leads

URL: https://docs.assistantcore.com/en/leads

Let the assistant take customers' contact details in the Web Widget and messaging apps, and follow every lead up from the Admin Panel.

When a customer wants to buy, book, or be called back, the assistant can ask for their contact details and save them as a lead. Members who can view conversations get an email for each new lead, and your team follows it up from the **Leads** tab of **Conversations** in the Admin Panel.

## Before you begin [#before-you-begin]

- You have the **Assistant Owner** role to set up lead capture. An **Assistant Admin** can see, export, and delete leads.
- The assistant answers on the [Web Widget](/en/web-widget) or on at least one [messaging channel](/en/messaging). The assistant never asks for contact details in the Web App, the API, voice, or on devices.

## Turn on lead capture [#turn-on-lead-capture]

1. Open the [Admin Panel](https://admin.assistantcore.com), select the assistant, and go to **Conversations**, then select the **Leads** tab.
2. Turn on **Take customers' contact details**. It saves at once. It is the same switch as the `capture_lead` row on the **Tools** page.

The assistant then asks for a name and a phone number or email when a customer wants to buy or book, asks for a quote or a call back, or needs an answer the assistant can't give. It tells the customer the details are so your team can contact them about their request.

## What the customer sees [#what-the-customer-sees]

1. The assistant helps first. When the customer needs your team, it asks for their details, a detail or two at a time, and says what they are for.
2. It asks only for what the customer hasn't given yet. A lead is saved once it has a phone number or an email, with a short note of what the customer wants.
3. It confirms what it saved. If the customer adds or corrects a detail later, the same lead is updated.
4. If the customer declines, the assistant keeps helping and doesn't ask again in that conversation.

- **Only what the customer typed is saved.** A phone number or email must appear in the customer's own messages. On WhatsApp, the number the customer writes from is filled in for them, and on the Web Widget so is the email of a visitor your site [signed in](/en/web-widget#sign-in-your-users-optional).
- **Phone numbers** are saved with their country code (`+84901234567`). A Vietnamese number may start with `0`; any other number needs its country code.
- **One lead per customer.** A customer who comes back in the same chat app, or in the same browser on the Web Widget, adds to their lead instead of creating another.

## Follow up a lead [#follow-up-a-lead]

The list under the switch shows every lead, newest first, with **What they want**, the **Channel**, and when it was **Captured**. Select a phone number or email to call or write to the customer.

- **Search** names, phone numbers, emails, and what customers want.
- **Open conversation** from a lead's menu to read the chat.
- **Export CSV** downloads the leads that match the search. Values that start with `+`, `-`, `=`, or `@`, such as phone numbers, start with `'` in the file, so a spreadsheet never runs them as formulas.

Members who can view conversations get an email for each new lead, and when a returning customer asks for something new, with a link to its conversation. A lead also shows in the conversation's details in **Conversations**.

## Contact details and privacy [#contact-details-and-privacy]

Contact details are personal data. The assistant asks only for a name, a phone number, and an email, and says why.

- **A customer asks to be forgotten.** While lead capture is on, the assistant deletes their lead when they ask in the chat. You can also select **Delete** on the lead. The conversation's messages still hold what the customer typed, so delete the conversation too, in [Conversations](/en/conversations).
- **Leads you no longer need.** Delete them. Leads are not deleted automatically.
- **Turning lead capture off** stops the assistant asking. Leads already taken stay.

## Troubleshooting [#troubleshooting]

<Accordions>
<Accordion title="The assistant doesn't ask for contact details">
Check that **Take customers' contact details** is on and the customer writes on the Web Widget or a messaging channel, not the Web App.
</Accordion>

<Accordion title="A customer gave a phone number but there is no lead">
The assistant saves only a number the customer typed in the chat, not one in an image or file. A number outside Vietnam needs its country code, for example `+65…`.
</Accordion>

<Accordion title="No email about new leads">
The email goes only to members who can view conversations (**Assistant Owner** and **Assistant Admin**), and only for a new lead or a returning customer's new conversation, not when a customer adds details.
</Accordion>
</Accordions>

<Cards>
<Card title="Staff handoff" href="/en/staff-handoff" description="Let the assistant pass a conversation to your team." />

<Card title="Conversations" href="/en/conversations" description="Read the conversation a lead came from." />

<Card title="Web Widget" href="/en/web-widget" description="Add the assistant to your own website." />
</Cards>