Hi,
Thank you for your response.
I was following the Genesys blueprint for proactive callback, where they use the ToString() function to extract the seconds value from the Estimated Wait Time (EWT). This approach seemed a bit complex. Based on your suggestion, I found that using the ToInt() function is much simpler and more straightforward.
I have one more question regarding the blueprint. They use the following expression to calculate the adjusted EWT and store it in the variable Task.intSeconds:
ToInt(Task.intSeconds / Call.PositionInQueue * (Call.PositionInQueue + Task.waitingCallbacks))
Here:
Task.intSeconds holds the EWT in seconds, derived from Call.EstimatedWaitTime.
Task.waitingCallbacks represents the number of callbacks currently waiting in the callback queue, retrieved via a data action.
After this calculation, the blueprint uses a Play Audio block with the expression:
"Your estimated wait time is approximately " + MakeDuration(0, 0, 0, Task.intSeconds)
followed by a Collect Input block with the prompt:
"Press 1 if you would like us to hold your position in the queue and return your call when an agent is nearly available."
My question is:
Does this expression take into account the already waiting callbacks when calculating the EWT before offering the callback option?
------------------------------
Paras Manchanda
------------------------------
Original Message:
Sent: 10-10-2025 06:27
From: Christian Karpp
Subject: Estimate Wait time output
Hi,
the output of the EWT functions is a duration. Converting to string gives its ISO 8601 representation (https://en.wikipedia.org/wiki/ISO_8601#Durations).
You can simply use ToInt() to get the value in milliseconds.
------------------------------
Christian Karpp
Principal PS Consultant
------------------------------