Personalize conversational AI phone calls with Twilio

ElevenLabs · Beginner ·🧠 Large Language Models ·1y ago

Key Takeaways

The video demonstrates how to personalize conversational AI phone calls using Twilio and ElevenLabs Conversational AI by setting up a web hook to return dynamic variables such as customer name and account status, and injecting a prompt and first message to the customer.

Full Transcript

we just launched a new feature to allow you to personalize your conversational AI agents to whoever is calling them now the way this works is via setting up a web hook that returns some Dynamic variables like the customer's name their account status um as well as a prompt that you can inject and the first message to the customer as they call so for example you know if I'm calling I want the conversational AI agent to say hi Thor um how are you thanks for calling you know how are things so now to recap first of all how can we connect our you know conversational AI agent to phone calling so the way we can do that is via twilio and so if we have a twilio account we can import an existing twio phone number into our conversational AI agent so when we go over to our conversational AI agent dashboard you can see there is uh a setting for phone numbers and so here I put in my twilio phone number already so this is the phone number that folks can call my conversational AI agent on and you can see here you can specify the inbound calls um to Handle by you know which agent so anyone who calls this phone number should go to this twillo test agent so let's have a quick look at my agent configuration here so it's configured in English um you can see there is some default first message um that just says hi I'm Thor um and it's using actually my voice clone so you know if you're lonely you can just call uh and you can talk to my voice clone clone if you want um but let's have a look at you know what this looks like if we call this agent hi I'm Thor a developer experience engineer at 11lbs what do you want to learn about hey Thor what is my name I do not have access to that information is there anything I can help you with uh Regarding 11 Labs so yeah you can see that you know that is the experience want to improve so we want to inject that personalization data into the agent so you know depending on who is calling so the way we can do that is by just setting up um a little web hook so for example if we're using um JavaScript we can use fastify to just set up a web hook Handler and I just have a route here so um twilio basically when the call is being initiated ated and you can you can see that here so while the call is being initi initiated in the background the conversational AI agent so 11 laps is making um the post request to your uh API endpoint to your web hook uh to get the information and then you know once the the call is being picked up all the information is read readily available so you can see here you know um you will get uh the here the caller ID from the request body so that's being injected and you can then you know look up in your database or your integration you know your stripe account what have you the information about the customer and then you can inject that into um the conversational AI agent you can see here now that I'm overwriting this uh to hi John how can I help you today uh and you know I mean this prompt is not very helpful but you know they can ask about like their bank account balance okay so now the way we set this up is we need to configure our web hook details so in our um settings here we can add a web hook for the conversation initiation client data web hook uh and we can also add some secrets you know if we need them in our web hook um so here I'm using enro to expose my um local URL to so you can see my server is up and running um to my agent so here and then my route I called it get personal so we can just say Get hyen Personal uh so we can add some headers you know if we want to verify kind of a secret um you know ideally once you move to production uh you want to do that um but for now we're just going to add this Po in here uh and then the next step we need to do is we need to um yeah so we can specify our headers uh we need to enable the fetching of the conversation conversation initiation data um so you will have one web hook for all your agents so when you go to your agent um you know the webook will have the agent ID inside so if you have various different Agents set up um you can have hand that there and so then here in the security you can say Okay enable fetching of the conversation data you need to save that here uh and then you can say Okay first message and uh system prompt what do you want to allow to overwrite um and so you can see we're passing in here the prompt and the first message and so now when we are initiating our call again [Music] hi John how can I help you today hey oh how do you know my first name I have access to some basic information to personalize our interactions is there anything I can help you with today John yeah what is my my bank account balance do you know yes John your bank account balance is $100 is there anything else I can help you with regarding your account yeah so this is so fun talking to myself cool so now you can see that as the call was being initiated from twilio um the weapo call was being made in the background we got the the body here the caller ID the agent um the number that was called as well as the uh calls ID so and then based on the caller ID we can you know fetch the information and return it back so there you go this is how you can make personalization happen with your conversational AI agents over the phone uh let me know what else you want to learn and I will see you next time

