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 select Connections. Click 'Create connection', choose 'Bearer token' as the authentication type, and enter 'zendeskchatapioauthtoken' as the connection name. Input your OAuth access token and 'rtm.zopim.com' as the allowed domain. Save the connection to complete the setup.
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 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…
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…
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…