Skip to main content
A simulation flow. Both types share kind: flow and are discriminated by type. Flows reference agents, a persona, and an environment by name.

Improv (type: improv)

An improvised simulation with a happy path and edge-case variants.
  • happyPath requires a persona and environment (by name); prompt and expectations are optional.
  • Each edgeCases[] entry inherits the happy path unless it overrides persona / environment / prompt, and can add its own expectations.
  • environment can name a bad-line preset such as Cell edge; see Phone network conditions.
  • A prompt hands the phone to another persona with a @{persona:<persona-id>} mention. See Multiple callers.

Scripted (type: scripted)

A step-by-step conversation graph (branches, merges, DTMF, voicemail, flow links; the API enum name is SCENARIO_LINK). Each apply replaces the whole graph.
  • Each node has a type and an optional ref label so other nodes can rejoin it via mergeInto (DAG merge edges). steps are a node’s successors (more than one = a branch).
  • No UUIDs: identity is the ref, and each apply replaces the whole graph.
  • The environment is referenced by its display name and must already exist in Roark.
  • A CUSTOMER_HANDOFF step hands the phone to the persona named in handoffPersona, or back to the flow’s own persona when it is left out. See Multiple callers.

Folders

folder files a flow in a folder on the customer flows hub, for both types. Name the folder by its path from the top level, with / between nested folders: Front desk/Rebooking is the Rebooking folder inside Front desk.
  • Apply creates any folder on the path that does not exist yet, and matches existing folders by name, ignoring case.
  • Folders nest up to 5 levels deep, and each name is at most 255 characters.
  • A flow with no folder stays wherever it is, so folders you organize in the app are kept. Changing the path moves the flow on the next apply.
See Folders for how folders work in the app.
For the full field reference of every kind, see the Config DSL reference schema.