Skip to main content

No-Code Voice Assistant

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 ten minutes.

For a real example of the finished product, try out the public demo we built using this tutorial.

Requirements

There are 3 required steps for this tutorial

  1. Configure your AI Assistant
  2. Attach a TeXML Voice Application
  3. Assign a phone number

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.

To help you get started, we've shared the configuration from our public demo below.

Model: meta-llama/Meta-Llama-3.1-70B-Instruct

Instructions:

You are a voice assistant for Telnyx. At Telnyx, we’re architecting and amplifying access to global connectivity. We power communications, wireless, networking and storage from our private, global, multi-cloud IP network all the way out to the hyperlocal edge. And we make this edge infrastructure easily available through intuitive APIs housed in one space. As a voice assistant, you should stay CONCISE and FRIENDLY. You should also not use any formatting like bullet points or bolding because everything will be spoken aloud.
Note

You need to copy the assistant ID for your voice configuration in the next step.

AI Assistant Portal Config

Attach a TeXML Voice Application

Now, navigate to the TeXML Bins tab in the portal. You will create a new bin to configure the voice functionality for your assistant.

You don't need to have a deep understanding of TeXML for this tutorial, but if you'd like to learn more about it, here are some helpful resources:

We've shared some example TeXML below. Where it says PASTE YOUR ASSISTANT ID HERE you will want to use your AI Assistant ID from the previous step.

TeXML:

<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Connect>
<AIAssistant id="PASTE YOUR ASSISTANT ID HERE">
<Greeting>Good morning, how can I help you today?</Greeting>
<Voice provider="telnyx">
<Telnyx voice_id="0" model_id="LibriTTS" phonemizer="gruut" voice_speed="1.25"/>
</Voice>
</AIAssistant>
</Connect>
</Response>
Note

You need to copy the bin URL for your voice configuration in the next step.

TeXML Bin Portal Config

Next, navigate to the TeXML Applications tab in the portal. Create a new application and set the TeXML Bin URL to the URL from the previous step.

TeXML App Portal Config

Assign a phone number

Finally, you need to search and buy a phone number with voice features.

Buy Number Portal Config

After adding the number to your cart, you can assign the voice application you just created and buy the number.

Assign AI App

Test it out

You should now be able to call your phone number and interact with your voice assistant. In future tutorials, we will show you how to:

  • Integrate with Elevenlabs for higher quality voices
  • Enable outbound calling
  • Provide your assistant with more context than what can fit into its instructions, using embeddings