In hte widget code, used in the webpage, a queue can be assigned, this is widget code from Genesys Cloud:
window._genesys = { "widgets": { "webchat": { "transport": { "type": "purecloud-v2-sockets", "dataURL": "https://api.usw2.pure.cloud", "deploymentKey": "<deploymentkey", "orgGuid": "", "interactionData": { "routing": { **"targetType": "QUEUE",** ** "targetAddress": "Test C Queue Abeka",** "priority": 2 In Architect, I want to acquire this queue name (targetAddress) and use it to route the chat to. I cannot for the life of me find this variable! Thank you in advance! BrentHello,
You can retrieve the targetAddress that you have set on widgets side in the conversation's participant data/attributes - in context.genesys.legacyRoutingTargetQueueAddress.
I mean you can use a "Get Participant Data" action in your Architect flow and use "context.genesys.legacyRoutingTargetQueueAddress" in the Attribute Name.
Or you can also leverage the reusable task (Find Legacy Queue) which is created by default on a new Architect Chat flow. It more or less does the same thing - bit differently.
Note that you will retrieve the Queue Name. You then need to transform it in a "Queue" object (ex: using Find Queue action).
Regards,
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.