To branch a bot conversation based on agent availability, use the Branch by condition step in the bot builder. This step allows you to direct the conversation flow depending on whether agents are online.
Add a step in the Get agent availability step's API call successful branch. Choose 'Branch by condition' and configure it with the variable 'agents_online'. Set the condition to check if the value is not 0, indicating agents are online. You can then add steps under the 'Agents are online' and 'Else' branches to customize the conversation flow based on agent availability.
You can check agent availability during a bot conversation by using the bot builder's Make API call and Branch by condition steps. This allows you to branch an existing bot answer based on the number of online agents at the time of the…
Before setting up agent availability checks, ensure you have a Zendesk account with a published messaging bot. You can use a sandbox environment for testing before going live. Additionally, you'll need an OAuth access token for the Zendesk Chat…
To create an API connection for checking agent availability, you'll need to store your OAuth access token for the Chat API. This connection allows your bot to authenticate API calls. In the Admin Center, navigate to Apps and integrations, then…
To retrieve agent availability, add a Make API call step to an existing answer in your conversation bot. This step fetches the current count of online agents from the Real Time Chat API's Get Agent Status Count endpoint. In the bot builder, select…
After updating your bot to check for agent availability, it's important to test the changes to ensure everything works as expected. You can do this by using one of the bot's training phrases in a conversation. Engage with the updated bot in a test…