make_call
Initiate phone calls through an AI assistant by providing an assistant ID and phone number to connect users with voice-based AI interactions.
Instructions
Make a phone call through assistant
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assistant_id | Yes | Assistant ID | |
| phone_number | Yes | Phone number to call | |
| contact_id | No | Contact ID (optional) |
Implementation Reference
- index.js:656-666 (handler)Handler logic for the 'make_call' tool within the executeTool method's switch statement. It constructs a POST request to the /twilio/{assistant_id}/call endpoint with the phone_number and optionally contact_id.case 'make_call': url = `${this.baseUrl}/twilio/${args.assistant_id}/call`; method = 'POST'; body = { phonenumber: args.phone_number }; if (args.contact_id) { body.contact_id = args.contact_id; body.customData = { phonenumber: args.phone_number }; } break;
- index.js:396-408 (schema)Schema definition and registration of the 'make_call' tool in the ListToolsRequestSchema response, including input schema with required assistant_id and phone_number.{ name: 'make_call', description: 'Make a phone call through assistant', inputSchema: { type: 'object', properties: { assistant_id: { type: 'string', description: 'Assistant ID' }, phone_number: { type: 'string', description: 'Phone number to call' }, contact_id: { type: 'string', description: 'Contact ID (optional)' } }, required: ['assistant_id', 'phone_number'] } },