In this hands-on tutorial you will add a Phone integration to the Watson assistant on the IBM Cloud that can listen and respond directly to customers using natural language over the telephone.
- Sign up for an IBM Cloud account.
- Fill in the required information and press the „Create Account“ button.
- After you submit your registration, you will receive an e-mail from the IBM Cloud team with details about your account. In this e-mail, you will need to click the link provided to confirm your registration.
- Now you should be able to login to your new IBM Cloud account ;-)
Go back to your IBM Cloud Dashboard by clicking the IBM Cloud Logo on the upper left. Under services you will find the Watson Assistant Service in the corresponding region. Access your service by launching it. Click on the IBM Cloud logo in the upper left to get back to your dashboard. Then click services to select your Watson Assistant service and launch it. Create a new Skill and choose Dialog Skill.
If you can't find the button to create a new skill, click on the profile icon in the upper right corner, and then on
Switch to classic experience
.
Then select Import Skill and upload either the
- skill-COVID-skill-german.json or the
- skill-banking-balance-enquiry.json or the
- skill-pizza-order-book-table.json.
You will see the intents, entities and the dialog. To learn more about these and the Watson Assistant click here.
- Register for Twilio and Start a free Trial.
- Confirm your email.
- Verify your phone number. Therefore, use the phone number you will use to call the Watson Assistant later on. You will receive a verification code.
- After the successful registration you can skip the intro and go directly to your dashboard, where you click “Get a trial number”, then click choose this number. It is important that you choose the provided number without trying to change it and save it for the next part.
Now we need to set up our Watson Assistant phone integration to enable it as a Voice Agent.
Go to your IBM Watson Assistant Dashboard, create a new Assistant, and add the skill you created earlier.
Now click on Add integration
on the right Side.
Then choose Phone
and click on Create
. If haven't already started your 30 day free Plus trial, you will have to start it, because this integration is part of the Plus Trial.
Add a Name, copy and save the SIP adress, add your Twilio Phone Number and create a Speech to text
service, as well as a Text to speech
service.
After you finished the setup, it should look like this.
Go to Speech to Text
and switch to a language of your choosing.
Now repeat the last step for Text to Speech
.
Now we go back to Twilio and connect it with the Assistant.
- Click the three dots symbol on the left-hand side and select Elastic SIP Trunking. Select Trunks and Create new SIP Trunk.
- Give your SIP Trunk a Name, such as “Watson Demo Your Name”, then click Create.
- Go to Origination and add new Origination URI.
- Now add the Origination SIP URI from your Twilio account, don’t change priority and weight and click Add.
- Then go to your Phone Numbers and click on your number. Under Voice & Fax, Configure With, select SIP Trunk. Then below choose a SIP Trunk and select the name you gave your SIP Trunk. Then click save.
Now you should be able to call your Watson Assistant with your verified phone. To train STT and TTS Custom Models you can use this simple interface.
Felix Augenstein
Digital Tech Ecosystem & Developer Representative @IBM
Twitter: @F_Augenstein
LinkedIn: linkedin.com/in/felixaugenstein