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
edgeCaseId
string<uuid>
required

Body

application/json

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.

title
string
Minimum string length: 1
environmentId
string<uuid> | null
prompt
string | null
openingLine
string | null
precededByCustomerFlowId
string<uuid> | null
precededByCustomerFlowVariantId
string<uuid> | null
includeFlowExpectations
boolean

Whether this edge case is graded on the flow's agentExpectations as well as its own additionalExpectations. Defaults to true; false grades it on its additionalExpectations only.

personaOverrideId
string<uuid> | null

The persona this runs as. Null on an edge case inherits the happy path's.

additionalExpectations
object[]

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.

Response

The updated edge case

data
Scripted · object
required

One way of running a customer flow.