Customer Flow
Create a customer flow
Creates a customer flow. A SCRIPTED flow carries a step graph and gets one way of running it per path through the graph; an IMPROV flow carries the briefs you send. Customer flows replace the older simulation scenarios, so build a flow for anything new.
post/v1/customer-flow
Request body
Example request
{
"type": "SCRIPTED",
"title": "Reschedule an appointment",
"agentIds": [
"7c9e6679-7425-40de-944b-e07fc1f90ae7"
],
"graph": [
{
"type": "CUSTOMER_FIRST_MESSAGE",
"content": "Hi, I need to move my appointment.",
"steps": [
{
"type": "AGENT_TURN",
"content": "Offers alternative times",
"steps": [
{
"type": "CUSTOMER_TURN",
"content": "Takes the first slot"
},
{
"type": "CUSTOMER_TURN",
"content": "Asks for later in the week"
}
]
}
]
}
]
}Response
The created customer flow
Example response
{
"data": {
"happyPath": {
"personaOverride": {
"backstoryPrompt": "A busy professional calling during lunch break",
"properties": {
"age": 35,
"zipCode": "94105",
"occupation": "Software Engineer"
}
}
},
"edgeCases": [
{
"personaOverride": {
"backstoryPrompt": "A busy professional calling during lunch break",
"properties": {
"age": 35,
"zipCode": "94105",
"occupation": "Software Engineer"
}
}
}
]
}
}