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
------------------------------
Original Message:
Sent: 10-19-2023 10:49
From: Pol Buckingham
Subject: Play prompts in random order in an In-Queue Call Flow
Would you mind explaining this in more detail?
------------------------------
Pol Buckingham
f'real foods llc
Original Message:
Sent: 07-27-2023 09:16
From: Melissa Bailey
Subject: Play prompts in random order in an In-Queue Call Flow
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
Original Message:
Sent: 07-27-2023 02:56
From: Thomas Repking
Subject: Play prompts in random order in an In-Queue Call Flow
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
------------------------------