> ## Documentation Index
> Fetch the complete documentation index at: https://qawolf-onboard-md.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create flows with AI

> Use AI flow creation to create, edit, and debug flows from plain-language or voice instructions.

AI flow creation lets you create, edit, and debug flows by describing what you want in plain language or by speaking your instructions. You don't need to know the flow syntax to get started — the AI writes and updates the code for you.

If you'd prefer to write flows manually, see [Create flows in the IDE](/qawolf/Create-a-new-flow-2c15b2a994fb802193a5c05e0219eb59).

## Start a flow

Two entry points on the **Flows** tab hand a new flow to the agent:

* **Create flow** — the button above the flows list
* **Create flow** — the large purple button on the **All flows** page

Both open the AI chat panel in flow mode. Working with the agent one prompt at a time is [guided creation](/qawolf/getting-the-most-out-of-automate#guided-creation).

The <Icon icon="chevron-down" /> icon next to **Create flow** opens a drawer with **Outline flows**, which starts an outlining session across a whole application at once — see [Create a coverage outline](/qawolf/Map-your-app-s-workflows-2a45b2a994fb80ca8a87c8fdc2a443fc).

<Frame>
  <img src="https://mintcdn.com/qawolf-onboard-md/kptjysO6R5iFUt9e/images/create-flow-drawer.png?fit=max&auto=format&n=kptjysO6R5iFUt9e&q=85&s=1b0ce8a2fcd7b4645db25fbad3d3df49" alt="The Outline flows drawer next to the Create flow button" width="700" height="200" data-path="images/create-flow-drawer.png" />
</Frame>

## Describe the flow you want

Either **Create flow** button opens the AI chat panel in flow mode, offering **Create a flow** and **What should I test?** to start from.

<Frame>
  <img src="https://mintcdn.com/qawolf-onboard-md/kptjysO6R5iFUt9e/images/chat-new-flow.png?fit=max&auto=format&n=kptjysO6R5iFUt9e&q=85&s=d27272df02831125eb30c81df5c569d3" alt="The AI chat panel in flow mode" width="536" height="352" data-path="images/chat-new-flow.png" />
</Frame>

### Type a description

Type a plain-language description of what you want the flow to do into the chat box and hit enter. For example: *"Log in with a valid email and password and assert that the dashboard loads."*

### Speak a description

Click the <Icon icon="mic" /> icon and speak your instructions.

<Note>
  The agent will create the required groups and flows if they don't already exist.
</Note>

## What happens next

The agent generates the flow code and opens it in the editor. From here you can:

* **Run it immediately** using the **Run** button to see it execute in the browser panel
* **Review the code** if you want to understand or manually adjust what was generated
* **Ask the AI to change it** by typing a follow-up instruction in the chat panel

## Complete flows automatically

Select **Autonomously complete this test** to have the AI generate Playwright code for the flow automatically. While it runs, you can multitask in other flow tabs.

## Debug a failing flow

When a flow fails, click **Fix with AI** in the banner at the top of the editor. Describe the problem or let the AI interpret the error automatically.

For manual debugging, see [Debug tests & flows](/qawolf/Debug-tests-and-flows-2c15b2a994fb805c9e92eec7a4a3e83e).

## Import a third-party library

In the AI chat panel, ask the agent to import the package you need. It will handle the entire process automatically.
