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

# roark customer-flow create

> Create a customer flow

Creates a customer flow. A SCRIPTED flow carries a step graph and gets one way of running it per path through the graph; an IMPROV flow carries the briefs you send. Customer flows replace the older simulation scenarios, so build a flow for anything new.

```bash Synopsis theme={"theme":{"light":"everforest-light","dark":"everforest-dark"}}
roark customer-flow create [options]
```

> [!NOTE]
>
> Calls `POST /v1/customer-flow`

## Request body

This endpoint accepts one of several request shapes, so the body is supplied as
JSON through `--data` or on standard input rather than as individual flags.

**CreateScriptedCustomerFlowInput** `object`

Requires `type`, `title`, `graph`

**CreateImprovCustomerFlowInput** `object`

Requires `type`, `title`, `agentIds`, `happyPath`

## Example

```bash theme={"theme":{"light":"everforest-light","dark":"everforest-dark"}}
roark customer-flow create --data '{ ... }'
```

Every command also takes the [global options](/cli-reference/overview.md#global-options) and sets one
of the [exit codes](/cli-reference/overview.md#exit-codes).


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