Get started – Build

Getting started – Build

Use watsonx Assistant templates to build the foundation for your assistant

Overview

Build watsonx Assistant conversation content with templates

Use watsonx Assistant templates to build the foundation for your assistant

Building a basic action from scratch

Get an approachable introduction to the action editor within watsonx Assistant by building a basic action provides a unique response depending on one of two options selected

When it comes to building your assistant's conversation content in IBM watsonx Assistant, you can create your next action from scratch or by using one of the templates available in watsonx Assistant. In this tutorial, get an easy-to-follow guide to using watsonx Assistant templates as a means to build your assistant's foundation.

If this is your first time building an assistant in watsonx Assistant, following these steps gives you an understanding of how watsonx Assistant actions and steps work to deliver a conversation to your user. For now, try following these steps regardless of your assistant's use case to get a quick grasp of the build process.

Note that this tutorial is a part of a learning path for beginners. More in-depth information on building actions with templates can be found on the watsonx Assistant documentation pages.

To see the process, you can watch the following short video.

Prerequisites

To follow this tutorial, you need:

  • An IBM Cloud account
  • Access to any watsonx Assistant instance on a Lite, Plus Trial, Plus, or Enterprise plan
  • Access to any assistant
  • An understanding of the watsonx Assistant user interface

Estimated time

It should take you approximately 25 minutes to complete the tutorial.

Steps

  1. Navigate to the Actions page. There are no actions that are listed on the "Created by you" tab yet. Select Create action +.

    Actions page

  2. Select Quick start with templates on the next screen.

    Quick start selection

  3. You are presented with the template catalog. Here, you can select multiple templates to add to your assistant. Let's use one of these templates to understand how watsonx Assistant conversations come together.

    1. Filter the templates to Getting information (a).
    2. Select the Request contact information templates (b).
    3. Click Add templates on the window that appears (c).

      Getting the templates

  4. You return to your Actions page Created by you tab. Now, you see the template that you selected has been successfully added to your assistant. Click Preview to test the assistant's current functions before looking inside the action.

    Actions page

  5. Try saying "contact info please" when the Preview window opens. Interact with the assistant as if you were the customer asking for help.

    Notice how the Welcome message came from the default "Greet customer" action, and the response to asking about contact information came from the "Request contact information" action. You can click either to go directly to the step in the action where the response came from.

    Click into the Request contact information action when you are finished previewing the action. The Preview chat remains visible as you navigate your actions unless you minimize it.

    Contact information

  6. Within the Request contact information action, the template has populated the action's phrases with various ways that a customer might ask for contact information. Even though "contact info please" is not a listed phrase here, watsonx Assistant is able to still recognize the intended request by matching to the phrases it knows. Some of the provided user examples use varying tones of language to provide watsonx Assistant with real examples of the ways humans communicate.

    Click into Step 1 of the Conversation steps when you are finished reviewing the phrases that are provided by the template.

    Request contact info

  7. This is the first step in the action, representing the first response that your assistant checks the conditions of to consider responding to your customer's matched phrase with. Recognize the text within the "Assistant says" box as the response the assistant had when you asked "contact info please". This template's first step is taken without conditions, so the assistant always takes Step 1 when the "Request contact information" action begins. This step is currently set to always continue to the next step.

    Looking over to the list of conversation steps, there are three other steps that are listed after the first. A great way to learn how these steps connect to each other is to use debug mode's "go to step" feature within the Preview chat.

    To enable debug mode in the Preview chat, click the spider icon (a) on the Preview chat window's tray. Then, click any of the location pins (b) to enable "go to step." For this example, click the pin for "Greet customer."

  8. Watsonx Assistant automatically goes to the step where the assistant is pulling the response from, across any action. To better understand how the "Request contact information" action works, go through that flow and watch where the assistant pulls the response from. Try entering "contact info please" again.

    Entering contact info again

  9. Watsonx Assistant goes to the first step of the Request contact information action. Select North America to preview the logic between steps.

    Selecting North America

  10. Go to step loads Step 2. Within the "Assistant says" box, which contains the response that is seen in the preview window, an action variable is used to dynamically insert the location selected in Step 1.

    However, unlike Step 1, Step 2 is taken with conditions. The condition is that the value of the Step 1 action variable is North America. This is logical because the assistant should only provide the North America contact information to a customer based in North America. Additionally, unlike Step 1, Step 2 ends the action when complete because the customer has received the answer to their question and no further steps are required.

    Now that you understand the differences between Step 1 and Step 2, compare their step thumbnails in the Conversation steps list on the left side of the window. Notice how the thumbnail for Step 2 displays the condition "1 is North America," which is a shorthand representation of the conditions for Step 2. The thumbnails for Step 1 and Step 2 also differ in showing what happens at the end of the step.

    By understanding how to read the step thumbnails, infer that Steps 3 and 4 are similar to Step 2. Steps 2, 3, and 4 are taken, or not, depending on the response to Step 1.

    When you understand how to read the step thumbnails within actions, you can test your understanding by previewing the flow with "go to step" enabled again. Click the refresh icon within the Preview window to restart the conversation from the beginning.

    Restarting the conversation

  11. Enter "contact info please" once again, but select Asia this time.

    Entering Asia in contact info

  12. Watsonx Assistant jumps from Step 1 to Step 4 because Step 4 is the only step that is taken with the condition that the value of the Step 1 action variable is Asia.

    Step 4's condition checks for "Any" of the conditions to be true, setting the conditions to "or" rather than "and" (which can be done by setting "Any" to "All"). The template is set up for a scenario where the contact information for Asia, Africa, and Australia is the same.

    Template is set up

