---
title: "AI Lead Extraction"
description: "Automatically extract contact details and custom fields from AI conversations into Responses and your integrations."
---

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

# AI Lead Extraction

When visitors talk naturally with an AI bot, they often drop their name, email, phone number, or company name mid-conversation rather than filling in a rigid form. **AI Lead Extraction** reads completed AI conversations, pulls out those structured fields automatically, saves them to **Responses**, and sends them to all of your enabled integrations.

## Set up AI Lead Extraction

1. **Open AI Knowledge Studio**

   Open your bot and go to **AI Knowledge Studio** in the sidebar.
2. **Enable AI Lead Extraction**

   Scroll to **AI Lead Extraction** and toggle it on.
3. **Choose Fields to Extract**

   Check the built-in fields you want captured (defaults: `Full Name`, `Email Address`, `Phone Number`):
- **Full Name** (`name`)
- **Email Address** (`email`)
- **Phone Number** (`phone`)
- **Company Name** (`company`)

   You can also add **custom fields** (letters, numbers, and underscores, up to 50 characters — stored with a `custom_` prefix), such as `budget`, `project_type`, or `preferred_date`.
4. **Set Inactivity Timeout (minutes)**

   Choose how many minutes of visitor inactivity (`1` to `60`, default `10`) Aminos should wait before extracting the lead.
5. **Save**

   Click **Save AI Knowledge Studio** (or **Sync Knowledge Base** if using a Knowledge Base).

## When extraction runs

Aminos extracts leads from an AI conversation at the earliest of two triggers:

1. **Inactivity timeout:** A scheduled check runs every minute (`leads:extract`). Once a conversation has been quiet for your configured **Inactivity Timeout**, Aminos queues extraction (`ExtractLeadFromConversation`), using AI plus regex fallbacks for reliable email and phone capture.
2. **Visitor ends the chat:** If you enable [Let visitors end the chat](/widget/ending-chats-transcripts), clicking **End chat** triggers lead extraction and integration delivery immediately without waiting for the inactivity timeout.

## How it works with notifications and integrations

- Extracted fields appear as columns in **Bot → Responses** and in CSV/Excel exports.
- Every enabled lead integration (Lead Notification Emails, Zapier, Make, Google Sheets, Mailchimp) receives the extracted lead automatically.
- If you turn on **Only send when contact details were captured** under **Settings → Notifications**, Aminos skips sending an email for conversations where no email, phone, or extracted contact detail was found. If the chat is still active and growing, Aminos rechecks up to **2 times at 10-minute intervals**.
- If you also use an **AI Assistant** block inside **Flow Builder**, turning on **AI Lead Extraction** overrides the block's older *"Send AI chatlog after X minutes"* timer so you don't receive duplicate leads.

:::tip
Tell your bot in **Global Instructions** when to ask for contact details — for example: *"Once you've answered a visitor's question, politely ask for their name and email if they'd like a personalised follow-up."* That dramatically increases lead capture rates.
:::

Source: https://docs.aminos.ai/ai/lead-extraction/index.mdx
