Skip to main content
PUT
JavaScript

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

flowId
string<uuid>
required

Body

application/json

Fields to change on a customer flow. The step graph is edited through PUT /graph instead.

title
string
Minimum string length: 1
description
string | null
branchingMode
enum<string>

Scripted flows only. How a run walks the graph. DETERMINISTIC ("Simulate every path" in the app) places one call per variant, each following its path exactly whatever the agent says. ADAPTIVE ("Adapt to your agent") collapses the paths into one call PER PERSONA, on which the simulated customer picks a branch from what the agent actually said. Both modes speak the exact authored lines, and neither changes how metrics or expectations grade.

Available options:
DETERMINISTIC,
ADAPTIVE
agentIds
string<uuid>[]

Replaces the linked agents. Omit to leave them unchanged. An improv flow must keep at least one; a scripted flow can be left with none.

agentExpectations
object[]

Replaces the flow-level expectations. Omit to leave them unchanged.

Response

The updated customer flow

data
Scripted · object
required

The conversation a simulated customer has with the agent under test.