Check availability before escalating to iAdvize
Last updated
Was this helpful?
Last updated
Was this helpful?
The purpose of this guide is to explain how you can ensure that there is availability behind an iAdvize distribution rule.
A distribution rule is what defines the strategy for distributing conversations to bots or operators based, for instance, on their availability.
This can be useful, for example, when you want to transfer your visitors to iAdvize from a solution / technology external to iAdvize (IVR, third-party chat tool, form, ...).
The object contains an property which lets you know the availability of a specific RoutingRule
at the precise moment you execute the request.
You can check availability for different channels (chat, call, video and thirdParties).
The following GraphQL query finds out the availability on the chat channel of the rule YOUR_ROUTING_RULE_ID
(replace with your own rule UUID for which you want to check availability).
It returns a Boolean indicating whether or not there is availability for each channel you've consulted (here, only the Chat channel).