---
title: "Build a lead-capture flow bot"
description: "Step-by-step guide to creating a scripted Flow bot that qualifies visitors, validates answers, emails you the lead, and embeds on your site."
---

> 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.

# Build a lead-capture flow bot

A **Flow bot** is the best choice when you want a predictable, fast conversation that asks specific questions, branches based on what the visitor clicks, and sends clean structured leads to your inbox or CRM.

This guide takes you from zero to a live lead-capture bot in about 10 minutes.

1. **Create the bot**

   On the **Dashboard**, click **New Bot**, enter a name such as `Website Lead Bot`, and save. Aminos creates the bot with Flow Builder enabled by default.
2. **Style the widget and greeting**

   Open **Widget Style** in the left sidebar:
   - Set **Widget title** to your business or assistant name.
   - Set **Welcome message** to a warm opener (for example: `Hi there! Want a quick quote or have a question?`).
   - Set **Call to action message** (up to 150 characters) and keep **Show call to action message** on so the teaser bubble catches visitors' eyes.
   - Pick your **Theme Color**, upload a **Chat Avatar** (up to 512 KB), and choose **Bottom Right** or **Bottom Left** position.
   - Click **Save**.
3. **Build the conversation in Flow Builder**

   Open **Flow Builder** in the sidebar. Drag blocks from the left palette onto the canvas and connect them from top to bottom:
1. **Message** block (`greeting`) — `"Let's get you to the right person. It takes under a minute."`
2. **Multi Choice** block (`service`) — `"What can we help you with today?"`. Toggle **Use option blocks for branching** on.
   3. Connect two **Option** blocks under `service`: `"Request a quote"` and `"Ask a question"`.
   4. Under `"Request a quote"`, connect a **Question** block (`name`): `"What's your first name?"` and turn on **Smart answer validation** so off-topic replies are gently re-prompted.
   5. Connect an **Email** block (Block Name automatically locked to `email`): `"Thanks {{name}}! What's the best email address to reach you?"`
   6. Connect a **Question** block (`phone`): `"Optional — what's your phone number?"` (turn on **Only allow numbers** if you want digits only, or leave off so visitors can include `+` and spaces).
   7. Connect a **Save Data** block (`save_lead`) — this sends nothing to the visitor, and immediately stores and dispatches the lead to every enabled integration.
   8. Connect a final **Message** block (`thanks`): `"All set, {{name}}! We've sent your request to our team and will reply shortly."`
   9. Click **Save** in the Flow Builder top bar.
4. **Set up lead notifications and integrations**

   Open **Settings** for your bot:
   - On the **Notifications** tab, enter your email address under **Send to**. (To notify up to 5 team members or send from your own domain, add a Mailgun, SendGrid, or Resend sender under [Profile → Email senders](/data/email-notifications).)
   - Optionally check **Only send when contact details were captured** so incomplete chats don't trigger emails.
   - On the **Integrations** tab, paste a **Zapier Webhook URL**, **Make Webhook URL**, **Google Sheets Apps Script**, or **Mailchimp API key** if you want leads pushed straight to your CRM.
   - On the **General** tab, turn on **Track lead source** if you want UTM parameters, referrer, and landing page attached to every lead.
   - Click **Save Settings**.
5. **Test the flow in live preview**

   Go back to **Widget Style** and walk through the entire chat in the right-hand preview pane. Try entering an invalid email to verify the validation message, then complete the flow and confirm the lead appears under **Responses**.
6. **Embed on your website**

   Open **Integration Code**, copy the **Universal integration (recommended)** `<script>` snippet (or the **GoHighLevel** or **Inline** snippet), and paste it into your site's `<head>` or footer. If you want to lock the bot to your own domain, add your hostname to **Settings → General → Domain whitelist**.

## Next steps

- Learn every option on all 11 blocks in [Flow Builder blocks](/flow-builder/blocks).
- Add [Operating hours](/widget/operating-hours) to show an away message after business hours.
- Turn on [Chat protection](/widget/protection) if your site gets spam traffic.

Source: https://docs.aminos.ai/guides/lead-capture-flow-bot/index.mdx
