Skip to main content
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.

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. The 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.
The Outline flows drawer next to the Create flow button

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.
The AI chat panel in flow mode

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 and speak your instructions.
The agent will create the required groups and flows if they don’t already exist.

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.

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.
Last modified on September 4, 2026