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 (the brief) and expectations are optional. Flow-level expectations apply to every variant.
  • openingLine is said word for word as the call connects (Customer speaks first in the app); plain text, no {{variables}}.
  • holdMode (DEFAULT, CUSTOM or NEVER), holdInstructions (required with CUSTOM) and holdMaxSeconds (5 to 600) set how the caller waits on hold. See Improv flows.
  • Each edgeCases[] entry inherits the happy path unless it overrides persona / environment / prompt / openingLine / hold, and can add its own expectations. includeFlowExpectations: false grades it on its own expectations only.
  • 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, keypad entry, audio, hand-overs and flow links. Each apply replaces the whole graph. See Scripted flows for what each step does.
  • 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.
  • Step types: AGENT_TURN, AGENT_DTMF, CUSTOMER_TURN, CUSTOMER_VERBATIM_TURN (word for word; directly under the start it opens the call), CUSTOMER_HANDOFF, CUSTOMER_DTMF, CUSTOMER_SILENCE, CUSTOMER_AUDIO and SCENARIO_LINK (a link to the flow named in flow). CUSTOMER_FIRST_MESSAGE is the retired name for an opening CUSTOMER_VERBATIM_TURN.
  • content is the line; dtmfDigits the keys (both DTMF types); silenceDurationSeconds the length of a silence or audio step; audioClip what an audio step plays.
  • 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.
  • Flow-level: branchingMode (DETERMINISTIC or ADAPTIVE), adherence (LOOSE or STRICT) and offScript (the off-script policy). An AGENT_TURN or AGENT_DTMF step can carry its own offScript. See Script adherence.
  • stage puts a step in a stage: a name, or { name, required, analyze }. endsCall: true on the last step of a path in a STRICT flow ends the call there instead of handing over to an improv. See Stages.

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.