Check availability before escalating to iAdvize
Introduction
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, ...).
Check availability
The RoutingRule
object contains an availability
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).
GraphQL example
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).
If your are logged in into your iAdvize account, you can click here to test the request
Request
Variables
Response (example)
Last updated