Phonebot with IBM Voice Agent and Backend Integration

Phonebots ca help businesses to provide information and answer simple questions. This tutorial can be used to build a first prototype, develop the phone dialog, and test the components.

Solution Overview

The solution consist of the following components

  • the Voice Agent (Watson Assistant service, Speech-to-Text service, Text-to-Speech service)
  • the Twilio platform (other platforms possible)
  • a basic backend application
  • a database (not yet implemented, only needed if data needs to be stored for some reason)

Phonebot Architecture

The phonebot can answer basic questions (e.g. FAQs). The backend integration can be used to provide current information from external systems (e.g. emergency updates).

Prerequisites

  • IBM Cloud account
  • Twilio account
  • basic knowledge of the components being used

Instructions

The dialog is straight forward, each question is an intent:

dialog

Now you can already try out and adapt the dialog, but not yet prgrammatic calls of the backend. That will be configured in the next steps:

  • modify the webhook address , which is the address of the Node-RED instance
  • install the IBM Voice Agent service as described in this video and on this guide

I chose the option to create all in one step and could select the existing Watson Assistant service and skill.

Backend Application

The Backend Application is simple:

Node-RED Flow

Depending on the paramater request a specific action is triggered.