How can I use the “connect to API” feature in Smart Assist to send a POST request with the transcripts of the entire conversation, including the bot-user and agent-user interactions, after the agent transfer is done?
I can create a static request like this but I would like this JSON to be dynamically created.
{
“conversation_id”: “1234567890”,
“transcripts”: [
{
“sender”: “bot”,
“recipient”: “user”,
“text”: “Hello, how can I help you today?”
},
{
“sender”: “user”,
“recipient”: “bot”,
“text”: “agent.”
},
{
“sender”: “agent”,
“recipient”: “user”,
“text”: "Hi, my name is xxxx, how can I help you today? "
}
]
}
Is there a way to achieve this?