Update a flow's happy path
Updates the happy path’s title, persona, environment, brief, hold settings or expectations. Omitted fields
are left alone; additionalExpectations replaces the set wholesale rather than appending.
Its persona, environment and hold settings are what the edge cases inherit, so changing them here changes every edge case that does not name its own.
Authorizations
Body
Fields to change on a variant. Omitted fields are left alone. Making a variant the default is a separate operation, since it also demotes the current default.
Improv flows only. The brief the simulated customer improvises from. Caller cues steer the caller from that point in the brief: #{emotion:<emotion>}, #{language:<ISO 639-1 code>}, #{noise:<environmentId>}, and #{interrupt}, whose sentence says when to cut in on your agent. Cues are voice only. See "Caller cues" in the customer flows concept.
How the simulated customer waits quietly on hold while your agent is busy. DEFAULT follows Roark's built-in rules: wait when the agent asks for a moment ("bear with me", "let me pull that up"), and never in place of answering a question. CUSTOM follows holdInstructions. NEVER means this customer never holds. Null on an edge case uses the happy path's mode, instructions and longest wait together; null on the happy path is DEFAULT. Applies to improv variants and to the improvised turns of scripted ones.
DEFAULT, CUSTOM, NEVER "CUSTOM"
CUSTOM only: when the simulated customer waits quietly, written as instructions it follows. It stays silent until the agent speaks again or the longest wait runs out, then takes the turn back. Required when holdMode is CUSTOM. Up to 4000 characters.
4000"Hold whenever the agent is processing a credit card number and says okay."
The expectations graded on this variant only, on top of the flow's own. Sent as the complete set: it replaces whatever the variant had, so omit it to leave the set alone and send [] to clear it. Improv flows only: a scripted variant's expectations come from the agent turns on its path and are rewritten on every graph edit.