A place to ask questions, connect with others, and stay in the know
We have an in-queue flow used by more than one queue. We are trying to write logic now that triggers a specific behavior if there are X number of calls waiting in the queue the caller is in. The Get Interactions in Queue Data action wants a Queue_Id. how do we make this a dynamic field so it pulls the right queue id?
Also is there a way to get longest interaction waiting in a queue to trigger an action? In the function finder I could only find functions for estimated wait time.
Use the built-in system variable Call.CurrentQueue to get the current queue.
For the 2nd question, each interaction in an inqueue flow doesn't know what else is going on. You could look at the Call.PositionInQueue variable to see how many interactions are ahead of you, but that doesn't tell how many are behind you. You could write a data action to query the queue observation endpoint, total how many interactions are waiting (they're separated by media type), then compare Call.PositionInQueue to the total to see if you're last. And remember that Call.PositionInQueue will never show an increase, so you could be last without knowing it.
Thanks Melissa. I had the Call.CurrentQueue but it didn't like that. Everytime a call gets to that point in the flow, an error occurs and it disconnects. I've tried it with ToString(Call.CurrentQueue) and just Call.CurrentQueue. Is it the variable I'm storing that result in that's the problem? Below is what I have.
ToString of a queue variable returns the queue's name. You need the id. Use Call.currentQueue.id
That worked. Thank you!
Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources
Genesys empowers more than 7,500 organizations in over 100 countries to improve loyalty and business outcomes by creating the best experiences for customers and employees. Through Genesys Cloud, the #1 AI-powered experience orchestration platform, Genesys delivers the future of CX to organizations of all sizes so they can provide empathetic, personalized experience at scale. As the trusted, all-in-one platform born in the cloud, Genesys Cloud accelerates growth for organizations by enabling them to differentiate with the right customer experience at the right time, while driving stronger workforce engagement, efficiency and operational improvements.