Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Play prompts in random order in an In-Queue Call Flow

    Posted 07-27-2023 02:57
    No replies, thread closed.
    Hi, I would like to make the customer experience in our queues a bit more varied and entertaining. To do this, I would produce a certain number of prompts with little stories and entertaining facts. These should ideally run in random order for variety. 
    Does anyone know how I can make a collection of prompts, then randomly select a prompt from that collection and then play the selected prompt in a play audio action in an In-Queue Call Flow?
     

    #ArchitectureandDesign

    ------------------------------
    Thomas Repking
    Canada Life Group Services Limited
    ------------------------------


  • 2.  RE: Play prompts in random order in an In-Queue Call Flow
    Best Answer

    Posted 07-27-2023 09:16
    No replies, thread closed.

    Let Flow.list be a collection of any data type.  To randomly select one of them use this expression

    Flow.list[RandomInt(Count(Flow.list)-1)]


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



  • 3.  RE: Play prompts in random order in an In-Queue Call Flow

    Posted 07-27-2023 10:25
    No replies, thread closed.

    works perfectly - thank you so much Melissa



    ------------------------------
    Thomas Repking
    Canada Life Group Services Limited
    ------------------------------



  • 4.  RE: Play prompts in random order in an In-Queue Call Flow

    Posted 10-19-2023 10:50
    No replies, thread closed.

    Would you mind explaining this in more detail? 



    ------------------------------
    Pol Buckingham
    f'real foods llc
    ------------------------------



  • 5.  RE: Play prompts in random order in an In-Queue Call Flow

    Posted 10-19-2023 10:57
    No replies, thread closed.

    RandomInt gets a random value between 0 & the the specified value (inclusive).  Remember lists are 0-indexed, so the items are index 0, index 1,  . . . the last item's index is the size of the list minus 1.  Count gets the size of the list.  [] gets an item from a list at the specified index.

    Architect has help for all of the functions it supports, explaining parameters, limits, and examples.  See https://help.mypurecloud.com/articles/architect-expression-help/ for how to access it.



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