Overview
Theai_assistant_start command lets you attach a pre-configured AI assistant to an active call. The assistant takes over the conversation, handles speech recognition, and responds using a voice of your choice — no additional infrastructure required.
This is different from Gather using AI, which is purpose-built for collecting structured data. ai_assistant_start is for open-ended, conversational AI experiences.
Prerequisites
- A Telnyx account with an active call in progress. Follow the Voice API getting started guide if you haven’t set that up.
- An AI assistant. You can create one:
- No-code via the Portal: AI Assistants guide
- Via the API: Create an assistant
id (format: assistant-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
Start an AI Assistant on a Call
Send aPOST request to ai_assistant_start with the call_control_id of the active call:
Webhooks
Once started, the assistant emits the following webhooks:| Event | Description |
|---|---|
call.conversation.ended | The AI conversation has ended |
call.conversation_insights.generated | Conversation summary and insights are available |
Stop the Assistant
To stop the assistant and return control to your application:Next Steps
- Explore the full AI Assistant API reference
- Configure your assistant in the Portal
- Collect structured data mid-call with Gather using AI