> Ask visitors for their name and email before the chat, capture emails during the conversation, or identify logged-in users from your site.

Canonical: https://livedemo.ai/docs/ai-demo-agent/lead-capture/

# Lead capture

The agent turns visitors into leads in three ways.

## 1. Ask before the chat

In **Persona**, turn on **Ask visitors to connect (name/email modal)**. Then choose:

- **Require name**
- **Require email**

Requiring an email gives you more leads but fewer conversations. Try both.

The **Email pill** [embed type](https://livedemo.ai/docs/ai-demo-agent/website-widget/#embed-types) asks for a work email right in the launcher.

## 2. During the conversation

A visitor who types their email in the chat becomes a lead. Name and company are recorded when they share them. [Qualification questions](https://livedemo.ai/docs/ai-demo-agent/qualification-and-booking/) collect more.

## 3. From your website

If the visitor is logged in on your site, tell the agent who they are:

```js
LiveDemo('identify', { email: 'jane@acme.com', name: 'Jane', company: 'Acme' })
```

Identified visitors skip the connect form. See [JavaScript API](https://livedemo.ai/docs/ai-demo-agent/javascript-api/).

## Where leads go

- **Analytics → Leads**. See [Leads](https://livedemo.ai/docs/analytics/leads/).
- [HubSpot](https://livedemo.ai/docs/integrations/hubspot/), with a note about the conversation.
- [Slack](https://livedemo.ai/docs/integrations/slack/) and [webhooks](https://livedemo.ai/docs/ai-demo-agent/webhooks-and-slack/) (`lead.created`).
- A [summary email](https://livedemo.ai/docs/ai-demo-agent/summary-emails/) to the visitor, if turned on.

Free email providers (Gmail, Outlook and others) are never treated as a company.

---

Next: [Summary emails](https://livedemo.ai/docs/ai-demo-agent/summary-emails/)