Summary

With an understanding of how to add actions to your assistant using templates, how the flow of steps within an action is decided, and how to use debug mode to troubleshoot that flow, you are now ready to create some actions of your own from scratch. Continue to the next tutorial in this guide to learn how to plan and build actions from scratch.

Any questions? Reach out to Alexander Dfouni.

Step-by-step guide: sign up  for an IBM Cloud Account, provision an instance, launch watsonx Assista

IBM watsonx Assistant is an AI-powered virtual agent that provides customers with fast, consistent, and accurate answers across any messaging platform, application, device, or channel. Using AI and natural language processing, watsonx Assistant learns from customer conversations, improving its ability to resolve issues the first time while removing the frustration of long wait times, tedious searches, and unhelpful chatbots.

With watsonx Assistant, you can build conversational interfaces into any application, device, or channel. Most virtual assistants try to mimic human interactions, but watsonx Assistant knows when to search for an answer from a knowledge base, when to ask for clarity, and when to direct someone to a human. Like a human personal assistant, the assistant you build helps your customers perform tasks and answer questions. To accomplish this, you define actions for the assistant.

This tutorial provides an easy-to-follow guide on how to sign up for an IBM Cloud Account, provision a watsonx Assistant instance, launch watsonx Assistant, and configure the settings for your first Assistant.

To see the process, you can watch the following short video.

Prerequisites

To follow this tutorial, you must have an IBM Cloud account.

Estimated time

It should take you approximately 10 minutes to complete the tutorial.

Steps

  1. Go to the IBM Cloud website, and click Create IBM Cloud account in the upper-right corner of the page.

    Create an IBM Cloud account

  2. Follow the prompts to create a new IBM Cloud account. This requires that you provide your email address, create a password, select a country and region, and enter your credit card information.

    Entering credentials

  3. If you've already purchased a subscription or have been provided a feature code, register using the code provided by selecting Register with a code.

    Verifying identity

  4. After your account is created and verified, log in to the IBM Cloud dashboard.

    Logging in to the dashboard

  5. From the dashboard, click Create resource in the upper-right corner of the page.

    Creating resource

  6. In the IBM Cloud Catalog section, type watsonx Assistant into the search bar and select watsonx Assistant from the search results.

    Watsonx Assistant

  7. On the Catalog page, select a location, select a pricing plan, and read and agree to the license agreements. Finally, click Create.

    Catalog

  8. Wait for the instance to be created, and then click Launch watsonx Assistant to open the watsonx Assistant user interface.

    Launching watsonx Assistant

  9. You can now begin using watsonx Assistant to build and manage your chatbot. Create your first assistant by giving it an internal nickname (not visible to customers) (a), then clicking Next (b).

    Nickname

  10. On the Personalize your assistant tab, answer each question to the best of your ability. Anything that you enter can be changed later, so don't worry about anything being permanent. On the final screen, click Create.

    Personalizing your assistant

Congratulations! Watsonx Assistant is ready for you to build your first assistant.

Building a basic action from scratch

Get an approachable introduction to the action editor within watsonx Assistant by building a basic action provides a unique response depending on one of two options selected

