Lex_Yang | 2019-09-10 16:49:35 UTC | #1
Post: https://api.mypurecloud.com/api/v2/webchat/guest/conversations
Body:
{"organizationId":"3bda506d-faf6-4a02-84ba-ae8983d4cf01","deploymentId":"85c93090-147a-4a52-ad4a-40e16d2b6862","routingTarget":{"targetType":"QUEUE","targetAddress":"TestMIS","priority":100},"memberInfo":{"displayName":"JavaScript Guest","profileImageUrl":"https://d3a63qt71m2kua.cloudfront.net/developer-tools/1275/assets/images/agent.jpg","customFields":{"firstName":"John","lastName":"Doe","addressStreet":"64472 Brown Street","email":"john.doe@altavista.com","customerId":"59606","question":"hi"}}}
Any way we can make it to show "question" under interaction detail?
tim.smith | 2019-09-10 21:56:51 UTC | #2
See the customField* properties in the docs: https://developer.mypurecloud.com/api/webchat/index.html#chat_variables
anon39326996 | 2019-09-11 13:36:13 UTC | #3
You can also display any custom fields to the agent using scripts. This works the same way that you display custom fields/participant data to agents for voice calls or other media.
https://help.mypurecloud.com/articles/about-scripting/
Make sure to use the context. prefix for any chat-provided custom fields when referencing them within scripts.
system | 2019-10-12 13:36:15 UTC | #4
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: 5993