- Scenario Builder Basics
- All Scenario Exercises
- Create a Basic Scenario
- Pop Case or Contact Information
- 1 How to Create a Chat Scenario That Uses Bots
- 1.1 Prerequisites
- 1.2 Scenario Flow
- 1.2.1 Action 1: "Chat Bot Select Account" specifies the integration account for your bot
- 1.2.2 Action 2: "Set Variable" personalizes the chat with customer data
- 1.2.3 Action 3: Send Message puts the customer's name into a message
- 1.2.4 Action 4: "Set Variable" defines scenario steps and tells the bot what to do at each step
- 1.2.5 Action 5: "If" tells the bot to send a message if the customer did not write a pre-chat form message
- 1.2.6 Action 6: "Ask a Bot" lets the bot talk to the customer
- 1.2.7 Action 7: "Send Message" sends a custom or system-wide message
- 1.2.8 Action 8: "Set Variable" sets the next scenario step
- 1.2.9 Action 9: "If" sets conditions that determine when the chat connects to agent
- 1.2.10 Action 10: "Find Agent" looks for a skilled agent
- 1.2.11 Action 11: "Connect Chat" always comes after "Find Agent"
- 1.2.12 Action 12: "Exit" ends the scenario
- 1.2.13 Last Action: Save!
- 1.2.14 Recommended Reading
- Block Specific Incoming Phone Numbers
- Distribute Surveys to a Percentage of Random Customers
- Route Callers to the Last Agent and Provide a Voicemail Option
- Sending Automatic Email Replies to Customers Who Use the "Leave a Message" Chat Form
- Skill-Based Call Routing with an Auto Attendant Choice
- Voice Scenario Survey
- Use Conversational IVR in a Scenario
- Scenario Example
- Downloadable Scenario Templates
How to Create a Chat Scenario That Uses Bots
To use a bot such as Watson Assistant in Bright Pattern chat interactions, you simply need to modify a chat scenario to include bot-specific scenario blocks such as Chat Bot Select Account and Ask a Bot.
This article will show you how to create a general chat scenario that uses a bot to:
- Automatically accept the customer’s chat request
- Greet the customer
- Provide up to two answers to the customer
- Connect to an agent when it’s determined that the bot is not being helpful
- Provide suggested replies to the agent during the chat
If you have not already done so, please complete these steps before proceeding:
- Create a Watson Assistant or an Alterra Answer Bot
Scenarios are made up of scenario blocks that specify how interactions are processed. Detailed descriptions of Bright Pattern scenario blocks are available in this guide's Scenario Block Definitions section.
The following sequence of actions illustrates how scenario blocks function in a bot-driven chat scenario. This example scenario uses an integrated Watson Assistant.
Action 1: "Chat Bot Select Account" specifies the integration account for your bot
All chat scenarios that incorporate bots will include the Chat Bot Select Account block. In this block, you are selecting a bot/chat suggestions engine integration account.
It's possible for your contact center to have many integration accounts, so it's important to specify which one will be used for this scenario. If you do not see the desired account listed, go back and add an integration account.
Action 2: "Set Variable" personalizes the chat with customer data
In this example, the Set Variable block is used to get the customer's first name and last name.
Variable $(item.externalChatData) gets the customer's data from the pre-chat form that the customer completed before launching the chat. It's called external chat data because it comes from outside of the chat interaction.
To specify what type of external chat data you want, append .first_name or .last_name to the variable, like this:
Action 3: Send Message puts the customer's name into a message
Now that you have a method to collect the customer's name, you can use the Send Message block to incorporate the name into a personalized chat message.
For example, "Hi first_name, how can I help you today?" becomes "Hi Jane, how can I help you today?"
Action 4: "Set Variable" defines scenario steps and tells the bot what to do at each step
We want the bot to respond to the customer two times before connecting to the agent. Using Set Variable blocks, we can define each bot's reply as a step, and tell the scenario what happens after each step.
The first bot reply is specified as "step 0" and the second is specified as "step 1." The scenario will run through both steps. If the customer's issue is not resolved by step 1, the customer is transferred to the agent for help.
Action 5: "If" tells the bot to send a message if the customer did not write a pre-chat form message
Most web chats are set up to begin with a pre-chat form that collects information from the customer (e.g., name, email address, phone number, reason for chatting, etc.) The If block specifies what happens if the customer did not write a message in the pre-chat form's Message field. If that field is empty, the scenario tells the bot to send a message.
The message aligns with what you have configured your Watson Assistant to say. We call the bot's messages suggestions.
Action 6: "Ask a Bot" lets the bot talk to the customer
The Ask a Bot block allows the bot to automate the conversation before an agent is connected. It delivers the bot's raw response (i.e., suggestions) to the customer. A raw response is configured in your Watson Assistant dialog flow or in your Alterra Answer Bot settings; it's unrelated to Bright Pattern.
Action 7: "Send Message" sends a custom or system-wide message
Another message can be optionally sent to the customer at this time (e.g., "Do you want to talk to a real live person now?").
Action 8: "Set Variable" sets the next scenario step
This time, we are defining "step 1." Remember, bots are useful for self-service and routing, but they become annoying if they do not help your customer or meet expectations. Setting these scenario steps ensures that a customer is connected to an agent if the bot has not answered the customer's question by now.
Action 9: "If" sets conditions that determine when the chat connects to agent
In this If block, a condition is set to make sure that if the scenario takes more than two steps to resolve the customer's issue, then it will transfer the chat from the bot to the agent.
Action 10: "Find Agent" looks for a skilled agent
The Find Agent block looks for the next available skilled agent to accept the chat. You can use Find Agent to set wait times and send the customer messages about estimated waiting time (EWT).
Action 11: "Connect Chat" always comes after "Find Agent"
Although Find Agent uses criteria to identify the proper agent to receive an interaction, it does not have a "delivery" mechanism. Connect Chat is the delivery mechanism for the interaction.
Action 12: "Exit" ends the scenario
The Exit block completes the scenario. Without it, the scenario will loop through this configured flow until the customer ends the chat.
Last Action: Save!
Be sure to click Save to apply your changes. Note that closing your web browser window or tab will close Scenario Builder without saving, and you will lose your work.
Then go try it!
For more information on chat configuration and bot setup, see these Bright Pattern tutorials: