Genesys Cloud - Main

 View Only

Sign Up

  • 1.  Preferred Agent Callback Reassignment After Timeout

    Posted 21 days ago

    We are currently using a Data Action–based solution to create Preferred Agent Callbacks. This configuration ensures that when a callback is generated, it is routed exclusively to the customer's designated preferred agent. To achieve this, the callback is initially placed into the "Direct CM" queue, which contains only the preferred agents.
    Our requirement is as follows:
    If the callback remains unassigned or unanswered for 2 hours, we want the system to automatically reroute or overflow the same callback to a different queue, "Direct Claims", so that any available agent can handle it.
    At the moment, we are not seeing a way to automatically move or reassign the callback to the secondary queue after the 2‑hour threshold. We would like guidance from Genesys on the best practice or recommended approach to achieve this behavior-whether through configuration, a workflow/architect design, a Data Action, or any native callback management feature within Genesys Cloud.


    #ArchitectandDesign

    ------------------------------
    Rawat Radhika
    ------------------------------


  • 2.  RE: Preferred Agent Callback Reassignment After Timeout
    Best Answer

    Posted 21 days ago

    Hi Rawat,

    Just checking are you currently using an In-Queue Flow on the "Direct CM" queue for these callbacks?

    Since callbacks are treated as active interactions while waiting, an In-Queue Flow can be used to monitor how long they've been in queue and then trigger a transfer (e.g. after 2 hours) to your secondary queue.

    Keen to understand your current setup as well.



    ------------------------------
    Phaneendra
    Technical Solutions Consultant
    ------------------------------



  • 3.  RE: Preferred Agent Callback Reassignment After Timeout

    Posted 19 days ago

    Hi Phaneendra,

    Thanks for your response.

    Yes, we are currently using an In‑Queue Flow on the Direct CM queue. However, in our scenario, the callback request is created when the Case Manager is off‑queue/Offline. which means the callback cannot be immediately delivered to the preferred agent.
    Our requirement is to allow the callback to remain assigned to the preferred agent within the Direct CM queue initially, and then, if the callback is not answered within 2 hours, the interaction should automatically fail over to the Direct Claims queue for handling.
    I am aware that Genesys Cloud supports retaining the callback within the same queue when the preferred agent is unavailable. However, our use case differs-we need the callback to escalate or reroute to a different queue after a defined timeout period.

    Thanks



    ------------------------------
    Rawat Radhika
    ------------------------------



  • 4.  RE: Preferred Agent Callback Reassignment After Timeout

    Posted 18 days ago
    Edited by Phaneendra Avatapalli 18 days ago

    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.



  • 5.  RE: Preferred Agent Callback Reassignment After Timeout

    Posted 14 days ago

    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
    ------------------------------



  • 6.  RE: Preferred Agent Callback Reassignment After Timeout

    Posted 14 days ago
    Edited by Phaneendra Avatapalli 14 days ago

    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
    ------------------------------



  • 7.  RE: Preferred Agent Callback Reassignment After Timeout

    Posted 13 days ago

    Hi Rawat,

    Also sharing this older thread in case it helps, as it covers a very similar pattern - using an In-Queue Flow to move the interaction to another queue after the preferred-agent wait period. 

    https://community.genesys.com/discussion/how-can-we-transfer-the-call-from-preferred-routing-method-queue-to-another-queue-not-to-another-routing-method



    ------------------------------
    Phaneendra
    Technical Solutions Consultant
    ------------------------------