Connect to api Node Config from Smart Assist to send Transcripts

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?

Hi @phanindra.sagiraju ,

Thank you for reaching out to Kore.ai Community.
We are checking on this requirement with the concerned team and will revert back to you with an update.

Thank you,
Srujan Madderla
Kore.ai Community Team