Original Message:
Sent: 04-07-2026 03:44
From: Phaneendra Avatapalli
Subject: Preferred Agent Callback Reassignment After Timeout
Hi Rawat,
The way we usually do it in our In-Queue Flow when we need the current time is to use an Update Data action and store it in a task variable, for example:
Task.WaitEntryTime = GetCurrentDateTimeUtc()
Then use that stored value later in the comparison logic I gave becomes below
DateTimeDiff(GetCurrentDateTimeUtc(), Task.WaitEntryTime) >= MakeDuration(0, 0, 120, 0)
What each part does:
- GetCurrentDateTimeUtc() = gets the current UTC date/time
- Task.WaitEntryTime = the stored time from when the interaction entered that part of the flow
- DateTimeDiff(...) = calculates the elapsed time between now and the stored time
- MakeDuration(0, 0, 120, 0) = creates a duration of 120 minutes
(day, hour, minute, second) - >= = checks whether the elapsed time is greater than or equal to that threshold
I have not tried this solution myself for your exact callback scenario, but it may be worth testing.
If that still does not work, then another way is to use Trigger + Workflow (not tested) may be another direction to look at for a longer timeout scenario. From what I could see, there does not appear to be a dedicated callback-created trigger in the official trigger list, but you could try available conversation topics such as v2.detail.events.conversation.{id}.outbound, v2.detail.events.conversation.{id}.user.start or v2.detail.events.conversation.{id}.acd.end with the right conditions/filters. I would validate the payload fields/values in the trigger schema first to confirm whether the callback timeout case shows up there with the fields you need.
Links:
Hope this helps. Hopefully someone from the community who has implemented this exact pattern can add more detail.
------------------------------
Phaneendra
Technical Solutions Consultant
Original Message:
Sent: 04-07-2026 02:26
From: Rawat Radhika
Subject: Preferred Agent Callback Reassignment After Timeout
Hi Phaneendra,
Thank you very much for your response - I truly appreciate your support.
I attempted the method you suggested, but I am facing a few challenges. I also consulted Copilot, and although it initially indicated that the approach should be possible, I continued to receive errors while following the same steps. Ultimately, it stated that In-Queue Architect Flows do not support any DateTime functions, which seems to be the cause of the issue.
Since the expression you provided results in errors each time I try to use it, could you please advise if there is an alternative method to achieve this?
Thank you in advance for your guidance.
------------------------------
Rawat Radhika
Original Message:
Sent: 04-02-2026 09:23
From: Phaneendra Avatapalli
Subject: Preferred Agent Callback Reassignment After Timeout
Hi Rawat,
You could try the below in your In-Queue Flow, assuming you are storing the callback's queue entry time in something like Task.WaitEntryTime:
DateTimeDiff(GetCurrentDateTimeUtc(), Task.WaitEntryTime) >= MakeDuration(0, 0, ToInt(Task.maxQueueTime), 0)
Task.maxQueueTime could be your threshold value for example, 120 for 2 hours. Once this evaluates to true, you could then transfer the callback to the secondary queue.
Hope this helps.