Genesys Cloud - Main

 View Only

Discussion Thread View
Expand all | Collapse all

Decisions Using EWT in Architect

  • 1.  Decisions Using EWT in Architect

    Posted 03-23-2023 13:28

    Hi all,

    Our agency wants our in-queue flow to take a certain action if the estimated wait time is over an hour.   I'm using the Get Estimated Wait Time data action but every time it gets to that point in the flow, it hits an error and disconnects.   Below is how I have the action set up.  Any ideas would be helpful!


    #ArchitectureandDesign
    #Integrations
    #Routing(ACD/IVR)

    ------------------------------
    Nichole Conway
    State of Missouri - Family Support Division
    ------------------------------


  • 2.  RE: Decisions Using EWT in Architect

    GENESYS
    Posted 03-23-2023 13:38

    Change the QUEUE_ID field from literal to expression.  Right now you are sending the letters C, a, l, etc which is not an id.  Also is there a reason why you aren't using the built in function GetQueueEstimatedWaitTime instead of a call data action?



    ------------------------------
    Melissa Bailey
    Genesys - Employees
    ------------------------------



  • 3.  RE: Decisions Using EWT in Architect

    Posted 03-23-2023 13:46

    I changed from a literal to an expression but it's still hitting an error and disconnecting.  How do I use a built-in function?



    ------------------------------
    Nichole Conway
    State of Missouri - Family Support Division
    ------------------------------



  • 4.  RE: Decisions Using EWT in Architect

    GENESYS
    Posted 03-23-2023 13:59

    "voice" is not a valid value for the MEDIA_TYPE.

    How to open expression help: https://help.mypurecloud.com/articles/access-architect-expression-help/

    This would be the expression you want GetQueueEstimatedWaitTime(Call.CurrentQueue, "call")



    ------------------------------
    Melissa Bailey
    Genesys - Employees
    ------------------------------



  • 5.  RE: Decisions Using EWT in Architect

    Posted 03-23-2023 14:04

    Thank you!



    ------------------------------
    Nichole Conway
    State of Missouri - Family Support Division
    ------------------------------



  • 6.  RE: Decisions Using EWT in Architect

    Posted 03-23-2023 14:11

    One more question, what if we wanted to do something based on longest wait instead of the estimate wait?  I don't see a function for that type of wait in the function builder. 



    ------------------------------
    Nichole Conway
    State of Missouri - Family Support Division
    ------------------------------



  • 7.  RE: Decisions Using EWT in Architect

    GENESYS
    Posted 03-23-2023 14:15

    We don't have a function for that.  By longest wait, you mean you want to do something with the caller who is last in the queue?



    ------------------------------
    Melissa Bailey
    Genesys - Employees
    ------------------------------



  • 8.  RE: Decisions Using EWT in Architect

    Posted 03-23-2023 14:18

    Yes, but only if they've waited X amount of minutes. 



    ------------------------------
    Nichole Conway
    State of Missouri - Family Support Division
    ------------------------------



  • 9.  RE: Decisions Using EWT in Architect

    GENESYS
    Posted 03-23-2023 14:25

    https://community.genesys.com/discussion/queue-id-for-in-queue-flow-used-by-multiple-queues#bm660cb814-b3b8-4ec3-b5d6-0186f0b131ae explains why it's not possible for a flow to know if a caller is the last one.



    ------------------------------
    Melissa Bailey
    Genesys - Employees
    ------------------------------



  • 10.  RE: Decisions Using EWT in Architect

    Posted 03-24-2023 12:05

    Most of the responses here are valid for inbound call flows, but if you are needing to make decisions within an inqueue call flow, then all you need to is to reference the built in Call.EstimatedWaitTime.  No need for a data action at all.

    Try it out by doing something like this.  Not pictured here, but I also output this data as an external tag, but also to participant data.  There are no inbuilt reports or tools to use to check for EWT accuracy trends, so we put it there then extract it via PowerBI to plot actual vs. estimated.  Last year, before the improvements it was pretty far off for us a lot of the time.  Its sweet spot was sub 5-minute wait times with volume.  It is much better now, but I would do sanity check on it as it may not be very accurate during certain intervals.



    ------------------------------
    Ryan Cheesman
    Senior Manager, IT Integration Services
    Tandem Diabetes Care Inc. | positively different
    ------------------------------



  • 11.  RE: Decisions Using EWT in Architect

    Posted 03-25-2023 12:23

    There are some quirks on Call.EstimatedWaitTime which makes it bad to use.

    If no agent is logged into the queue it doesn't get set and can actually cause the flow to fail is used in a Decision containing for example

    Call.EstimatedWaitTime > MakeDuration(0,0,3,0)

    GetQueueEstimatedWaitTime(Call.CurrentQueue, "call") works in these scenarios.



    ------------------------------
    Jan Heinonen
    Contact Center Specialist
    GlobalConnect AB
    ------------------------------



  • 12.  RE: Decisions Using EWT in Architect

    GENESYS
    Posted 03-27-2023 09:32

    You can do a not set check in the first expression.  Use true or false depending on what default behavior you want when the EWT couldn't be found.

    If(IsSet(Call.EstimatedWaitTime), Call.EstimatedWaitTime > MakeDuration(0,0,3,0), true)



    ------------------------------
    Melissa Bailey
    Genesys - Employees
    ------------------------------



  • 13.  RE: Decisions Using EWT in Architect

    Posted 03-27-2023 10:13

    Thanks, that does work.

    It becomes a lot of IFs for one variable, but guess that's the only way to do it to avoid unexpected behavior.



    ------------------------------
    Jan Heinonen
    Contact Center Specialist
    GlobalConnect AB
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources