> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aptlystar.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Lead Collection

## Lead Collection

Lead Collection lets your agent capture user details such as name, email, and phone directly during a chat session. This turns every meaningful conversation into a potential customer touchpoint and helps your team follow up efficiently.

Organizations often use this feature to:

* Identify high intent users
* Collect contact details before the conversation goes too far
* Enrich CRM records with real conversational context
* Reduce manual effort and automate lead qualification

<Frame caption="Agent Settings: Collect Leads">
  <img src="https://mintcdn.com/aptlytechnologies/MNGd9CbCXIQipQ4a/images/botconsole/Settings-Leads.png?fit=max&auto=format&n=MNGd9CbCXIQipQ4a&q=85&s=e512e074efe9ed94ea8f34cb794c7bb1" alt="Lead collection UI" width="2000" height="1066" data-path="images/botconsole/Settings-Leads.png" />
</Frame>

***

## Customizing Lead Capture

Once you enable the **Lead Collection** toggle, you can fine tune how and when the agent requests this information.

### Smart Leads

Smart Leads let the bot decide the best moment to ask for user details based on the flow of the conversation. You can control the behavior by adjusting:

**Number of responses before asking**\
Choose whether the bot should ask immediately or wait for one, two, or three user responses before prompting for details.

**Number of times to ask**\
Set how persistent the agent should be. For example, you may choose to ask only once, or try again a second or third time if the user skips the form.

**Lead form title**\
You can let the bot generate the title dynamically based on context, or specify a fixed static title for consistency.

### Capture Mode

You can choose how the lead information is collected:

* **Inline Form**\
  The user sees a small form directly embedded inside the chat interface, appearing as a single compact block.

* **Conversational Mode**\
  The bot asks each detail step by step in a natural question and answer format. This creates a smoother experience and keeps the conversation flowing.

### Fields to Collect

You can select which fields the form should request:

* Name
* Email
* Phone
* Consent checkbox

These fields will appear using the capture mode you selected.

## Lead Form in the Chat Widget

Once lead collection is enabled, users will see the form automatically during the chat. This may appear at the start of the conversation or after a few messages, depending on your Smart Leads configuration.

<Frame caption="Chat Widget: Lead Form">
  <img src="https://mintcdn.com/aptlytechnologies/KKYL744B_Fjp3wDy/images/botconsole/collectingleads2.png?fit=max&auto=format&n=KKYL744B_Fjp3wDy&q=85&s=fd1f9eb8c4d0a9300619a5a9e5943b05" alt="Lead form displayed inside the widget" width="463" height="1066" data-path="images/botconsole/collectingleads2.png" />
</Frame>

This ensures you capture relevant contact information while the user is actively engaged and interested.

***

## HubSpot Integration

AptlyStar supports direct integration with **HubSpot** to automatically sync leads collected from your bot.

To connect HubSpot:

1. Navigate to **Agent Settings → Collect Leads**
2. Toggle **Enable Lead Collection**
3. Under **CRM Integration**, click **Connect** next to HubSpot
4. Authenticate your HubSpot account
5. Save your settings

<Frame caption="Connect HubSpot CRM">
  <img src="https://mintcdn.com/aptlytechnologies/KKYL744B_Fjp3wDy/images/botconsole/collectingleads1.png?fit=max&auto=format&n=KKYL744B_Fjp3wDy&q=85&s=e8ca90a2ff6df62ed58140edf2ef33fe" alt="HubSpot integration flow" width="2000" height="1066" data-path="images/botconsole/collectingleads1.png" />
</Frame>

Once connected:

* Every collected lead is automatically pushed to HubSpot
* Contact details include name, email, phone, and any consent info
* Conversation context can be attached for sales follow-ups

<Frame caption="HubSpot: Synced Leads">
  <img src="https://mintcdn.com/aptlytechnologies/KKYL744B_Fjp3wDy/images/botconsole/collectingleads3.png?fit=max&auto=format&n=KKYL744B_Fjp3wDy&q=85&s=8770a3943e3b81cc4595686320c058da" alt="Synced HubSpot leads list" width="2000" height="1066" data-path="images/botconsole/collectingleads3.png" />
</Frame>

***

## Other CRM Integrations

In addition to HubSpot, AptlyStar supports several other CRM platforms. You can view and connect them under **CRM Integrations**.

Available integrations include:

* **Salesforce**
* **Zoho CRM**
* **AptlyPlus CRM**

Each integration lets you sync collected leads directly into your preferred CRM workflow.

<Frame caption="Available CRM Integrations">
  <img src="https://mintcdn.com/aptlytechnologies/MNGd9CbCXIQipQ4a/images/botconsole/CRMintegration.png?fit=max&auto=format&n=MNGd9CbCXIQipQ4a&q=85&s=e6ef5363457575187cc3f9f7a8492e42" alt="List of CRM integrations" width="2000" height="1066" data-path="images/botconsole/CRMintegration.png" />
</Frame>

<Note>
  Lead Collection combined with CRM integrations creates a seamless path from first conversation to CRM record, helping teams act faster on warm leads.
</Note>
