In case of outage/emergency, we route all our calls to an emergency flow and there, after playing a prompt, we create callback on a separate emergency queue.
Whenever an agents becomes available in that emergency queue, he/she gets the preview of the callback and the process goes on....
if the customer called more than once during that emergency/outage hours then a callback is created every time he/she has called. This creates duplicate or redundant callbacks in the queue.
Is there any way to make sure duplicate or multiple callbacks are not created in the first place?
Before offering the callback, you could use a PureCloud data action to query the queue to see if there's already a callback for the caller's phone number.
I used the api/v2/analytics/conversations/details/query endpoint with this body. You will need to insert the correct queueId, caller's ani, and modify the interval for the current date.