For quick calls to a running server, use
agenticai trigger instead. The call command is useful for standalone call execution without a persistent server.Usage
Options
Phone number to call in E.164 format (e.g.,
+15551234567)Short form: -tExample:Instructions or system prompt for the AI agent during the callShort form:
-pExample:Public webhook base URL for Twilio to connect to (from ngrok or Cloudflare tunnel)Short form:
-wExample:Path to configuration file (global option)Short form:
-cExample:How It Works
- Loads configuration from
config.yamland.env - Creates CallManager instance with your Twilio and AI credentials
- Initiates the call to the specified phone number
- Waits for completion - the command blocks until the call ends
- Cleans up the CallManager session automatically
agenticai trigger, this command doesn’t require a running server. It creates a temporary session just for this call.
Examples
Basic Call
Call with Custom Config
Call with Multi-line Prompt
Output
Use Cases
One-off Calls
Perfect for making single calls without running a persistent server
Testing
Test your prompts and configuration quickly during development
Scripted Calls
Integrate into shell scripts for automated calling workflows
Debug Sessions
Debug call behavior in isolation without service complexity
Difference from agenticai trigger
| Feature | agenticai call | agenticai trigger |
|---|---|---|
| Requires running server | ❌ No | ✅ Yes |
| Session management | Temporary, auto-cleanup | Uses server’s persistent CallManager |
| Waits for completion | ✅ Blocks until call ends | ❌ Returns immediately |
| Best for | Single calls, scripts, testing | Multiple calls, production, API usage |
Troubleshooting
Call fails to connect
Call fails to connect
- Verify Twilio credentials in
.envare correct - Ensure webhook URL is publicly accessible
- Check that your Twilio number has voice capabilities
- Test with
agenticai test-connectionfirst
Command hangs indefinitely
Command hangs indefinitely
- The command waits for the call to complete
- Press Ctrl+C to cancel and cleanup
- Check if the call connected in Twilio Console logs
Webhook URL not reachable
Webhook URL not reachable
- Ensure ngrok or Cloudflare tunnel is running:
agenticai tunnel start - Verify the URL is accessible:
curl https://your-url.ngrok.io/health - Make sure the URL doesn’t have a trailing slash
Related Commands
- agenticai trigger - Quick call to running server
- agenticai server - Start persistent webhook server
- agenticai status - Check system configuration
- Making Calls Guide - Complete calling workflows