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.
happyPathrequires apersonaandenvironment(by name);promptandexpectationsare optional.- Each
edgeCases[]entry inherits the happy path unless it overridespersona/environment/prompt, and can add its ownexpectations. environmentcan name a bad-line preset such asCell edge; see Phone network conditions.- A
prompthands 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
typeand an optionalreflabel so other nodes can rejoin it viamergeInto(DAG merge edges).stepsare 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_HANDOFFstep hands the phone to the persona named inhandoffPersona, 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
folderstays wherever it is, so folders you organize in the app are kept. Changing the path moves the flow on the next apply.
For the full field reference of every kind, see the Config DSL reference schema.