Chat Bots provide a way to tie text messages into a user Journey, making them a crucial part of call deflection, sending timed reminders, and otherwise following up with users.
Once an app is in production, is there a way to check on the status of the sent text messages?
The status of outgoing text messages sent from all Apps within an Organization can be found in the Console, in the SMS tab when examining an application under App Health. This provides insight into important information such as which and how many text messages were successfully delivered. For more information, see Console.
The simplest example is to create a Chat Bot triggered from a Web Page, displaying information from the fields and to a phone number previously stored by the App.
Since the Chat Bot is triggered from a Web Page, first a simple form must be created.
In this example, the user will complete the form with their name and phone number. For each of these fields, a variable will be created automatically:
When the user clicks the “Track my order” button, an SMS will be sent to their phone number.
Three Actions must be added to the button for it to trigger the Chat Bot:
- Set Actor: to set the variable that will indicate the App to which number the Chat Bot must be sent
- Initialize Actor: to set the values for the current Actor in the Journey
- Start Chat Bot: to run the selected Chat Bot
Chat Bots are created from the Chat Bots Builder.
Click on the '+' sign next to the Chat Bots and then select Create Blank or a Chat Bot Template.
From the Chat Bot level, in the General tab in the Inspector, add a Variable of type Text and rename it to "fullName". This way, you’ll be able to use the user’s name in the SMS.
Add a Decision Menu and type the text that the SMS will display. Select Expression and enter the recently created
fullName Variable so that the user is greeted by their name.
When creating SMS experiences, bear in mind that Airkit won't allow for the sending of the same text message to the same phone number multiple times within a 30-minute period.
Then enter the Decision Options the user will receive upon following the Chat Bot indications.
We recommend adding transparent naming to all Chat Bot components to easily connect the Decision Options to each expected result.
So that the
fullName Variable created in the Chat Bot can reproduce the value entered in the “Name” input field, the Variable needs to be bound.
Go back to Web Flows Builder and in the Start Chat Bot action of the "Track my order" Button, an Input field will be displayed for you to enter the Variable:
Now the Expression tag in the Chat Bot will retrieve the name entered by the user when the SMS is triggered.
Updated 12 months ago