Sometimes "Scripter.Queue Name" appears blank into the agent script pop-up as well as in API request(with Custom page load data action)

Hello Team,
Greetings,

Issue: Sometimes(for Aprox. 7% Calls) "Scripter.QueueName" (Gate variable) appears blank into the agent script pop-up as well as in API request when a Agent script pop-up appears and custom(page load data action triggers). I could see the call is getting routed to expected queue, and the queue name is also visible on the logs(while printing General "Target_QueName" variable (not the scripter.QueueName variable).

Scenario: I have a agent script where a custom page load action is defined with if/else statement, sometimes I could see, one of the variable(Scripter.queue.name) is getting passed as ""(blank) to the backend API call during the screen pop-up. I am passing two more scripter variable(Scripter.Agent.Email & Scripter.InteractionID) but they are never getting passed as blank. Sometimes only this(scriper.queueName) variable is getting passed as blank. and causing the backend process fails. Please guide, if there is any way to avoid this.

For the bad calls I could see the variable is showing " (blank value)in the HAR file of that agent.

Example:(HAR) >> Gate variable showing ''

2023-01-12T11:25:36+01:00 DEBUG: request_body: {'sdAgentId': 'agXXXXka.jXXXc@xxxxx.com', 'gate': '', 'callerPhoneNumber': '+441xxxxxxx8x6', 'servicePhoneNumber': '+4414xxxxx56', 'callerPin': 'None', 'odigoCallId': 'eabxxx67-216a-46f7-853e-bf4f2xxxfde', 'DNIS': '+44207xxxxx101', 'AmeliaCnvId': 'None'}.

If I assign the "QueName" value to some other variable and set it in the "Screen pop-up" node at Architect to pass it as a input variable to agent script. then If I use the same variable for the API interaction while calling the backend during custom page load action. not sure if this will work.
I used the scripter.queName variable directly(without passing from Architect) as its readily available in the script. but intermittently its going blank.

Thanks in advance..!!!

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.