Building a Flow with AI

Prev Next

Flow Builder designs a flow through a conversation. You describe in plain language what the flow should do. It reads the open flow and the project's resources, adds the nodes, configures and connects them, lays them out on the canvas, and checks the result for missing settings. Then you can ask for changes in follow-up messages.

Flow Builder does for flows what Agent Builder does for AI agents, which is covered in Building an AI Agent with AI. To build or edit a flow by hand, see Designing a Flow.

📝 Note: Build with AI has three requirements. First, the Enable Flow Builder tenant feature must be on. It is on by default in the Premium edition and off in Basic and Standard. Second, a language model must be saved under Administration > Settings > Flow Builder: choose an LLM Configuration and a Model. A custom model also needs a Model Name, and Reasoning Effort appears when the model supports it. Until these settings are saved, Build with AI is disabled and its tooltip says the Flow Builder LLM settings are not configured. Third, you need the Edit permission on Projects or on AI Agents, in the Designer group on the Roles screen. For setting up a model, see Creating an LLM Configuration.


Where Build with AI appears

Build with AI, marked Beta, is at the top right of the flow designer toolbar, to the left of undo and redo. It works on every flow the designer opens: Main, subflows, other project flows, intent action flows and AI agent tool flows.

Build with AI in the flow designer toolbar

Flow Builder works on the Draft version only. When a published version is open, Build with AI is not shown, so switch to Draft at the top right of the page. Flow Builder never publishes anything. Publishing stays with you, as described in Publishing and Versions.

If Build with AI is missing on a Draft version, then either the tenant feature is off or you do not have the edit permission.


The Flow Builder panel

The Flow Builder panel open over the Main flow, with a request typed

1. Header: The title Flow Builder, and a reminder that changes apply to the Draft version.

2. The two controls at the top right: The first collapses the panel and keeps the conversation. The second closes the panel and ends the conversation.

3. Flow: The flow this conversation works on, here Main.

4. Conversation: Your requests, Flow Builder's replies and summaries, and status lines.

5. Attach: The paperclip to the left of the message box. Adds files to your message.

6. Message box: Describe the flow, or the change you want.

7. Microphone: Dictate instead of typing.

8. Send: Sends the message.


Building a subflow: an example

This example builds a subflow that looks up an order's status. It assumes the project already has a data table named Orders.

  1. Open the Main flow on its Draft version and click Build with AI. The Flow Builder panel opens on the right of the canvas.

  2. Type the request and send it:

    Create a subflow called OrderStatusLookup. Ask the customer for their order number, look it up in the Orders data table, and tell them the status of their order. If no order is found, transfer the conversation to a live agent.
    
  3. Wait for Flow Builder to finish. A banner across the canvas says editing is paused, and you cannot change the canvas until the work is done. This example took less than half a minute.

    Flow Builder working, with editing on the canvas paused

  4. Read the summary. Flow Builder lists what it built and says whether the flow validated, and a status line confirms the flow was updated. In this example it built a subflow that:

    • asks for the order number
    • looks the number up in Orders
    • tells the customer the status
    • sends the not-found and error cases to a Live Chat Transfer, with a fallback message for when no live agent is available

    The Main flow was not changed.

    The build summary in the Flow Builder panel (example output, yours will differ)

  5. Reload the page to see the new subflow. A subflow created from another flow does not appear by itself: the canvas stays on the flow you are in. After a reload, OrderStatusLookup appears in the Flows list, and you can open it from there. Reloading also ends the Flow Builder conversation, so read the summary first.

    The new OrderStatusLookup subflow on the canvas (example output, yours will differ)

  6. Check the nodes. Each generated node opens like any other node, with its settings filled in. Here the Data Table node reads from Orders with the Get operation and a condition on orderNumber. Flow Builder creates variables only as outputs of the nodes it adds, such as orderResult here.

    The generated Data Table node opened (example output, yours will differ)


Changing a flow

Open the flow you want to change, click Build with AI and describe the change. Flow Builder can add, update and remove nodes and connections. It changes only what you asked for. All other nodes keep their settings and their position.

To continue the example, open OrderStatusLookup and send:

After telling the customer the order status, ask whether there is anything else they need.

Flow Builder added one Confirmation node after the status message and connected its outputs to End. No other node moved.

The flow with the new Confirmation node and the summary of the change (example output, yours will differ)


What Flow Builder uses and what it leaves alone

Flow Builder uses only resources the project already has:

  • virtual agents and AI agents
  • knowledge bases and data tables
  • LLM configurations and MCP servers
  • custom data keys and custom attributes
  • skills, languages and subflows

It does not create or change any of these, and it does not create or change intents or entities either. If your request names a resource that does not exist, Flow Builder tells you to create it on its own screen. It then builds the rest of the flow, and its summary says what it left out. After you create the resource, you can ask for the missing part in a follow-up message.

The only new flows it creates are subflows. It does not publish, train, delete or rename flows.


When things do not go as expected

Closing the panel ends the conversation, and reopening the panel starts a new one. Reloading the page has the same effect as closing. Collapsing keeps the conversation. No conversation history is kept.

Only one build can run on a flow at a time. If someone else is already building the same flow, Flow Builder tells you, and your canvas follows their changes.

Situation What it means
The flow was updated The change was applied and the canvas has been refreshed.
A change could not be applied Nothing in the flow was changed.
The step limit was reached Flow Builder reached the most it can do for one message. Its work so far is saved. Send "continue" to carry on.
Starting or sending failed Close and reopen the panel, or try again.

Limits

Item Limit
Files per message 5
File size 5 MB per file
File types pdf, png, jpg, jpeg, json, txt, md
Dictation Up to 100 seconds