Now that you have knowledge on incorporating actions into your assistant by using templates, determining the sequence of steps in an action, and by using debug mode to fix any issues, you can begin developing your own actions. Remember, actions are considered the foundation of the build process in IBM watsonx Assistant. They represent the issues or tasks that your customers would like your assistant to address, and encompass the entire interaction between a customer and your assistant for a particular inquiry or request.

This tutorial details an approachable introduction to the action editor within watsonx Assistant by building a basic action that provides a unique response depending on one of two options selected.

If this is your first time building an assistant in watsonx Assistant, following these steps helps build familiarity with some of the most common behaviors that conversation builders repeat in watsonx Assistant when building virtual assistants. Try following these steps for your assistant's specific use case to result in a small action that you can build upon in the future.

Note that this tutorial is a part of a learning path for beginners. More in-depth information on building actions with templates can be found on the watsonx Assistant documentation pages.

To see the process, you can watch the following short video.

Prerequisites

To follow this tutorial, you need:

  • An IBM Cloud account
  • Access to any watsonx Assistant instance on a Lite, Plus Trial, Plus, or Enterprise plan
  • Access to any assistant
  • An understanding of the watsonx Assistant user interface
  • A basic understanding of how the sequence of steps is determined within an action through the condition builder (covered in Build watsonx Assistant conversation content with templates)

Estimated time

It should take you approximately 15 minutes to complete the tutorial.

Steps

  1. Within watsonx Assistant, navigate to the actions (a) Created by you tab (b), and click New action + (c).

    Created by you action

  2. Select Start from scratch to build an action for your own use case.

    Starting from scratch

  3. The New action window appears. Enter any phrase that your customer might say to start the interaction (a). Click Save (b).

    New action modal

    Note: At first, only a single instance of a typical user input is required to initiate the action. Additional examples of user input can be included later.

  4. The action editor appears with the first step selected. Enter a response for your assistant to reply with when the action starts (a). Click Save (b), then click Preview (c).

    Customer starts with phrase

  5. When your assistant is finished training, enter the phrase that the customer starts with into the preview chat to begin the action (a). The assistant responds with the response that you entered for the first step.

    Response

    This conversation logic is an example of a simple question and answer flow. This is the quickest way to train your assistant on new topic coverage. However, there are a few best practices to follow to ensure that your assistant provides a polished customer experience. The first of which is to practice adding clarification steps at the start of the action. Click New step + (b).

  6. After the new step appears on the left side of the screen, drag it above the first step. The blank Step 2 becomes Step 1, while Step 1 and its responses move to Step 2.

    Moving steps

  7. Within the Assistant says of the newly created Step 1, ask a clarifying question that helps the user to be better qualified for the response in Step 2 (a). Then, select Define customer response (b), and select Options (c).

    Clarifying question

  8. In the Edit response window, enter the options that your user can select from (a, b). Click Apply (c), then close the Edit response window (d).

    Edit response

  9. Back in the action editor, notice how Step 1 now has the options added. Let's help watsonx Assistant understand which step to go to when one of the options is selected. Click Step 2 (a) in the Conversation steps list because Step 2 has the appropriate response for one of the options. Then, update Step 2 to be taken with conditions (b, c). Next, ensure that the condition is set to the appropriate option from Step 1 (d). Finally, update the And then section to End the action (e). Now that Step 2 is set up for one of the response options from Step 1, add a new step for the other option (f).

    Conditions

  10. Drag the new step down to become Step 3 (a). Set Step 3 to be taken with conditions (b, c). Ensure that the condition is set to the other option from Step 1 (d). Then, enter an appropriate response for the other option within the Assistant says section (e). Finally, update the And then section to End the action (f).

    Creating Step 3

  11. Open and refresh (a) the Preview to test out your assistant's new action (b). Try out both options.

    Preview

    Tip: Try providing information about one of the options in the first prompt and watch watsonx Assistant skip to the right step without asking the clarifying question.

    Adding information

Summary

This example of creating an action without a template is only scratching the surface of the types of conversations that you can build by using actions. Aside from Options, there are many other types of customer responses available to explore. Within And then there are near-endless possibilities of where your assistant can be directed, from pointing to other actions or repeating previous steps, to finding an answer through Watson Discovery and NeuralSeek — or even connecting the user to a live agent.

There are many best practices to eventually consider when it comes to building efficient conversational flows, such as adding more user examples within the Customer starts with section and using session variables. As a beginner, continue learning about the rest of watsonx Assistant's functions before returning to begin honing a proficiency in actions.

Any questions? Reach out to Alexander Dfouni.