Enabling an SMS chatbot conversation in an application
BMC Helix Platform 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 service provided by Twilio.
The configuration for BMC Helix Chatbot to work with Twilio is a tenant-level configuration.
The process of enabling an SMS chatbot conversation in an application comprises the following tasks:
You must perform the process to add the SMS conversation capability to a chatbot application.
To create a Twilio account
Sign up for .
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 .
- 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.
Webhook URL that you get when you configure a chatbot application to work with Twilio.In REQUEST URL, enter the
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 .
- 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 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 .
- 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 in Twilio documentation.
To configure a chatbot application
To configure your BMC Helix Platform chatbot application, you must configure the IBM Watson Assistant service credentials and configure your chatbot application to work with Twilio by using BMC Helix Platform.
To configure the IBM Watson Assistantservice credentials
To connect to your IBM Watson Assistant service instance, you must configure the IAM API key in BMC Helix Platform. For more information, see
- MultiExcerpt named 'hp_Configuring cognitive service for custom applications by using IBM Watson' was not found
To configure a chatbot application to work with Twilio
- 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 Skills 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 Twilio.
In the 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.
To use the SMS conversation capability, the users must be registered as agents in Foundation data and the users must have the Primary Contact Information as mobile numbers in the following format:
+ <country code> <mobile number> such as +14085461010
For information about creating agents, see .