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 API. This token is crucial for authenticating API calls that check agent availability. For guidance on creating this token, refer to the Chat API tutorial on generating an OAuth token.
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…
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…
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…