Troubleshooting Voice Bots
Ensure the proper functioning of voice bots by identifying and resolving common issues such as connectivity problems, voice recognition errors, and response issues.
note
Prerequisites
- Familiarity with voice bot tables and logs (e.g., callbackstatus_details, call_details_report, api_logs, CDR, notifications report).
- Ability to interpret SSML (Speech Synthesis Markup Language) using tools like MS TTS Studio or https://xmlgrid.net/.
- Access to customer API logs.
Initial Assessment
- Reproduce the issue: Try to recreate the reported issue.
- Document the steps taken to replicate the problem.
- Collect screenshots or recordings if possible.
- Analyze affected records: Review recordings, chat transcripts, and logs.
- Check primary bot tables: Review
callbackstatus_details, call_details_report, api_logs
. - Data Explorer tables: Check call details reports (CDR), notifications reports, and analytics.
- Validate SSML: Ensure Speech Synthesis Markup Language (SSML) is valid using tools like MS TTS Studio.
- Patch or upgrade: Check for recent updates or patches to the voice bot system.
- Debug logs: Use the customer’s phone number to analyze production logs and API logs.
- Node verification: Ensure prompt/question nodes are not empty (except in Inbound Hangup cases).
- Documentation: Note down affected SIDs and key observations.
Connectivity Issues
Symptoms
- The bot does not play the welcome prompt.
- API calls fail to reach the server.
Steps to Troubleshoot
- Check platform and voice server connectivity.
- Verify that the client API endpoint is accessible.
- Review network logs for disconnections or timeouts.
Solutions
- Ensure strong connectivity between the voice server and platform.
- Check for API endpoint changes (e.g., URL or request/response structure).
Voice Recognition Errors
Symptoms
- The bot misunderstands user input.
- Low accuracy in recognizing voice commands.
Steps to Troubleshoot
- Review call recordings in the callbackstatus_details table.
- Analyze recent voice logs for recognition issues.
- Ensure correct language settings and codes are in place.
Solutions
- Repeat unclear prompts.
- Update the bot’s training data by refining intents and entities.
Response Issues
Symptoms
Delayed or no response from the bot.
Steps to Troubleshoot
- Check server load and the bot’s attached numbers.
- Test the response time of the client API.
Solutions
- Optimize server performance by adjusting the number of channels.
- Ask the client to check for API issues using logs from the api_response table.
Engage Flows – Calls, WA, and SMS Triggers
Symptoms
Users did not receive a call, WhatsApp, or SMS notification.
Steps to Troubleshoot
- Analyze the target Engage flow analytics (use flow ID from the URL: e.g., https://cloud.yellow.ai/bot/botID/engagement/flows/661cbd4c8c383c6621230a41/analytics).
- Check the Notifications report for issues with CampaignID.
Solutions
- Check for telephony-level traffic congestion.
- Raise WA/SMS issues through a support ticket with the engage team.
Error HTTP Codes and Messages
Error | Description | Solution |
---|---|---|
4xx Client Errors | Request contains bad syntax or cannot be fulfilled | |
5xx Server Errors | Server encountered an error and failed to fulfill the request | |
500 Status Code | Server failure | Verify the Client API/Bot API and confirm that the endpoint is correct. For Bot API issues, provide bot ID, failure duration, and logs to the support team in a ticket. |
Log Analysis
Access Logs:
- Navigate to Analysis → Conversational Logs or access the relevant database for details on
drop_steps
anddispositions
. - Use log analysis tools to filter and search for specific log entries based on sender ID or profile ID.
- Navigate to Analysis → Conversational Logs or access the relevant database for details on
Common Log Entries
Type | Description |
---|---|
API Call Logs | - Provide detailed information on API requests and responses stored in the database. - Useful for diagnosing API related issues (e.g., request failures or incorrect responses). |
Voice Interaction Logs | - Track user interactions and bot responses, offering insights into the flow of conversation. - These logs are found in Data Explorer or custom tables such as callbackstatus_details . |
- Steps to Analyze Logs:
- Locate Errors or Patterns: Look for error messages or unusual patterns in the logs, such as failed API calls or timeouts.
- Cross-Reference Logs with Issues: Compare logs with the specific issues reported by the user to identify potential correlations or causes.
Detailed steps to access logs from Analyse module
- Navigate to Analysis → Conversational Logs. Search for the logs using the customer’s phone number.
- In the chat transcript displayed on the left, locate the message where the issue occurred. Click the Logs icon (debugger) next to the relevant message. Review the logs for any error messages indicating problems at that step.
- Check the callbackstatus event data for any instances where
bot_failed = true
orbot_failover = true
. This helps identify where the bot encountered failures or fallbacks.
- Review the function logs at the step where the issue occurred. If a failure is detected, the function log will show error details such as:
[
{
"log": {
"data": "{\"tag\":\"Error while executing the function\",\"extraInfo\":{\"message\":\"Cannot read property 'length' of undefined\"}}",
"level": "error"
}
}
]
This type of error usually points to a specific issue, such as a missing or undefined property, which can guide further troubleshooting. By following the above steps, you can isolate specific log entries and errors that contribute to the problem, allowing for targeted resolution.
Frequently Asked Questions (FAQ)
- What should I do if the bot is not responding?
Place a call and check the bot logs in the analysis tab and review logs for any errors.
- How can I improve voice recognition accuracy?
Update utterances in the bot's intents and entities regularly.