Call Issues
Call not connecting
Call not connecting
Symptoms: Outbound calls fail to connect or incoming calls aren’t answered.Solutions:
-
Verify Twilio credentials:
Ensure
TWILIO_ACCOUNT_SID,TWILIO_AUTH_TOKEN, andTWILIO_PHONE_NUMBERare correctly set. -
Confirm Twilio phone number is voice-enabled:
- Go to Twilio Console → Phone Numbers
- Verify your number has “Voice” capability
-
Check webhook URL configuration:
The webhook must be publicly accessible for Twilio to reach it.
-
Verify ngrok/tunnel is running:
For incoming calls, ensure your Twilio number webhook is set to
https://your-url.ngrok.io/twilio/voiceNo audio or AI not speaking
No audio or AI not speaking
Symptoms: Call connects but no audio is heard, or AI doesn’t respond.Solutions:
-
Verify OpenAI Realtime API access:
Ensure your OpenAI account has access to the Realtime API.
-
Confirm model configuration:
Check
config.yamlfor correct model name: -
Check for WebSocket errors:
-
Verify audio format compatibility:
The service uses mulaw 8kHz audio. Check logs at
/tmp/agenticai/agenticai.logfor audio conversion errors.
Call drops or disconnects unexpectedly
Call drops or disconnects unexpectedly
Symptoms: Calls start successfully but disconnect after a few seconds or minutes.Solutions:
-
Check server stability:
Ensure the service is running and not crashing.
-
Review error logs:
Look for exceptions or connection errors.
-
Verify WebSocket connection stability:
Check for timeout or connection reset errors in logs:
- Increase timeout values: If you’re experiencing timeouts, the WebSocket may be closing due to inactivity. Check your tunnel provider’s timeout settings.
Free ngrok tunnels have session limits. Consider using a paid plan or Cloudflare tunnels for production
Configuration Issues
Environment variables not loaded
Environment variables not loaded
Symptoms: Error messages about missing credentials or “Configuration file not found”.Solutions:
-
Verify .env file exists:
If missing, copy from template:
-
Check file location:
The
.envfile must be in the project root directory where you runagenticaicommands. -
Validate environment variable format:
-
Source environment variables:
Invalid API keys or authentication errors
Invalid API keys or authentication errors
Symptoms: “Authentication failed”, “Invalid API key”, or “Unauthorized” errors.Solutions:
-
Test each API key individually:
Twilio:
OpenAI:Gemini:
-
Regenerate API keys:
- Twilio: console.twilio.com
- OpenAI: platform.openai.com/api-keys
- Gemini: aistudio.google.com/apikey
-
Check for hidden characters:
Port already in use
Port already in use
Symptoms: “Address already in use” error when starting the server.Solutions:
-
Check what’s using the port:
-
Kill the process:
-
Use a different port:
Or update
config.yaml: -
Stop existing service:
Integration Issues
ClawdBot not responding
ClawdBot not responding
Symptoms: AI acknowledges commands but ClawdBot doesn’t execute them.Solutions:
-
Verify OpenClaw Gateway is running:
-
Ensure ClawdBot agent is started:
-
Check gateway URL in config:
-
Test gateway connection:
- Verify ClawdBot skills are configured: Check that the specific skills (YouTube, Spotify, Email) are properly configured in ClawdBot.
Gateway integration is optional. Comment out gateway client initialization in call_manager.py:92-99 if not using ClawdBot
Telegram messages not sending
Telegram messages not sending
Symptoms: Call transcripts and commands aren’t appearing in Telegram.Solutions:
-
Verify bot token and chat ID:
-
Test bot API access:
-
Get your correct chat ID:
- Message your bot on Telegram
- Visit:
https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates - Find
"chat":{"id":123456789}
-
Enable Telegram in config:
-
Check for message sending errors:
Service Management Issues
Service won't start or keeps crashing
Service won't start or keeps crashing
Symptoms: Service fails to start or restarts repeatedly.Solutions:
-
Check service status:
-
Review crash logs:
-
Verify all dependencies are installed:
-
Check Python version:
-
Test server manually:
-
Reinstall the service:
Tunnel connection issues
Tunnel connection issues
Symptoms: ngrok or Cloudflare tunnel fails to connect or URL changes.Solutions:
-
For ngrok:
-
For Cloudflare tunnels:
-
Use a permanent tunnel URL:
- ngrok: Upgrade to paid plan for fixed domains
- Cloudflare: Create named tunnel:
cloudflared tunnel create agenticai
-
Update service with new URL:
-
Set environment variable:
Getting Help
If you’re still experiencing issues:- Check service logs:
agenticai service logs -f - Run diagnostics:
agenticai test-connection - Review recent errors:
tail -n 100 /tmp/agenticai/agenticai-error.log - Report issues: GitHub Issues
Include relevant log excerpts and your configuration (with sensitive data removed) when reporting issues