Getting started with the new Watson Assistant part I: the build guide
We’ve revamped Watson Assistant to make it dramatically easier and faster for anyone (yes, that means you) to build, publish, and improve a chatbot.
Chatbots are a great way for you to naturally and efficiently help your customers get stuff done, but most chatbot building tools today are either overly simplistic and break whenever someone asks your bot something unexpected, or focused only on a developer as the bot builder, making it very hard for content-focused individuals to collaborate.
We think it’s about time a bot-building tool let anyone build robust AI-powered bots: bots that can automatically handle the craziness of human conversation and scale across a company without breaking.
That’s why the new Watson Assistant has a build experience tailored to the people who directly interact with customers daily.
You don’t have to sacrifice on powerful chatbot features either. The New Watson Assistant will automatically handle all sorts of things that could go wrong during a conversation, such as topic changes, vague requests, misunderstandings, and asking for a human agent.
In this post, we’ll show you how to create a fully-built topic in your new assistant in under 30 minutes. Here’s what you’ll do:
- Learn the basics (2 min)
- Switch to the new experience if necessary (2 min)
- Create your first assistant (1 min)
- Create your first conversation (20 min)
- Get a real-life preview of your assistant (4 min)
1. Learn the basics (2 min)
Actions and steps are the only two things you need to know to build an AI-powered virtual agent.
What is an action?
An action is a problem or a task that your customer wants to resolve. Anything from paying a bill to getting an invoice to saying hello to asking about the weather could be an action in your assistant.
What is a step?
A step is just a back-and-forth interaction between your assistant and your customer.
Simply put, steps represent the clarification questions, final answers, or human agent handoff points in the action.
Everything else that the step needs to function like the flow logic, response options, or storage of the user’s response is contained within it.
In the example above, the assistant asks clarification questions before handing the conversation over to an agent (with the account number as context) to pay a cable bill, or guides the user to the online billing portal for internet or phone bills.
2. Switch to the new experience (2 min)
Before you start building, you’ll need to make sure your Watson Assistant instance is switched to the “new experience” in the account menu:
Pro tip: When you make the switch, everything you’ve created in the classic experience will be saved and will still run perfectly. You can switch back and forth as much as you want.
If you don’t use Watson Assistant yet, you can sign up here for free.
Watson Assistant’s new experience includes a much more intuitive way for you to navigate around the product. Just as importantly, it follows the order of the steps we recommend to get your assistant live:
If you’re an existing customer of Watson Assistant, you might be wondering where the dialog skill went. Never fear, we will be launching an easy and gradual way for you to use both dialog and actions in the new experience in the coming months. However, this will in no way impact your ability to build and deploy now.
3. Create your first assistant (1 min)
When you first launch the new experience, you’ll be prompted to create your first assistant:
Give it a name that represents the domain of topics you want it to handle. For example, if you are building an assistant to handle support questions in your billing department, you might start by calling it the “Billing Assistant.” Choose what language you want it to speak before continuing. (The assistant can also handle virtually any global language.)
Pro tip: If you haven’t already thought about what you want your assistant to handle or where it will talk to your customers, check out our post on planning your assistant.
From here, you’ll start on the home page of your brand-new assistant:
You’ve already done the first two steps, so take a moment to check out what’s on your screen. Each section is organized with progress bars so you can see what you’ve done and how far you have to go.
In the top right of your screen you’ll also find the Learning center. Click to expand and open the menu items to find tours, shortcuts to useful content, and more. All of this is aimed at getting you up and running as quickly as possible, so be sure to explore.
Now it’s time to build your first conversation. Follow along with our example or create your own!
4. Create your first conversation (20 min)
Let’s build out a conversation flow using our billing example from before:
For an internet or phone bill, the customer will be sent to the online billing portal.
For cable bills, our fictional company’s policy dictates that a human agent has to take payment. In this case, the assistant needs to get the customer’s account number first to speed things up with the human agent.
Let’s build it!
Create your first action
Start by creating your first action. Remember that actions represent the topics your assistant can handle, such as “pay bill.”
Create your first example
You need to “train” your assistant’s topic-recognition AI by giving it some example sentences. Start with the first one here, something like: I want to pay my cable bill please.
Create your first step
Now it’s time to create the first step in the bill pay interaction. We’ll start with the clarification question around the customer’s account type:
Step 1 was already created for you, so move to it and add the clarification question in the Assistant says text box. Something along the lines of: What type of account are we talking here?
Then, select the type of customer response the assistant should wait for. In this case, options are the best choice. Add the three options for Cable, Internet, and Phone, and apply your changes.
Your first step should ultimately look something like this:
Preview your action
Now preview your action to make sure it works. To do this, hit the preview button in the bottom right corner of your screen. Try out a few interactions and see that it properly recognizes what you ask it. Try typing something other than your earlier training sentence.
Create another clarification step
With your first step created and tested, let’s finish this action by creating another step. As a reminder, we still need to build steps 2, 3, and 4:
Let’s add step 2 next. Add a new step below step 1:
Next, add the clarification question asking for the account number. Something like: What’s your account number?
After you’ve done that, you need to tell the assistant to look for a number in response to the question. From the response dropdown list, choose number:
Next, you need to add some flow logic. Remember, given the way this flow works, an account number should only be gathered in the case of a cable bill. To handle this scenario, you need to add a condition to your step. To do that, change the step to be taken with conditions instead of without:
Conditions are requirements which must be met for the step to be triggered. In this case, we want to condition on the answer to step 1 being Cable but not Internet or Phone. Setting this up is easy. Just make sure you have the condition set to step 1 = Cable:
Once you’re finished setting the condition, your action should look something like this:
Create an agent handoff step
You’re almost finished building this action! We just need to add steps 3 and 4, each of which provide the final outcome for the user:
Let’s start with step 3. Add it below step 2 and add some text related to getting the user to an agent to pay their bill. Something like: Let me get you to an agent who can help you pay your cable bill!
Next, condition this step on step 1 = Cable just like you did in step 2:
Finally, for this step, we don’t need to gather any information from the user, so you can leave the define customer response section empty.
We should, however, set up the assistant to route this conversation to a human agent. To add that, change the and then setting to connect to a human agent (which will also end the action when it hands off):
In the prompt that comes up, you should insert the context that you gathered for the human agent to review. Namely, the fact that the customer wants to pay their cable bill as well as the account number.
Pro tip: To insert information you’ve collected into text, start with the $ sign, and a quick select box should appear like this:
Select step 2 (the account number) as the field you want to insert and apply your changes.
Step 3 should be complete and look like this:
Create a final response step
Lastly, add step 4. It should say something like: To pay your <type of bill> bill, you can head to our online portal <link to portal>
To insert a variable like the type of bill being paid, click the variable insert button at the top of the text box:
And to add a link to the text, highlight the text you want to use and then click the link button:
The settings for the link should look something like this:
Next, make sure this step only fires for an internet or phone bill. To do that, create a condition for step 1 = Internet. Then add another condition for step 1 = Phone. When you do this, be sure that the step looks for any of these conditions to be met and not all of them:
Finally, make sure the action ends after this step is reached. To do that, change the And then setting to End the action.
Test the whole action
Boom! Your steps should now be complete and look like this.
Now for the fun part, let’s try it out!
Try a few scenarios where you state the type of bill up front. Notice how the assistant skips that question and moves immediately to the next step.
Add some more examples
You may notice when testing that the assistant doesn’t correctly recognize everything you ask it. To address this, you need to train the AI with more than just one example sentence. Simply move to the top of the action in the customer starts with section and add four more varied sentences:
Pro tip: While you’re at it, we recommend naming your action (top left of the image above) with something simple that your customers would recognize. In this case, maybe something like “Pay a bill.”
5. Get a real-life preview of your assistant (4 min)
To see how your assistant would work on one of your channels, head to the preview page:
This page is a representation of your “draft” work in progress. It has an inline preview for you to test. You can also share your work with others on your team quickly with a shareable URL:
Simply click that button to copy the URL to your clipboard, then paste it into any messaging service to share your draft with members of your team.
The embeddable web chat integration is included for you by default, and you can go to the integration catalog to add any other channels to your assistant, such as phone integration:
Congrats! You’ve successfully learned all you need to know to get started with the new Watson Assistant. From here, start building out the topics you really care about automating with your customers.
To continue your journey with the new Watson Assistant, check out Part II of our Getting Started Series.