How to Integrate Voice Intelligence with Your CRM
Time to read: 8 minutes
How to integrate Voice Intelligence with CRM
Think of customer interactions as an untapped treasure trove of data. Twilio Voice Intelligence turns these conversations into actionable insights using AI and machine learning. It automates feedback with real-time transcriptions, sentiment analysis, and keyword spotting, helping businesses understand customer sentiment and behavior. This means you can spot challenges, predict key metrics like NPS and churn, and streamline operations. Plus, it makes compliance and quality assurance easier and integrates smoothly with your existing systems, like CRMs.
For more details, please visit the Twilio Voice Intelligence page.
The benefits of integrating Voice Intelligence with your CRM
Imagine if your sales team could breeze through call summaries effortlessly, like having a reliable assistant who captures all the important details for you. These summaries highlight key points and action items from each conversation, saving time and ensuring nothing important gets overlooked during follow-ups
AI-driven automation further enhances this efficiency by extracting essential CRM data—like phone numbers, emails, competitive insights and follow-up commitments—directly from Voice Intelligence transcripts. This boosts data accuracy and makes lead management a breeze, so your team can focus on meaningful interactions.
When integrated with CRMs like HubSpot or Salesforce, Voice Intelligence data enriches lead profiles with crucial call insights. This helps your team understand customer needs better and personalize their approach, boosting productivity and enhancing customer interactions. Automated data entry means more time for engaging with leads and crafting tailored messages that resonate.
In this blog post, we explore how integrating Twilio Voice Intelligence with your CRM (such as HubSpot) can significantly boost your efficiency. Imagine a real estate company using Voice Intelligence: as soon as a call comes in, Voice Intelligence transcribes the conversation and extracts all the important details. The CRM is then automatically updated with key information—like the caller’s number, the reason for the call, and any specific needs. No manual entry required! This means their realtors can jump in immediately, fully informed and ready to assist. With everything automatically recorded and up-to-date, they're always a step ahead, saving time and ensuring nothing slips through the cracks.
While this blog focuses on a CRM integration with HubSpot, it's worth noting that Voice Intelligence can seamlessly integrate with any existing system. Whether it's your current contact center solution or Twilio Flex with the Voice Intelligence plug-in, you can leverage these capabilities across various platforms to enhance your operations.
The code for this project can also be found on GitHub.
Call handling and data integration workflow
Ready to set up your Voice Intelligence integration? It's simpler than you might think. We'll walk you through the steps to seamlessly integrate voice data into your existing systems. Using Twilio and HubSpot's powerful APIs and user-friendly interfaces, you can easily decode Voice Intelligence and sync it with your CRM. Let's get started!
- The customer calls the agent on the Twilio phone number.
- The Studio Flow is activated, and the customer is greeted by an agent. The agent informs the customer that the call is being recorded. The agent then asks for the customer's name, and asks if they would like to leave a message with their desired location and other details. After gathering all the necessary information, the agent ends the call.
- Voice Intelligence receives the call recording and generates the transcript of the call, which can also be viewed in the Twilio Console UI Transcripts Viewer. Voice Intelligence also applies the Conversation Summary and Entity Recognition language operators.
- Voice Intelligence sends a webhook event to indicate that a transcript is complete, the Twilio function runs and extracts the relevant CRM data fields.
- Once all the fields are extracted, Twilio updates the CRM with a new lead.
Prerequisites
You will need:
- A Twilio Account. If you don't have one, sign up using this link to get a trial account.
- A Twilio Phone Number. You’ll be provided with a number in your trial account. If you want to purchase an alternative number you can release the number provided and purchase an alternative number or upgrade your account.
- Twilio Studio IVR to create call recordings OR you can also import pre-recorded calls into Twilio to create transcripts for Voice Intelligence.
- HubSpot account
Step 1: Configure HubSpot
- Login to your HubSpot account.
- Create a Private App in HubSpot
- Make a note of the Access token for your private app we will use it in the next step
Step 2: Create a Twilio Function
Twilio Functions is a serverless environment that empowers developers to quickly and easily create production-grade, event-driven Twilio applications that scale with their businesses. Twilio Functions provides a complete runtime environment for executing your Node.js scripts.
To create a function, go to the Twilio Console:
- Create a new Function Service, call it
voiceintelligence
(or anything you like). - Add a new function and give it a name, for example,
/transcribe
. This function will be used to create a transcript after call recording)
In the above function, please note that if it's an inbound call then the agent is in as channel participant = 2
and if it’s an outbound call then the agent is channel participant = 1
. More details on specifying participants info is here.
- Create another function
/voiceintelligence
. This function will be used to update HubSpot.
- Setup the following Environment variables:
Variable | Value |
---|---|
HUBSPOT_TOKEN | HubSpot Private App Token created in Step1 above |
SERVICE_SID | Voice Intelligence Service SID created in Step 4 |
SERVICE_SID
in Step 4 Configuring Voice Intelligence- Take a note of your function url. We would need these later on in our setup. In this example, it will be something like
https://voiceintelligence-xxxx.twil.io/voiceintelligence
andhttps://voiceintelligence-xxxx.twil.io/transcribe
- Save and Deploy for your changes to take effect.
Step 3: IVR Setup
Twilio Studio is a straightforward-to-use tool that helps you create and manage communication workflows without needing to write much code. You can drag and drop widgets to build apps for voice calls, messages, and other communication needs. It's designed to make creating complex workflows, like order notifications, phone menus, surveys, and SMS chatbots, straightforward and intuitive. You can also build your own Interactive Voice Response (IVR) system by following the steps outlined in this tutorial.
Below is an example of a basic IVR that will produce call recordings which will be analyzed by Voice Intelligence in Step 4
To get started with Twilio Studio, follow these steps:
- Open Studio: In your Twilio Console, navigate to the Studio dashboard.
- Create a New Flow: Click on Create a flow. For more detailed guidance, refer to the Twilio Studio Documentation.
- An example flow is shown below. You can also get the json file ( voiceIntelligenceFlow.json) from this code repository and import it.
- Please make sure that your call_recording widget is set to
dual
recording as shown below. It records each party of a 2-party call into separate channels.
- Paste the
/transcribe
function link created in Step 2 as the Recording Status Callback Method as highlighted above. The URL should be something likehttps://voiceintelligence-xxxx.twil.io/transcribe
- Save and Publish your flow.
- Setup Your Twilio Number: Go to the Phone Numbers section in your Twilio console, select the number you want to use, and configure it to run your Studio Flow when A Call Comes In. See example below.
Step 4: Configure a Voice Intelligence Service
For this example, we'll use the Twilio Console UI to configure Voice Intelligence. However, you can also set it up using the Twilio REST API or even by the Twilio CLI if you prefer.
In the Twilio Console, navigate to Explore Products on the left hand menu. In this screen underneath the Programmable Communications section you’ll find Voice Intelligence.
After pinning, go to Voice Intelligence and scroll down to the Getting Started Guide on the Overview page. Expand the dropdown for Create Service and click the View Services button. On the Services page, click the Create New Service button. Provide a Unique Name for your Service (using only letters, numbers, dashes, underscores, and periods). Optionally, add a Friendly Name and select one of the available languages from the dropdown list. I will leave the language set to the default English (United States), but you can choose the most appropriate language for your call participants.
In order to use the service you’ll need to accept the Twilio Predictive and Generative AI/ML Features Addendum by checking the box. You also have the option to:
- Uncheck: Personally Identifiable Information (PII) redaction from both transcripts and recordings to ensure fields are not redacted because these will be sent to our CRM.
- Uncheck: Auto Transcribe on your Twilio Call Recordings to ensure that the transcription is generated by the
/transcribe
function above. - Check: Enable Data Use option.
Click Create to set up the service, and you'll be redirected to the Service configuration page. Copy the Voice Intelligence SERVICE_SID and paste it in Step 2 as an Environment Variable.
Set up Language operators
The first tab is the Language Operators tab. In this tab, you can use prebuilt operators or create custom ones based on your needs. Make sure to add them to the service that you wish to use by clicking the adjacent Add button next to each. For this example we’ll use the Entity Recognition, and Conversation Summary. You could also add custom language operators to capture relevant details specific to your use case, such as identifying key phrases or classifying transcripts based on predefined criteria.
Set up Webhooks
Copy and paste the /voiceintelligence
Twilio Function URL as a webhook. This webhook will be executed as soon as the call transcription is available.
Step 5: Set up HubSpot
You must ensure that all the fields extracted in the /voiceintelligence
function are present as columns in HubSpot. This example uses the following columns: Name, Lead, Date, Call Time, Phone Number, Location, and Summary. If you don't see these columns in HubSpot, you can just as easily create a property and add that to your HubSpot default view.
Step 6: Testing and Error Handling
Now that you have everything setup correctly, it’s time to make some calls into our IVR and start populating some test data into our CRM.
Error Handling
Verify Transcript Matches:
- Check your transcripts to ensure that all values in your transcripts are correctly matched for Conversation Summary and Entity Recognition language operators.
Transcript Not Visible:
- If your transcript is missing, confirm that a call recording exists in the call recording logs.
HubSpot CRM Update Issues:
- If the transcript and Language Operator match are correct but the HubSpot CRM is not updated, check for webhook errors, as they likely indicate problems with executing your Twilio Function.
- Troubleshoot and debug your Function for errors.
Conclusion
By integrating Voice Intelligence into your sales process, you simplify and enhance how your team handles call summaries and manage leads. This tool captures all the important details from conversations and enriches your CRM with accurate, valuable data. This not only saves time but also allows your team to focus on what truly matters—building strong, personalized relationships with customers. With Voice Intelligence, your sales process becomes more efficient and effective, leading to better outcomes and happier customers.
Interested to know more about Voice Intelligence? Check out our developer documentation, or see our tutorial on how to get started with Voice Intelligence and Postman. We can’t wait to see what you build!
Ankita Tiwari is a Solutions Engineer at Twilio. She is always looking for new ways to improve the customer experience through digital communication
Yukti Ahuja is a Principal Solutions Engineer at Twilio. As an SE, she is a problem solver extraordinaire, blending technical expertise to bridge the gap between complex technology and practical solutions for customers.
Related Posts
Related Resources
Twilio Docs
From APIs to SDKs to sample apps
API reference documentation, SDKs, helper libraries, quickstarts, and tutorials for your language and platform.
Resource Center
The latest ebooks, industry reports, and webinars
Learn from customer engagement experts to improve your own communication.
Ahoy
Twilio's developer community hub
Best practices, code samples, and inspiration to build communications and digital engagement experiences.