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/page load event. 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,
or let us know if there is any way to avoid this.
For the bad calls I could see the <<gate>>variable is showing " (blank value).
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.
Here in this solution I used the scripter.queName variable directly(without passing from Architect) as its readily available in the script. but intermittently its going blank.
I am curious about the API success rate, is it 100% or less than that. bcoz I am getting 93% to 95% aprox. rest of the request are getting failed because of the blank variable value which is getting passed to the backend.
Thanks in advance..!!!
#Integrations------------------------------
Devanand Gawande
Capgemini Brasil
------------------------------