The server must be running first (
agenticai server or agenticai service start)Usage
Options
Phone number to call in E.164 formatShort form:
-tRequired: YesFormat: Must include country code, e.g., +15551234567Example:Custom prompt/instructions for the AIShort form:
-pDefault: Uses gemini.system_instruction from config.yaml, or falls back to "You are a helpful AI assistant making a phone call."Example:Public webhook base URL for Twilio callbacksShort form:
-wDefault: Loaded from NGROK_URL environment variableRequired if: NGROK_URL environment variable is not setExample:URL of the running Agentic AI serverShort form:
-sDefault: http://localhost:8080Example:How It Works
- Checks if the server is running (via
/healthendpoint) - Sends a POST request to
/api/callwith call parameters - Server initiates the call via Twilio
- Returns immediately with the call ID
Examples
Basic Usage
WithNGROK_URL environment variable set:
Custom Prompt
Provide specific instructions for this call:Explicit Webhook URL
Don’t use environment variable:Custom Server Port
If server is running on a different port:Workflow
Development
Production
Error Handling
Server Not Running
Error:Missing Webhook URL
Error:Invalid Phone Number
Error:API Request Format
The trigger command sends:Difference from agenticai call
| Feature | trigger | call |
|---|---|---|
| Server required | Yes, must be running | No, starts temporary session |
| Speed | Fast (uses existing server) | Slower (initializes components) |
| Use case | Development, testing, production | One-off calls, scripts |
| Logs | Server logs | Console output |
| Waits for completion | No (async) | Yes (blocks) |
trigger for most scenarios. Use call only for standalone scripts.
See Also
- Server Command - Start the webhook server
- Bot Command - Interactive OpenClaw terminal
- Call Command - Direct call (no server)
- Status Command - Check if server is running