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

# Build an automation with AI

> Describe the chatbot you want in plain words and get a ready-to-edit automation you can change however you like.

Describing a conversation is far quicker than drawing one. Tell ChatFlows what you want the chatbot to do — "a lead capture bot that asks for name, phone number, and preferred call time" — and it builds the whole conversation for you, ready to edit in the [Flow Builder](https://docs.chatflows.io/automation/flow-builder.md).

## Generating a flow

**1. Open a flow in the Flow Builder**

Create a flow from the Automations page, then open it on the canvas.

**2. Click Generate with AI**

The **Generate Flow with AI** panel opens on the right.

![Generate Flow with AI panel with a Flow type dropdown set to Auto-detect, a Describe your flow text box, suggestion chips under Try one of these, an AI Tokens this month meter, and Cancel and Generate Flow buttons](https://docs.chatflows.io/automation/img/generateai-form.png)

Image shows the Generate Flow with AI panel.

**3. Pick a flow type**

Leave it on **Auto-detect** and the description alone decides the shape of the conversation. Or choose one to steer it:

* **Lead Capture** — welcome, collect contact details, save them, thank you.
* **Info Bot** — welcome, share photos, videos or a location, then a button menu.
* **Booking** — welcome, ask for a date and time, create a calendar event, confirm.
* **Support** — welcome, ask what the problem is, collect contact details, escalate to your team.
* **FAQ** — welcome, list your common questions, answer each one.
* **Other (custom hint)** — adds a second box where you describe the style yourself, such as a formal tone or replying in two languages.

**4. Describe what you want**

Write it in **Describe your flow** the way you'd explain it to a new colleague. The more specific you are about what to ask and what to do with the answers, the closer the result. Not sure where to start? Click one of the suggestions under **Try one of these** to fill the box, then edit it.

**5. Click Generate Flow**

The conversation is built and appears on the canvas, saved as a draft. From there it's an ordinary flow — rename nodes, rewire branches, change the wording, and add or delete steps.

> [!WARNING]
>
> When you click **Generate Flow**, it replaces the entire flow currently in the builder with a newly AI-generated flow.

## AI Token Usage

Generating flows uses your monthly AI token allowance. The same allowance is shared with [AI Chat Assist](https://docs.chatflows.io/messaging/live-chat.md#ai-assist) and [AI Prompts](https://docs.chatflows.io/core-setup/ai-prompts.md), so all AI features use the same token balance.

The **AI Tokens This Month** meter shows how many tokens you've used and how many are left.

If you run out of tokens, wait until your monthly allowance resets.

> [!TIP]
>
> A short, vague description gives you a generic flow. Naming the questions to ask, the choices to offer, and what happens with each answer gets you something much closer to ready.

## What's next

> [card] [Flow Builder](https://docs.chatflows.io/automation/flow-builder.md)
>
> Edit your generated flow — learn the builder and every flow step.

> [card] [WhatsApp Forms](https://docs.chatflows.io/messaging/whatsapp-forms.md)
>
> Send an interactive form from inside a flow.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.