-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Create a conversational Voicebot on WhatsApp with Watson services
Build a framework that allows user to interact with a bot with voice using WhatsApp and Watson Services.
https://github.com/IBM/voicebot-on-whatsapp-using-watson-services
In this code pattern, We will build a framework using which the user will be able send queries over voice on WhatsApp and get a response from Watson Assistant. The query from the user is sent to the Watson Speech to Text service through a custom application. The output from the Watson Speech to Text service is then feed to Watson Assistant. Watson Assistant responds back to the user with an appropriate answer.
Conversational AI VoiceBots are helping businesses automate repetitive and time-consuming queries. This gives your team more time to tackle more complex, high priority strategic tasks, while still ensuring that the customers are engaged. Voicebots take in voice input can ingest, analyze, interpret, and respond to customer inquiries, with the end goal of either being able to answer a customer’s question in real-time or being able to continue a textual exchange with the customer to clarify the question at hand.
A Voicebot is useful in many scenarios where typing is not a convenient option:
- Elderly customers find it more convenient to speak than to type. Some customers have better spoken language skills than written language skills. They find it easier to use VoiceBots.
- Delivery executives on the move with a need to update systems.
In this code pattern, you will look a scenario of a customer speaking Brazilian Portuguese
interact with a customer care center using WhatsApp
.
A framework is built using which the user will be able send queries using speech on WhatsApp, and then get a response from Watson Assistant. The query from the user is sent to the Watson Speech to Text service through a custom application. The output from the Watson Speech to Text service is then fed into Watson Assistant. Watson Assistant understands the query with the help of the built-in support for Brazilian Portuguese
and responds back to the user with an appropriate reply.
When you have completed this code pattern, you will understand how to:
- Use Watson Speech to Text service.
- Use Watson Assistant service.
- Integrate WhatsApp with Watson services.
- Handle queries sent over voice on WhatsApp.
This code pattern can be configured to support multiple languages. Watson Assistant supports the following languages.
- User sends a voice or text message in WhatsApp.
- The message is redirected to Twilio Programmable messaging service.
- Twilio redirects the message to the Voicebot Application deployed on IBM Cloud or OpenShift.
- If the user has sent a voice message, the Voicebot Application leverages Watson Speech to Text to transcribe the message into text.
- The text message is sent to Watson Assistant.
- Watson Assistant chatbot detects the intent and replies with response accordingly.
- The Voicebot Application triggers the Twilio Programmable messaging service with the response message.
- Twilio Programmable messaging service redirects the response message to WhatsApp.
- User will be able to view the response message on Whatsapp.
Find the detailed steps in the README file.
- Clone the repo
- Create Watson Services
- Create Twilio service
- Build and Deploy the Voicebot Application
- Configure Voicebot Application
- Try out voicebot on WhatsApp