Troubleshooting Guide
Quick solutions to the most common issues you might encounter while integrating with Plati AI.Quick Debug Tip: Always check with your Plati AI team first - they can help identify what went wrong.
Authentication Issues
401 Unauthorized - Invalid API Key
401 Unauthorized - Invalid API Key
403 Forbidden - Insufficient Permissions
403 Forbidden - Insufficient Permissions
Error Message:
{"message": "User does not have access to workspace"}Cause: Your API key has read-only permissions but you’re trying to create/modify resources.Solution: Create a new API key with read-write permissions.Assistant Creation Issues
422 Validation Error - Invalid Language Format
422 Validation Error - Invalid Language Format
Error Message:Common Mistakes:Valid Language Codes:
en(English)pt(Portuguese)es(Spanish)en-US(US English)pt-BR(Brazilian Portuguese)es-ES(Spain Spanish)
404 Worker Not Found
404 Worker Not Found
Error Message:
{"message": "Worker not found"}Causes:- Worker ID is incorrect
- Worker belongs to different workspace
- Worker was deleted
WhatsApp Integration Issues
Webhook Not Receiving Messages
Webhook Not Receiving Messages
Symptoms:Common Solutions:
- Messages sent to WhatsApp number but no webhook calls
- Verification works but no message events
1
Check Webhook Configuration
In WhatsApp Business Manager:
- Callback URL matches exactly what Plati AI provided
- Verify token matches exactly (case-sensitive)
- Subscribed to
messagesfield
2
Test Webhook URL
3
Check SSL Certificate
WhatsApp requires valid SSL. Test at: https://www.ssllabs.com/ssltest/
4
Verify Business Account
- WhatsApp Business Account is verified
- Phone number is active and verified
- No restrictions on the account
- Use ngrok for local development:
ngrok http 3000 - Ensure webhook URL uses HTTPS (required by WhatsApp)
- Check firewall settings blocking WhatsApp IPs
Template Messages Failing
Template Messages Failing
Error Message: Debug Template Status:
{"error": "Template not found or not approved"}Common Issues:Template Status
Templates need 24-48 hours for WhatsApp approval
Exact Name Match
Template name must match exactly (case-sensitive)
Component Mismatch
Components must match approved template structure
Language Code
Use correct language codes (en_US, pt_BR, etc.)
Rate Limiting Issues
Rate Limiting Issues
Error Message:
{"error": "Rate limit exceeded"}WhatsApp Rate Limits:- 1,000 messages per second per phone number
- 24-hour message window for business-initiated messages
- Template message limits based on phone number tier
- Implement exponential backoff in your code
- Queue messages and send at appropriate intervals
- Request higher tier status from WhatsApp
- Use conversation-based messaging instead of templates when possible
Conversation Flow Issues
Assistant Not Responding
Assistant Not Responding
Symptoms:
- Messages received but no AI response
- Partial responses or errors in logs
1
Check Assistant Configuration
2
Verify Channel Connection
3
Check Conversation Logs
Contact your Plati AI team and check:
- Are messages being received?
- Any error messages in the logs?
- Assistant response attempts?
Context Not Maintained
Context Not Maintained
Symptoms:
- Assistant doesn’t remember previous messages
- Conversations seem to start fresh each time
Identity Issues
Problem: Different identity for each message
Solution: Use consistent phone/email to identify users
Memory Settings
Problem: Memory disabled or limited
Solution: Check memory configuration in assistant settings
Session Timeout
Problem: Long gaps between messages
Solution: Adjust session timeout settings
Channel Switching
Problem: User switching between channels
Solution: Ensure identity linking across channels
Performance Issues
Slow Response Times
Slow Response Times
Causes:
- Large conversation history
- Complex instructions
- Model provider latency
- Network issues
1
Optimize Instructions
2
Adjust Model Settings
3
Monitor Performance
Contact your Plati AI team to check response times.
High API Usage
High API Usage
Symptoms:
- Unexpected API costs
- Rate limits being hit
- Too many requests
- Polling instead of using webhooks
- Redundant API calls
- Not caching responses
- Inefficient conversation flows
Common Error Codes
Cause: Invalid request format or missing required fields
Solution: Check request body against API documentation
Cause: Missing or invalid API key
Solution: Check authorization header format
Cause: Insufficient permissions
Solution: Use API key with appropriate permissions
Cause: Resource doesn’t exist or wrong endpoint
Solution: Verify resource IDs and endpoint URLs
Cause: Request body fails validation
Solution: Check the
details array in response for specific validation errorsCause: Too many requests
Solution: Implement exponential backoff and respect rate limits
Cause: Server-side issue
Solution: Check status page and contact support if persistent
Getting Help
Check System Status
See if there are any ongoing issues or maintenance
Contact Support
Get help from our technical support team
LinkedIn Community
Connect with Plati AI team and updates
Debug Checklist
Before reaching out for help, please check:1
Basic Connectivity
- API key is valid and has correct permissions
- Endpoints are reachable
- Request format matches documentation
2
Resource Configuration
- Worker/Assistant is properly configured
- Channels are connected and active
- Identities are correctly linked
3
Integration-Specific
- WhatsApp webhook is configured correctly
- Templates are approved (if using WhatsApp)
- SSL certificates are valid
4
Logs and Monitoring
- Check dashboard logs for errors
- Verify conversation flow in dashboard
- Monitor response times and success rates
