Hi Ragheb,
I think Phaneedras answer, to pass the data directliy to the bot is the best solution. If you have to use participant data for some reason, you can use Data Actions.
GET /api/v2/conversations/calls/${input.conversionID}
with something like that in the response map:
{
"translationMap": {
"startTimeB": "$.participants[0].startTime",
"interactionIDB": "$.participants[0].id",
"aniB": "$.participants[0].ani"
},
"translationMapDefaults": {
"startTimeB": "\"error\"",
"interactionIDB": "\"error\"",
"aniB": "\"error\""
},
"successTemplate": "{\n \"participantID\": ${interactionIDB}\n, \"customerAddress\": ${aniB}\n, \"conversationStartTime\": ${startTimeB}\n}"
}
But Aarons concerns about timing are valid. You can use Data Action for writing participant data, too:
PATCH /api/v2/conversations/calls/${input.interactionID}/participants/${input.participantID}/attributes
with a Request Body template like that:
{
"attributes": {
"${input.Atrribut1Name}": "${input.Attribut1Wert}",
"${input.Attribut2Name}": "${input.Attribut2Wert}",
"${input.Attribut3Name}": "${input.Atribut3Wert}"
}
}
------------------------------
Christoph
Produktmanager Kunden-Dialog-Center
------------------------------