This has been discussed before (well, a similar requirement anyway!) and the answer depends on how strictly you want to adhere to "every 5th call" as well as your call volume.
If you just need "20% of calls" then either use a random number, or base it on call arrival time (say if the last digit of seconds is 0 or 5). This will (should) result in 20% (or 1 in 5) overall.
If you need it to be exactly every 5th, then if you have a (relatively) low call volume, you could keep a counter in a data table and query it and then set it using a Data Action. The problem with this is if you have a high (ish) volume, you can run into Race conditions. In that case, I would create an external web service that simply returns a Boolean (True on every 5th call, False otherwise) the create a Data Action which you can call from your Flow.
HTH
------------------------------
Paul Simpson
Views expressed are my own and do not necessarily reflect those of my employer.
------------------------------
Original Message:
Sent: 01-15-2024 05:42
From: Thomas Repking
Subject: Decision to offer something to for example every 5th caller
Hi, I would like to make a decision on the basis that every 5th caller who enters a queue is offered something. How can I do this?
#ArchitectureandDesign
------------------------------
Thomas Repking
Canada Life Group Services Limited
------------------------------