Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Issue utilizing Set Screen Pop in In-Queue Flows due to how Participant Data is written

    Posted 05-27-2025 12:15
    Edited by Nate Reprogle 05-27-2025 12:15
    No replies, thread closed.

    Good morning, community!

    We noticed a weird quirk of In-Queue Call Flows recently that we are hoping to get some information on. We are aware that the "Set Screen Pop" Architect action is just a glorified "Set Participant Data" action. It sets the "scriptId" attribute in Participant Data as well as any other attributes a Script has listed as "Input Data". 

    When used in an In-Queue Flow, because of the way participant data is stored in memory and not written to the call until before the flow terminates, scripts can't actually be updated once they hit the In-Queue Flow, unless you transfer to another queue.

    This issue is problematic for teams that transfer to queues belonging to other teams that may use different scripts. For example, if someone in our customer experience department receives a call, that call has the CE script loaded on it. Then, they transfer that call to our corporate switchboard queue, and because we can't update the Screen Pop due to how Participant Data is handled, the CE script tries to load again for switchboard agents and fails due to permission errors.

    How can we work around this (without restricting transfer permissions or utilizing hacky workarounds which may affect reporting) to ensure the correct script is set every time in all scenarios?

    #Scripter #Architect


    #ArchitectureandDesign

    ------------------------------
    Nate Reprogle
    ------------------------------



  • 2.  RE: Issue utilizing Set Screen Pop in In-Queue Flows due to how Participant Data is written
    Best Answer

    Posted 05-27-2025 16:17
    No replies, thread closed.

    Hey Nate,

    I believe that the interaction between the flow variable and scripts are working as designed. If you would like suggest a change to how this information is presented, I would recommend that you submit your Idea through the Product Ideas Lab.

    To Access the Product Ideas Lab and add your idea:

    1. Sign in to the Genesys Knowledge Network.
    2. On the Product Ideas Lab section, click Browse and Submit Ideas.
    3. From the Product Ideas Lab, click Add a Product Idea.

    If anyone in the Community has a workaround, I would love to know other are able to accomplish this with their scripting.



    ------------------------------
    Jason Kleitz
    Online Community Manager/Moderator
    ------------------------------



  • 3.  RE: Issue utilizing Set Screen Pop in In-Queue Flows due to how Participant Data is written

    Posted 05-27-2025 16:34
    No replies, thread closed.

    Hey Jason,

    To be clear, when you say "The interaction between the flow variable and scripts are working as designed", are you saying that not being able to update the Screen Pop within an In-Queue flow is intentional? Obviously if we transferred the call it would be fine, but if the call were to remain in the flow, updating Screen Pop is impossible?



    ------------------------------
    Nate Reprogle
    ------------------------------



  • 4.  RE: Issue utilizing Set Screen Pop in In-Queue Flows due to how Participant Data is written

    Posted 05-27-2025 16:49
    Edited by George Ganahl 05-28-2025 09:18
    No replies, thread closed.

    Hi, Nate,

    Just checking to be sure...did you already try using a Set Screen Pop action as the very first action in the In Queue flow?

    There is always a race condition when setting anything in the In-Queue flow, since it doesn't run if a call goes immediately to an available agent.

    You would be best to use a workaround for the transfer instead of just transferring directly to queue. Probably the one where you create a dummy External Contact with the [nameOfQueue]-Transfer or something similar. Associate an internal DID that routes to an Inbound Call Flow that uses the Set Screen Pop the Transfer to ACD to send the call to the queue.

    Sorry, but unless you set the screen pop before the Transfer to ACD there's no guarantee anything you set in the In-Queue flow will take effect.



    ------------------------------
    George Ganahl GCCX-AI, GCP, GCSME, ICCE, ICHD, etc.
    Technical Adoption Champion
    Genesys
    ------------------------------



  • 5.  RE: Issue utilizing Set Screen Pop in In-Queue Flows due to how Participant Data is written

    Posted 05-27-2025 17:12
    No replies, thread closed.

    Hey George, it's been a while! Good to talk to you again.

    From our testing, it appears Scripter uses the participant data written to the call and cannot access the data stored in-memory (Which makes sense if it's in-memory).

    Scripter component - handleLocationChange change /scripter/?locale=en-us&user=8f23b952-bd51-4291-a12c-5d70d89fbdc2#interactionId=a1aadb98-4f71-48ef-aa6c-e5f31790a0bc
    Scripter component - handleLocationChange change /scripter/?locale=en-us&user=8f23b952-bd51-4291-a12c-5d70d89fbdc2#
    scripter-ui--root: Retrieving Interaction:  {
        "detail": "a1aadb98-4f71-48ef-aa6c-e5f31790a0bc"
    }

    Then, later in the call, we see scripter receives the published script data with the incorrect Script ID:

    scripter-ui--root: Received Published Script Data:  {
        "info": "9f6f2db0-2af8-4f1f-867b-f1e0bb8d94f0"
    }

    It would be nice if the Set Screen Pop action would force a write of participant data, but we at least comprehend the current limitation.



    ------------------------------
    Nate Reprogle
    ------------------------------



  • 6.  RE: Issue utilizing Set Screen Pop in In-Queue Flows due to how Participant Data is written

    Posted 05-27-2025 17:25
    No replies, thread closed.

    Right...race condition with the In-Queue flow (since it is still running while the call is alerting)...

    Which is why my recommendation for the nefarious work-around.

    Another one I've used is to do the transfer by running a Secure Call Flow from the script and do whatever actions I want (set skills, set screen pop, etc.) and Transfer to ACD from there. I usually have a drop-down in the first script with a select set of queues to transfer to. Calling the Secure Call flow I do not set it to return to the agent.



    ------------------------------
    George Ganahl GCCX-AI, GCP, GCSME, ICCE, ICHD, etc.
    Technical Adoption Champion
    Genesys
    ------------------------------



  • 7.  RE: Issue utilizing Set Screen Pop in In-Queue Flows due to how Participant Data is written

    Posted 05-27-2025 17:04
    No replies, thread closed.

    Hi Nate, if you hadn't already, you could also look at using the "OUTPUT" variable setting in the script the intial inbound queue uses.  If you set something in that script on a variable that's flagged as OUTPUT, then in theory you can use that same variable as "INPUT" on the second queue without needing to worry about set screen pop within that second queue's in-queue flow.



    ------------------------------
    Vaun McCarthy
    ------------------------------



  • 8.  RE: Issue utilizing Set Screen Pop in In-Queue Flows due to how Participant Data is written

    Posted 05-27-2025 17:12
    No replies, thread closed.

    Hmm, definitely an interesting thought! Thanks, Vaun! I'll take a look at that and report back



    ------------------------------
    Nate Reprogle
    ------------------------------



  • 9.  RE: Issue utilizing Set Screen Pop in In-Queue Flows due to how Participant Data is written

    Posted 05-28-2025 15:51
    No replies, thread closed.

    Hey Nate,

    It is for scenarios such as this that there are a couple of ideas over on Aha! Firstly, there is the ability to transfer directly to a flow (thus avoiding the workaround described by George) Secondly, the ability to control whether a queue is a valid target for a transfer by an agent (to prevent calls bypassing the "gateway" flow).

    Take a look at:

    https://genesyscloud.ideas.aha.io/ideas/INB-I-867

    https://genesyscloud.ideas.aha.io/ideas/INB-I-873

    https://genesyscloud.ideas.aha.io/ideas/INB-I-1625

    (There are other related ideas that you can probably find.)

    HTH



    ------------------------------
    Paul Simpson
    Views expressed are my own and do not necessarily reflect those of my employer.
    ------------------------------