Enabling an SMS chatbot conversation in an application
BMC Helix Innovation Suite provides an Short Message Service (SMS) conversation capability for chatbot applications so that the application users can interact with a chatbot through text messages by using their mobile devices. To utilize this capability, you must use the Programmable SMS service provided by Twilio.
The configuration for BMC Helix Virtual Agent to work with Twilio is a tenant-level configuration.
- If you use Twilio to configure BMC Helix Virtual Agent with WhatsApp, you require two different services of Twilio. You cannot use a single Twilio service for SMS and WhatsApp configuration.
End users can use the same mobile number for WhatsApp and SMS conversations.
The process of enabling an SMS chatbot conversation in an application comprises the following tasks:
Before you begin
To use the SMS conversation capability, the users must be registered as users in the CTM:People form in BMC Helix ITSM and must have their mobile number in the following format:
+ <country code> <mobile number> such as +14098765432
For information about creating users, see Adding contact information, work information, and attributes to a People record .
To create a Twilio account
Sign up for Twilio Programmable SMS .
After you sign up for Twilio, you receive an email that contains your Twilio account credentials, Account SID and Auth Token.
To create a messaging service
You must create a separate messaging service for each chatbot application.
- Log in to Twilio .
- Create a new project that includes the Programmable SMS feature.
- In your project, navigate to Programmable SMS > SMS, and click Create new Messaging Service.
- Enter the Messaging Service name, select the USE CASE value as Chat Bot/Interactive 2-Way, and click Create.
The following image is an example of creating a new messaging service:
In the Configure pane, enter the properties, and click Save.
In the Inbound Settings section, select the PROCESS INBOUND MESSAGES option.
In REQUEST URL, enter the Webhook URL that you get when you configure a chatbot application to work with Twilio.
The following image is an example of the Inbound settings section:
To associate phone numbers
You must associate phone numbers with each messaging service for an application so that your application users can send messages to these phone numbers.
- Log in to Twilio .
- Navigate to your project for which you want to configure phone numbers for a messaging service.
- In your project, navigate to Programmable SMS > Message Service > Numbers, and add phone numbers for the messaging service.
For more information about the Programmable SMS, see Programmable Messaging in Twilio documentation.
To set call forwarding
You can also set up call forwarding for your Twilio phone number, so that a call coming to your Twilio phone number can be forwarded to any other number.
- Log in to Twilio .
- Navigate to your project for which you want to set call forwarding for a phone number.
- Search for TwiML Bins, in the RUNTIME section, select TwiML Bins.
In TwiML Bin, click Create new TwiML Bin.
Enter the values for the following fields, click Create, and save the changes.
Field Description FRIENDLY NAME Enter a name that describes to whom you are forwarding a call such as Forward messages to Jayant. TWML
Enter the following code by replacing +1xxxxxxxxxx with phone number to which you want to forward calls:
<?xml version="1.0" encoding="UTF-8"?> <Response> <Dial> +1xxxxxxxxxx </Dial> </Response>
You must provide your company support contact number or your company phone number.
- Navigate to Console Dashboard, in Phone numbers section, click Manage Numbers.
Select the phone number which is associated with your application and in the Voice & Fax section, update the fields A CALL COMES IN and PRIMARY HANDLER FAILS.
For more information about call forwarding, see Setting up call forwarding in Twilio documentation.
To configure a chatbot application
To configure your BMC Helix Innovation Suite chatbot application, you must configure the IBM Watson Assistant service credentials and configure your chatbot application to work with Twilio by using BMC Helix Innovation Suite.
To configure the IBM Watson Assistant service credentials
To connect to your IBM Watson Assistant service instance, you must configure the IAM API key in BMC Helix Innovation Suite. For more information, see Configuring cognitive service for custom applications by using IBM Watson activated by BMC .
To configure a chatbot to work with Twilio for SMS conversation
- Log in to BMC Helix Innovation Studio.
- On the Workspace tab, click the application in which you want to configure a chatbot to work with Twilio.
Click the Chatbots tab and click the chatbot that you want to configure to work with Twilio.
If your application contains the Skill and you have configured theIBM Watson Assistant service credentials, the Workspace ID field value is populated automatically. Else, you must add the Skill ID manually.
- Click the Channels tab and select New > Twilio.
- In the Chatbot Service, from the Add Chatbot Provider Settings list, select SMS (Twilio).
In the (SMS) Twilio Settings section, enter values for the following fields, and click Save.
Field Description Description Enter the description that provides details about the setting. Twilio Message Service ID
Enter the Service SID of the messaging service created in Twilio.
You can get the Service SID from Twilio configuration screen as shown in the following image:Copy the Service SID from this screen
Twilio Account ID Enter the Twilio Account SID that you receive when you create a Twilio account. Twilio Authentication Token Enter the Twilio Auth Token that you receive when you create a Twilio account.
(Information only) This field is populated automatically and contains the Webhook URL in the following format: https://hostname:portnumber/api/rx/application/chat/event/channel/tenantid/ChatbotID
Webhook URL is the REQUEST URL that you provide when you configure a messaging service in Twilio.
The following image is an example of the Twilio configuration:
The process for enabling SMS conversation for your application is now complete.
Configuring a chatbot to work with a communication channel
Formatting chatbot responses to be displayed in communication channels
Log in or register to comment.