Screenpop on Answer/Connected instead of page load

I'm trying to develop a script that pops a URL once the agent has accepted the work-item.

I've created a custom action with the logic I think would do this based on Interaction State
image

And I've assigned it as the default Page Load Action

But it never triggers

  • Am I right in assuming that it is evaluating on page load, when the interaction state is 'Incoming' and so doesn't meet my condition and then ends the custom action?
  • Or is there something else that I have missed?

If I am right; Is there a way to trigger an evaluation on a variable change?
e.g.: On Scripter.Interaction State change, THEN run Custom Action?

Thanks
Lloyd

Hello,

"Am I right in assuming that it is evaluating on page load, when the interaction state is 'Incoming' and so doesn't meet my condition and then ends the custom action?"
That's correct. The script is evaluated when the page loads (when the interaction is in alerting).

"If I am right; Is there a way to trigger an evaluation on a variable change?"
Unfortunately no, it is not possible at this time (no "internal trigger" available on variable/Interaction State change).

What some are doing is to use a Delay function to postpone the execution of the logic. Of course it won't be done exactly at the time the interaction is answered.
You can find some explanations in this other post and on the Genesys Cloud community forum.

You can also request a new feature and share your use case at https://genesyscloud.ideas.aha.io/ or vote for an existing idea (as there is probably one already for this use case).

Regards,

Thanks Jerome, atleast I was on the right track :slight_smile:

Figured out a solution; I've got 2 pages in my script:

  • Page1 checks interactionState for connected, if not waits 3sec then swaps to page2
  • Page2 checks interactionState for connected, if not waits 3sec then swaps to page1
  • and so on...

Once interactionState is connected I set a boolean to stop the bouncing & perform my screenpop.

Not the cleanest solution, but customer is happy.

Thanks again

1 Like

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