Add an edge case
Changed onAdds a variant to an IMPROV flow.
A scripted flow's variants are owned by the path engine, one per path through the graph, so they are created by editing the graph through PUT /v1/customer-flow/{flowId}/graph rather than here.
Leave personaOverrideId or environmentId unset to inherit the happy path's.
Request
- Base URLhttps://api.roark.ai
- URLhttps://api.roark.ai/v1/customer-flow/{flowId}/edge-case
- AuthHTTP bearer
Path parameters
Request body
Example request
{
"additionalExpectations": [
{
"prompt": "The agent confirmed the new appointment time back to the customer"
}
]
}Response
The edge case that was added
Example response
{
"data": {
"personaOverride": {
"backstoryPrompt": "A busy professional calling during lunch break",
"properties": {
"age": 35,
"zipCode": "94105",
"occupation": "Software Engineer"
},
"phoneNumber": "+19312830919"
}
}
}Changes
- info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status
- info
- info
added the optional property
///to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status
- info