Original Description

Inbound conversational AI phone calls can now easily be personalized using @twilio and ElevenLabs Conversational AI. Try ElevenLabs: https://elevenlabs.io?utm_source=youtube&utm_medium=organic&utm_campaign=not_set&utm_content=personalize_conversational_ai_phone_calls_with_twilio Provide dynamic variables based on the inbound caller id, and override the prompt, language, first message to fully customize your voice AI agents. - Read the docs: https://elevenlabs.io/docs/conversational-ai/customization/personalization/twilio-personalization ## Chapters 0:00 Introduction: Enhancing Conversational AI with Personalization 0:08 Overview of Twilio Personalization Documentation 0:11 Understanding Webhooks and Dynamic Variables 0:39 Connecting Conversational AI to Phone Communication 0:47 Integrating Twilio for Conversational AI Connections 0:59 Configuring AI Agents within the Platform 1:04 Managing Phone Numbers in the Conversational AI Dashboard 1:30 Detailed Examination of Agent Configuration Settings 1:57 Demonstration of AI Agent Call Functionality 2:30 Implementing AI Agent Personalization Data 2:39 Webhook Configuration: A Step-by-Step Guide 3:01 Enabling Twilio Connection for Data Retrieval 3:14 Identifying the API Endpoint for Webhook Integration 4:03 Detailed Configuration of Webhook Parameters 4:10 Integrating the Webhook into Conversation Initialization 5:01 Adding a Webhook for Conversation Initialization 5:06 Activating Data Fetching for Conversation Initiation 6:03 Conducting a Test Call with the Enhanced AI Agent 7:02 Conclusion: Elevating Customer Communication through AI Try ElevenLabs: https://elevenlabs.io?utm_source=youtube&utm_medium=organic&utm_campaign=not_set&utm_content=personalize_conversational_ai_phone_calls_with_twilio ElevenLabs Conversational AI provides automatic speech recognition, integrates with OpenAI GPT-4o, Google Gemini 2.0 Flash, and ultra-low latency, high quality text to speech. Discover the latest feature to enhance your Conv
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from ElevenLabs · ElevenLabs · 40 of 60

