翻篇收录说明
翻篇网页快照

Voice Assistant Quickstart - Telnyx

https://developers.telnyx.com/docs/inference/ai-assistants/no-code-voice-assistant

最近抓取:2026-12-05 02:49:25(北京时间)

最近内容变化:2026-12-02 14:17:45(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Build a voice AI assistant in the Telnyx portal without writing code. Pick a model and voice, attach a phone number, and start taking inbound calls.

正文摘录

In this tutorial, you’ll learn how to configure a voice assistant with Telnyx. You won’t have to write a single line of code or create an account with anyone besides Telnyx. You’ll be able to talk to your assistant over the phone in under five minutes. After this tutorial covers the basics, we will explore some optional enhancements, such as changing your voice or language model providers and empowering your assistant with built-in tools. Try out the public demos for a real example of the finished product. AI Assistants — the managed, configuration-first voice-agent product documented here — are generally available (GA). They are distinct from the Agent SDK, a separate product for building agents directly in code. If you already have assistants on Vapi, Retell, or ElevenLabs, you can bring them to Telnyx in one step with Importing Assistants. Video Tutorial Watch this step-by-step demonstration of creating a voice assistant: Requirements There are 2 required steps for this tutorial Configure your AI Assistant Configure the voice settings Configure your AI Assistant First, navigate to the AI Assistants tab in the portal. You will create a new assistant to configure what context your assistant has and how it behaves. For this tutorial, we will use a blank template. You can use the following instructions and greeting, or use your own. Instructions: You are an intelligent and concise voice assistant. This is a {{telnyx_conversation_channel}} happening on {{telnyx_current_time}}. The agent is at {{telnyx_agent_target}} and the user is at {{telnyx_end_user_target}}. Greeting: Hi {{first_name}}, this is Nyx, your friendly Telnyx Assistant! How can I help you today? Telnyx provides these system variables to inject details about a specific call into the instructions and greeting: VariableDescriptionExample{{telnyx_current_time}}The current date and time in UTCMonday, February 24 2025 04:04:15 PM UTC{{telnyx_conversation_channel}}This can be phone_call , web_call, or sms_chatphone_call{{telnyx_agent_target}}The phone number, SIP URI, or other identifier associated with the agent.+13128675309{{telnyx_end_user_target}}The phone number, SIP URI, or other identifier associated with the end user+13128675309{{telnyx_sip_header_user_to_user}}The User to User SIP header for the call, if applicablecmlkPTM0Nzg1O3A9dQ==;encoding=base64;purpose=call{{telnyx_sip_header_diversion}}The Diversion SIP header for the call, if applicable<sip:[email protected]>;reason=user-busy{{call_control_id}}The call control ID for the call, if applicablev3:u5OAKGEPT3Dx8SZSSDRWEMdNH2OripQhO Telnyx also supports timezone-aware date/time variants (e.g. {{telnyx_current_time_America/New_York}}), shorthands ({{telnyx_current_date}}, {{telnyx_current_weekday}}), and a custom date format filter. See dynamic variables for the full list. You can also define your own custom dynamic variables and set them via webhook, custom SIP headers, or an outbound API call. In this example, you’ve given the assistant access to the most commonly used system variables and a custom {{first_name}} variable in the greeting. Notice that by default, the Hangup tool is configured. This enables your assistant to end the call at an appropriate time. Configure the voice settings In this step, you can use the default voice settings, click Create, and enable the agent for calls when prompted. Or feel free to explore the wide range of voices in the playground. TTS (Text-to-Speech): Telnyx, AWS, Azure, ElevenLabs, Inworld STT (Speech-to-Text): Telnyx (whisper), Deepgram, Azure — see Transcription Settings for model details and configuration Browse the list of available voices and configuration options on the Text-to-Speech Available Voices page. For a voice that’s unique to your brand instead of a stock one, use the Voice Design Lab to design a custom voice from a natural language prompt or clone one from a short audio sample. Assistants can speak with any voice you design or clone — see Using Custom Voices. Ultra and xAI Grok voices support Expressive Mode with inline SSML emotion tags and nonverbal cues like [laughter]. Background Audio You can also configure background audio to play during the call. This provides a more realistic noise environment for voice calls, making longer pauses from tool calls feel more natural. Customers can select from our list of predefined options or share their own custom public URL. Sound While Using Tools You can play a sound, such as keyboard typing, while the assistant runs a tool like a webhook or MCP tool. It replaces the background audio until the tool responds, so callers know the assistant is working. Set it with voice_settings.tool_call_audio in the assistant API; leave it empty to play no sound. Speaking Plan Customers are in full control of when an agent starts talking and can distinguish between 4 types of pauses: Wait seconds sets your baseline. A customer service agent might use 0.3 seconds for snappy responses. An agent calling into an IVR system needs 1.5 seconds to account for slower robotic speech. On punctuation seconds handles high-confidence endpoints. When the transcription ends with a period or question mark, the user likely finished their thought. Set this to 0.1 seconds for minimal delay. On no punctuation seconds handles uncertainty. The user said “my order number is” and paused. They’re probably looking at their screen. Set this to 1.5 seconds so the agent doesn’t interrupt with “I didn’t catch that” while they’re reading the digits. On number seconds handles digit sequences specifically. People read numbers slowly: “4… 7… 2… 9.” Each pause could trigger a response. Extending this to 1.0 seconds prevents the agent from cutting them off at “4… 7…” Noise Suppression Enable noise suppression to reduce background noise during calls. This is especially valuable for AI assistants — cleaner audio improves STT accuracy and leads to better AI responses. Three engines are available through the assistant’s telephony_settings: EngineDescriptionAiCousticsSTT-optimized noise suppression, tuned to maximize speech recognition accuracy in real-world conditions (recommended for AI assistants)KrispIndustry-leading noise suppression, effective across diverse environments (home offices, contact centers, outdoor)DeepFilterNetConfigurable attenuation for fine-grained control AiCoustics is configured per-assistant: set noise_suppression to "aicoustics" and tune it through noise_suppression_config: curl -X POST https://api.telnyx.com/v2/ai/assistants/{assistant_id} \ -H "Authorization: Bearer ***" \ -H "Content-Type: application/json" \ -d '{ "telephony_settings": { "noise_suppression": "aicoustics", "noise_suppression_config": { "family": "quail", "size": "vf", "enhancement_level": 0.8 } } }' ParameterValuesDescriptionfamilyquailAiCoustics model family optimized for Voice AI and STTsizevf | vf_2_0_lvf tracks the latest model release; vf_2_0_l is pinned to version 2.0enhancement_level0–1 (default 0.8)Enhancement intensity voice_gain is not part of the per-assistant noise_suppression_config; it is only available per call via the Call Control API suppression_start action with noise_suppression_engine: "AiCoustics". See the Noise Suppression guide for the full per-call engine list and configuration. To enable via the Mission Control Portal, select the noise suppression engine under the voice settings when creating or editing your assistant. To enable via the API, set noise_suppression in telephony_settings: curl -X POST https://api.telnyx.com/v2/ai/assistants/{assistant_id} \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "telephony_settings": { "noise_suppression": "krisp" } }' Set to "disabled" to turn off noise suppression. See the Noise Suppression guide for more details on engines and direction options. Receiving DTMF tones AI Assistants can receive DTMF (Dual-Tone Multi-Frequency) tones from callers by default. This allows users to interact with your assistant using their phone keypad — for example, pressing digits in response to a menu prompt or entering a PIN. No configuration is needed to enable inbound DTMF. If you need to disable it for a specific use case (for example, if a pay tool is configured on the assistant), set disable_dtmf to true in the assistant’s telephony_settings: curl -X POST https://api.telnyx.com/v2/ai/assistants/{assistant_id} \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "telephony_settings": { "disable_dtmf": true } }' When DTMF is received, the tones are transcribed and passed to the assistant as part of the conversation, so the assistant can respond to keypad input naturally. (Optional) Assign a phone number If you have already purchased a Telnyx number with voice features, you can immediately assign it to your assistant. You can also click Next, as completing this step is not needed for testing your assistant. (Optional) Enable messaging Telnyx assistants work with messaging as well. This is not covered in this tutorial. Test it out! You should now be able to interact with your voice assistant. When you are ready, you can ask the assistant to hang up to test out the Hangup tool. If you assigned a number to your assistant, you can also have your assistant call you: from the portal via API/CLI in an automated workflow like Zapier using our TeXML Outbound Call action. If you are using the curl provided, make sure to set the TELNYX_API_KEY environment variable with your API Key Outbound calls via API To initiate an outbound call with your AI assistant via API, use the /v2/texml/ai_calls/ endpoint: curl --request POST \ --url https://api.telnyx.com/v2/texml/ai_calls/<texml_app_id> \ --header "Authorization: Bearer $TELNYX_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "From": "+13128675309", "To": "+15551234567", "AIAssistantId": "assistant-6207ab25-b185-478f-b2ef-85159e226727" }' If your assistant has voicemail detection options