/twiml
webhook, passing along the parameters you provide here as metadata. This allows the system to route the call to the correct assistant and begin the conversation.
Request Body
The request body is a JSON object specifying the details of the outbound call.assistant_id
(integer, required): The ID of the assistant that should make the call.to_phone_number
(string, required): The destination phone number to call, in E.164 format.welcome_message
(string, optional): A custom welcome message for the assistant to say at the beginning of the call. If not provided, the assistant’s default greeting will be used.agenda
(string, optional): A specific topic or goal for the call. This can be used to guide the assistant’s conversation.
Request
Response
A successful request will return a200 OK
status with a JSON object containing the call_sid
from Twilio, confirming that the call has been initiated.
Response
Body
application/json