1 AI Multilingual TTS Demo | ElevenLabs
AI Multilingual TTS Demo | ElevenLabs
ElevenLabs
2 Professional Voice Cloning Demo | ElevenLabs
Professional Voice Cloning Demo | ElevenLabs
ElevenLabs
3 Introducing: Projects
Introducing: Projects
ElevenLabs
4 ElevenLabs Dubbing Studio
ElevenLabs Dubbing Studio
ElevenLabs
5 ElevenLabs Speech to Speech
ElevenLabs Speech to Speech
ElevenLabs
6 Sound Effects are Coming Soon to ElevenLabs
Sound Effects are Coming Soon to ElevenLabs
ElevenLabs
7 It Started to Sing
It Started to Sing
ElevenLabs
8 It Started to Sing (Jazz)
It Started to Sing (Jazz)
ElevenLabs
9 Broke my Heart
Broke my Heart
ElevenLabs
10 My Love
My Love
ElevenLabs
11 ElevenLabs Dubbing API
ElevenLabs Dubbing API
ElevenLabs
12 ElevenLabs Audio Native
ElevenLabs Audio Native
ElevenLabs
13 Increasing reader engagement with Audio Native [June 2024 Webinar]
Increasing reader engagement with Audio Native [June 2024 Webinar]
ElevenLabs
14 ElevenLabs Text to Sound Effects API Demo
ElevenLabs Text to Sound Effects API Demo
ElevenLabs
15 ElevenLabs Voiceover Studio
ElevenLabs Voiceover Studio
ElevenLabs
16 ElevenLabs Speech to Speech Tutorial
ElevenLabs Speech to Speech Tutorial
ElevenLabs
17 ElevenLabs Voice Isolator API Demo
ElevenLabs Voice Isolator API Demo
ElevenLabs
18 ElevenLabs Turbo v2.5
ElevenLabs Turbo v2.5
ElevenLabs
19 ElevenLabs Reader App - Android
ElevenLabs Reader App - Android
ElevenLabs
20 ElevenLabs Impact Program
ElevenLabs Impact Program
ElevenLabs
21 We’ve reduced our pricing.
We’ve reduced our pricing.
ElevenLabs
22 Sound Effects Explore
Sound Effects Explore
ElevenLabs
23 Behind the Voice - Michael Marshall
Behind the Voice - Michael Marshall
ElevenLabs
24 X to Voice
X to Voice
ElevenLabs
25 Huberman Labs now Dubbing with ElevenLabs
Huberman Labs now Dubbing with ElevenLabs
ElevenLabs
26 GenFM, Now Playing on ElevenReader: Smart Podcasts Produced by Generative AI
GenFM, Now Playing on ElevenReader: Smart Podcasts Produced by Generative AI
ElevenLabs
27 Introducing ElevenLabs Conversational Agents
Introducing ElevenLabs Conversational Agents
ElevenLabs
28 Meet Flash
Meet Flash
ElevenLabs
29 Transforming media production with AI sound effects & dubbing
Transforming media production with AI sound effects & dubbing
ElevenLabs
30 ElevenLabs Conversational AI Webinar
ElevenLabs Conversational AI Webinar
ElevenLabs
31 ElevenLabs - Text to Speech, Dubbing, Sound Effects and more
ElevenLabs - Text to Speech, Dubbing, Sound Effects and more
ElevenLabs
32 Talk to Santa
Talk to Santa
ElevenLabs
33 Year in Review with special guest TIME's CTO Burhan Hamid
Year in Review with special guest TIME's CTO Burhan Hamid
ElevenLabs
34 Conversational AI Voice Agents that can issue refunds
Conversational AI Voice Agents that can issue refunds
ElevenLabs
35 Prenez une longueur d'avance avec ElevenLabs
Prenez une longueur d'avance avec ElevenLabs
ElevenLabs
36 Studio is now available to everyone, with new features (walkthrough)
Studio is now available to everyone, with new features (walkthrough)
ElevenLabs
37 Build Conversational AI agents with Gemini 2.0 Flash
Build Conversational AI agents with Gemini 2.0 Flash
ElevenLabs
38 Meet Alexis & El – Support Agents Handling 4,000 Calls a Day
Meet Alexis & El – Support Agents Handling 4,000 Calls a Day
ElevenLabs
39 Transform your Speech with ElevenLabs Voice Changer
Transform your Speech with ElevenLabs Voice Changer
ElevenLabs
Personalize conversational AI phone calls with Twilio
Personalize conversational AI phone calls with Twilio
ElevenLabs
41 Spotify is now accepting Audiobooks Narrated by ElevenLabs
Spotify is now accepting Audiobooks Narrated by ElevenLabs
ElevenLabs
42 Build Outbound AI Sales Agents
Build Outbound AI Sales Agents
ElevenLabs
43 Meet Scribe
Meet Scribe
ElevenLabs
44 Build a multilingual speech transcription bot with the ElevenLabs transcriber API
Build a multilingual speech transcription bot with the ElevenLabs transcriber API
ElevenLabs
45 Streaming and Caching Speech with Supabase
Streaming and Caching Speech with Supabase
ElevenLabs
46 Meet GibberLink, Conversational AI's secret language
Meet GibberLink, Conversational AI's secret language
ElevenLabs
47 Building a Personal AI Receptionist
Building a Personal AI Receptionist
ElevenLabs
48 Cross-platform AI Voice Agents with Expo React Native
Cross-platform AI Voice Agents with Expo React Native
ElevenLabs
49 Automatic Language Detection for Conversational AI
Automatic Language Detection for Conversational AI
ElevenLabs
50 Native Retrieval-Augmented Generation (RAG) in Conversational AI
Native Retrieval-Augmented Generation (RAG) in Conversational AI
ElevenLabs
51 Text to Bark from ElevenLabs
Text to Bark from ElevenLabs
ElevenLabs
52 Meet KUBI the Conversational Robot Barista
Meet KUBI the Conversational Robot Barista
ElevenLabs
53 Introducing the ElevenLabs MCP server
Introducing the ElevenLabs MCP server
ElevenLabs
54 Collect and analyze data with Conversational AI
Collect and analyze data with Conversational AI
ElevenLabs
55 Agent Transfer - Conversational AI
Agent Transfer - Conversational AI
ElevenLabs
56 Sound Effects are now available in Studio
Sound Effects are now available in Studio
ElevenLabs
57 How to Make your Professional Voice Clone.
How to Make your Professional Voice Clone.
ElevenLabs
58 Get unique AI Voiceovers in CapCut
Get unique AI Voiceovers in CapCut
ElevenLabs
59 Transfer to human - Conversational AI
Transfer to human - Conversational AI
ElevenLabs
60 Use HeyGen Avatar IV to Make AI Movie Characters
Use HeyGen Avatar IV to Make AI Movie Characters
ElevenLabs

