stefano.pucci | 2017-07-03 07:19:40 UTC | #1
Hi all,
We're creating a webcallback from our website and we are using this API in order to add a callback :slight_smile:
POST /api/v2/conversations/callbacks
One question :slight_smile: I'd like to show on agent screen through a Script some informations like "Which page on our web site the callback comes from" or other info.
I've seen that is possble to add "data" and I'll see on attribute for reporting.
But i'm not sure if is it possible to see these info on agent screen. Could you please give me support on this? Thanks Stefano
tim.smith | 2017-07-05 15:57:26 UTC | #2
stefano.pucci, post:1, topic:1494
But i'm not sure if is it possible to see these info on agent screen.
The key/value pairs passed in data will be set as participant attributes on the callback. If you use a script for the callback, input variables in the script will be populated with participant attributes of the same name. So if you create your callback with this request:
{
"scriptId": "29d5d6a0-6199-11e7-8dfd-3b02f841a302",
"queueId": "d1558db4-df3f-4471-9467-1106a55fd6a7",
"callbackNumbers": ["3172222222"],
"data": {
"cust_id": 123456,
"callback_reason": "need help",
"web_url": "http://mysite.com/path/to/page.html"
}
}
You can create input variables for use in your script like this:
<img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/8944270e3f046cfbeb147b0e741841a242d50ddd.png" width="279" height="205">
system | 2017-08-05 15:57:31 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 1494