Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Scripter.Open URL is not passing the variable for some agents.

    Posted 11-06-2023 10:27
    No replies, thread closed.

    We have been working with an angular scripting solution for several years, and this weekend, some agents started seeing an issue where when they select the external script option, the variable is not passing the details, and the script is not opening. We are using (redacted)

     https://eun-test-genesys-scripts-app.azurewebsites.net/?script=scriptname&conversationId={{Scripter.Interaction ID}}. We load the script in the browser in the Genesys window

    When some agents select the link to open the same script in an external window, the variable is not being passed.

    This is affecting only some agents. All agents work from home and the agents affected are in different countries.
    Done all standard troubleshooting cache, cookies & new browser. Cleaned DNS and ARP. Anyone come across an issue wth a variable not being passed like this?

    #Integrations

    ------------------------------
    Con Finucane
    IT Service Deliver Manger

    ------------------------------


  • 2.  RE: Scripter.Open URL is not passing the variable for some agents.

    Posted 11-09-2023 02:12
    No replies, thread closed.

    Hi Con,

    Variables exchanged between Architect and the Scripting engine as not routed through the Agent's Network but rather internally. Although it is indeed a good practice to ensure that Incoginto window (or even a burner browser) is used to debugging purposes.

    Secondly, for the Agent(s) in question for whom this doesn't work, does it not work consistently or intermittently? I would assume that it would be consistently not working for those selected Agents. If so, I would recommend that you do a permission by permission analysis (direct or inherited) of one affected Agent and an Agent for whom this always works.

    Also you might also need to verify that they're using the same script. Sometimes the script that gets popped up could be a different one for different users based upon several factors such as Queues, Campaign, default templates etc. Could it be possible that the Agents who are affected are by some chance ending up using an older version of the script which doesn't have the trailing string?

    Kind Regards,



    ------------------------------
    John Lazarus
    Genesys - Employees
    ------------------------------



  • 3.  RE: Scripter.Open URL is not passing the variable for some agents.

    Posted 11-09-2023 09:01
    No replies, thread closed.

    Hi John 

    Hi John,

    Thanks for the reply. All the agents work in the same division and have been successfully using the script for over 2 years. There is only 1 version of the script.  The issue is spreading, so I suspect that it is a change in setting at the OS level at this stage but we have reset machines and rebuilt OS without change. We have logged the agent into the test machine (all agents work from home and are remote) and on the new machine, they can successfully load the script in the new tab or new window. We will test with the Incognito window, and I am working on getting some decrypted network captures on Wireshark to see if I can see what is happening in the browser session when the script is loaded.

    Regards

    Con



    ------------------------------
    Con Finucane
    IT Manger
    Otonomee Customer Management Limited
    Ireland
    ------------------------------



  • 4.  RE: Scripter.Open URL is not passing the variable for some agents.

    Posted 11-23-2023 07:13
    No replies, thread closed.

    Hi John 

    I have done a lot of analysis and what I can see is that. when the script is selected and is successfully able to load the page the following is happening.

    • https://scripts-app.azurewebsites.net/?script=testscript&conversationId=..., which returns a 200 OK response. This suggests a successful page load.

    For the script that does not load 

    • https://scripts-api.azurewebsites.net/auth/callback?code=..., which results in a 302 Found response. This is indicative of an authentication or authorization process, likely related to a token.
    • The next request is to https://scripts-app.azurewebsites.net/?conversationId=...&token=..., which includes a token parameter. This confirms that the token is being used in this session.
    • When the auth is done, the script does not load as the parameters are missing

    The key difference is the presence of an authentication or authorization step in the failed-to-load scenario.

    If I copy the URL generated by Genesys using the insert text box the https://scripts-app.azurewebsites.net/?script=testscript&conversationId= and paste it to the window that has acquired the token, then it loads. 

    Why some users need to ask for a token when requesting the link to load in a new tab/window is unknown.

    i have 25 agents using the same setup, and 8 have issues with all the same permissions. But the strange thing is if I have a user logged on to their Windows profile and they are having this issue in the browser. I can log a user in that same browser session into Genesys, and they can launch the external script successfully (only one user logged in at a time to Genesys). 



    ------------------------------
    Con Finucane
    IT Manger
    Otonomee Customer Management Limited
    Ireland
    ------------------------------