Coder Social home page Coder Social logo

watson-assistant-phone-integration's Introduction

🚀 Phone Integration

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.

Prerequisites

  1. Sign up for an IBM Cloud account.
  2. Fill in the required information and press the „Create Account“ button.
  3. 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.
  4. Now you should be able to login to your new IBM Cloud account ;-)

Configuring the Watson Assistant on the IBM Cloud

1) Create a Watson Assistant Service

After the login you will see your IBM Cloud Dashboard. In the upper menu bar click Catalog. In the Catalog section, click on the AI category, then select Watson Assistant. On the next page select the Lite Plan - or the Plus Trial - these should cover all deployment options and you can also choose a region, where you would like to deploy your service as well as a service name. Click "Create".

Catalog Watson Assistant


2) Access your Watson Assistant Service

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.

Launch Watson Assistant

3) Import json to your Watson Assistant

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 onSwitch to classic experience.

Create Skill

Create Dialog Skill

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.

Import JSON File

Configuring the Twilio Account

  1. Register for Twilio and Start a free Trial.
  2. Confirm your email.
  3. 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.

Twilio Registration

  1. 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.

Twilio Number

Configuring the phone Integration

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.

Agent create

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.

Connect Watson Assistant to Twilio

Now we go back to Twilio and connect it with the Assistant.

  1. Click the three dots symbol on the left-hand side and select Elastic SIP Trunking. Select Trunks and Create new SIP Trunk.

Twilio SIP Trunk

  1. Give your SIP Trunk a Name, such as “Watson Demo Your Name”, then click Create.

Twilio SIP Trunk 2

  1. Go to Origination and add new Origination URI.

Twilio Origination

  1. Now add the Origination SIP URI from your Twilio account, don’t change priority and weight and click Add.

Twilio SIP URI add

  1. 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.

Twilio configure sip trunk

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.

If you have any questions just contact me

Felix Augenstein
Digital Tech Ecosystem & Developer Representative @IBM
Twitter: @F_Augenstein
LinkedIn: linkedin.com/in/felixaugenstein

watson-assistant-phone-integration's People

Contributors

felixaugenstein avatar janhofmann01 avatar jfedorr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.