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

# Script Flows

> Chain scripts into multi-step conversation sequences

## Introduction

Script Flows let you combine multiple scripts into a guided, multi-step conversation sequence. Instead of searching for the next script manually, a flow walks you through each step in order -- keeping conversations consistent and saving time during complex interactions like sales funnels, onboarding sequences, or upsell chains.

You can find Flows by switching to the **Flows** tab at the top of the Scripts section.

## Flows table

The Flows tab displays all your flows in a table with the following columns:

| Column      | Description                                    |
| ----------- | ---------------------------------------------- |
| Name        | Flow name for quick identification             |
| Description | Short summary of the flow's purpose            |
| Steps       | Number of steps in the flow                    |
| Scripts     | Number of unique scripts used across all steps |

Use the search bar to find flows by name. The table supports pagination and column visibility toggles, just like the scripts table.

## Creating a flow

Click **Add Flow** to open the Flow Editor. Fill in the following fields:

| Field       | Description                                                                   |
| ----------- | ----------------------------------------------------------------------------- |
| Flow Name   | A descriptive name for the flow (required, up to 200 characters)              |
| Description | An optional summary of when and how to use this flow (up to 1,000 characters) |
| Steps       | The ordered list of conversation steps (at least one required)                |

### Adding steps

1. Click **Add Step** at the bottom of the steps list
2. Enter a **step label** that describes the purpose of this step (up to 150 characters) -- for example, "Greeting" or "Offer premium content"
3. Select a **script** to link to this step using the script picker

You can add up to 50 steps per flow.

### Filtering scripts by tag in the picker

The **Script Picker** lets you narrow the list of scripts by tag. The picker works with **SCRIPT-type tags** -- the same tags you see on the Scripts library -- so filtering by a tag returns the scripts assigned to it.

<Note>
  Flow-level tags (used to organize flows in the Flows tab) are separate from script tags and are not shown in the Script Picker.
</Note>

### Conditional step branches

A **Conditional step** lets you prepare different scripts for the same step depending on the fan's response or situation. Each branch has its own label and linked script.

| Setting                   | Value |
| ------------------------- | ----- |
| Minimum branches per step | 2     |
| Maximum branches per step | 10    |

A Conditional step can now have up to 10 branches, enabling longer decision trees without duplicating flows -- for example, ten price tiers in a budget question, or ten response types in a qualifier.

<Tip>
  Use branches when a conversation can split -- for example, one branch for a fan who says "yes," one for "maybe later," and separate branches for each price range you want to offer.
</Tip>

### Reordering steps

Drag steps by the grip handle to rearrange them. The order you set here is the order the flow will follow during a chat conversation.

## Editing and deleting flows

Manage existing flows using the action icons in the table:

* **Pencil icon** -- opens the Flow Editor to modify the flow
* **Trash icon** -- permanently deletes the flow

<Warning>
  Flow deletion is irreversible. Make sure you no longer need a flow before deleting it.
</Warning>

## Using flows in chat

Once a flow is created, it becomes available in the chat scripts modal under the **Flows** tab. When you select a flow, a guided runner panel appears in the chat that walks you through each step in sequence.

For more details, see [Using Scripts in Chat](./using-in-chat).

## Next steps

* [Scripts Library](./index) -- Managing individual scripts
* [Using Scripts in Chat](./using-in-chat) -- How to use scripts and flows during conversations
