Update a flow's happy path
Changed onUpdates the happy path's title, persona, environment, brief or expectations. Omitted fields are left alone; additionalExpectations replaces the set wholesale rather than appending.
Its persona and environment are what the edge cases inherit, so changing them here changes every edge case that does not name its own.
Request
- Base URLhttps://api.roark.ai
- URLhttps://api.roark.ai/v1/customer-flow/{flowId}/happy-path
- AuthHTTP bearer
Path parameters
Request body
Example request
{
"additionalExpectations": [
{
"prompt": "The agent confirmed the new appointment time back to the customer"
}
]
}Response
The updated happy path
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 new optional request property
- 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