This video teaches how to personalize conversational AI phone calls using Twilio and ElevenLabs Conversational AI by setting up a web hook to return dynamic variables and injecting a prompt and first message to the customer. The video provides a step-by-step guide on how to configure the web hook and integrate it with the conversational AI agent.

Key Takeaways
  1. Set up a Twilio account and import an existing Twilio phone number into the conversational AI agent dashboard
  2. Configure the conversational AI agent to handle inbound calls
  3. Set up a web hook to return dynamic variables such as customer name and account status
  4. Inject a prompt and first message to the customer using the web hook
  5. Test the personalized conversational AI phone call
💡 Using a web hook to return dynamic variables and injecting a prompt and first message to the customer can significantly improve the personalization of conversational AI phone calls.

Related Reads

📰
Kurduğum Bağımsız Yapay Zeka Ajanı: Geliştirici Perspektifinden RAG Teknolojisi
Learn about RAG technology from a developer's perspective and how it enables the creation of independent AI agents
Medium · AI
📰
How to Use ChatGPT to Plan Your Weekly Meals and Grocery List
Learn how to use ChatGPT to plan your weekly meals and generate a grocery list, saving time and mental energy
Dev.to · GTStudios
📰
Adaptive Neuro-Symbolic Planning for heritage language revitalization programs with inverse simulation verification
Learn how Adaptive Neuro-Symbolic Planning can be applied to heritage language revitalization programs with inverse simulation verification
Dev.to AI
📰
The LLM Reality Check: Why Hype Obscures Genuine AI Progress
Separate hype from genuine AI progress in language models to understand their true capabilities and limitations
Dev.to · Eli

Chapters (19)

Introduction: Enhancing Conversational AI with Personalization
0:08 Overview of Twilio Personalization Documentation
0:11 Understanding Webhooks and Dynamic Variables
0:39 Connecting Conversational AI to Phone Communication
0:47 Integrating Twilio for Conversational AI Connections
0:59 Configuring AI Agents within the Platform
1:04 Managing Phone Numbers in the Conversational AI Dashboard
1:30 Detailed Examination of Agent Configuration Settings
1:57 Demonstration of AI Agent Call Functionality
2:30 Implementing AI Agent Personalization Data
2:39 Webhook Configuration: A Step-by-Step Guide
3:01 Enabling Twilio Connection for Data Retrieval
3:14 Identifying the API Endpoint for Webhook Integration
4:03 Detailed Configuration of Webhook Parameters
4:10 Integrating the Webhook into Conversation Initialization
5:01 Adding a Webhook for Conversation Initialization
5:06 Activating Data Fetching for Conversation Initiation
6:03 Conducting a Test Call with the Enhanced AI Agent
7:02 Conclusion: Elevating Customer Communication through AI
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →