Hello
Sorry I'm a bit novice
I would like to use the Text input script component to have my HD agent entering a reference number in the pop up screen we have displaying already caller/IVR selections etc..
Once the conversation is wrapped up the reference number enetered should be available in the API report conversation detail query
Under which attribute will it show up ?
Tx for your help
Renaud
If you use an output variable in your script, its value will be written to a participant attribute. Analytics conversation detail results don't contain participant attributes. You either need to use an analytics job or the conversation APIs to retrieve participant attributes.
Thank you for reply
Are you referring to following query ?
/api/v2/conversations/{conversationId}/participants/{participantId}/attributes
Can I define a custom attribute to which I will assign the value of my script output variable using the above patch query ?
Then retrieve via API reports the value of that custom attribute in conversation detail ?
Or I can only assign that value to one of the standard attribute below ?
{
"wrapup": {
"code": "",
"name": "",
"notes": "",
"tags": [],
"durationSeconds": 0,
"endTime": "",
"provisional": true
},
"state": "",
"recording": true,
"muted": true,
"confined": true,
"held": true,
"wrapupSkipped": true
} and then read it via the standard conversation detail query ?
No, https://developer.mypurecloud.com/api/rest/v2/analytics/conversation_details_job.html
Create an output variable in your script and set a value to it. The participant data on that conversation will contain an attribute with the same name and value as the script variable when retrieved via an analytics job (link above).
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.