There is a built-in GetQueueEstimatedWaitTime() that allows you to look at the EWT for a specific queue before transferring in. As Aaron mentioned, you can also call the Queue Aggregate API to look at the queue depth and then have a decision to decide if you want to play the announcement or not. I would suggest instead of defining the prompt inside the flow, use a Find User Prompt and play the result. That way, if you record a new greeting, you don't have to republish the flow.
------------------------------
Robert Wakefield-Carl
ttec Digital
Sr. Director - Innovation Architects
Robert.WC@ttecdigital.comhttps://www.ttecDigital.comhttps://RobertWC.Blogspot.com------------------------------
Original Message:
Sent: 03-04-2024 12:43
From: Aaron Lael
Subject: Turn on Upfront Messages/Prompts Dynamically
You could write a Genesys Cloud data action to get the desired queue statistics from the API, call it in Architect and then implement logic based on the returned values in Architect to play or not play the message of your choosing.
------------------------------
Aaron Lael
State of Utah - comments on this forum reflect my own personal opinions\observations and are separate from any entity I am otherwise involved in.
------------------------------