Documentation about IBM Watson® Assistant for IBM Cloud Pak® for Data has moved. For the most up-to-date version, see Adding dialog.
Adding a skill to your assistant
Customize your assistant by adding to it the skills it needs to satisfy your customers' goals.
You can create the following types of skills:
-
Dialog skill: Uses Watson natural language processing and machine learning technologies to understand user questions and requests, and respond to them with answers that are authored by you.
-
Search skill: For a given user query, uses the IBM Watson® Discovery service to search a data source of your self-service content and return an answer.
Typically, you create a skill of each type first. Then, as you build a dialog for the dialog skill, you decide when to initiate the search skill. For some questions or requests, a hardcoded or programmatically-derived response (that is defined in the dialog skill) is sufficient. For others, you might want to provide a more robust response by returning a full passage of related information (that is extracted from an external data source by using the search skill).
Dialog skill
A dialog skill contains the training data and logic that enables an assistant to help your customers. It contains the following types of artifacts:
-
Intents: An intent represents the purpose of a user's input, such as a question about business locations or a bill payment. You define an intent for each type of user request you want your application to support. In the tool, the name of an intent is always prefixed with the
#
character. To train the dialog skill to recognize your intents, you supply lots of examples of user input and indicate which intents they map to.A content catalog is provided that contains prebuilt common intents you can add to your application rather than building your own. For example, most applications require a greeting intent that starts a dialog with the user. You can add the General content catalog to add an intent that greets the user and does other useful things, like end the conversation.
-
Dialog: A dialog is a branching conversation flow that defines how your application responds when it recognizes the defined intents and entities. You use the dialog editor in the tool to create conversations with users, providing responses based on the intents and entities that you recognize in their input.
To enable your dialog skill to handle more nuanced questions, define entities and reference them from your dialog.
-
Entities; An entity represents a term or object that is relevant to your intents and that provides a specific context for an intent. For example, an entity might represent a city where the user wants to find a business location, or the amount of a bill payment. In the tool, the name of an entity is always prefixed with the
@
character.You can train the skill to recognize your entities by providing entity term values and synonyms, entity patterns, or by identifying the context in which an entity is typically used in a sentence. To fine tune your dialog, go back and add nodes that check for entity mentions in user input in addition to intents.
As you add information, the skill uses this unique data to build a machine learning model that can recognize these and similar user inputs. Each time you add or change the training data, the training process is triggered to ensure that the underlying model stays up-to-date as your customer needs and the topics they want to discuss change.
For help creating a dialog skill, see Creating a dialog skill.
Search skill
When Watson Assistant doesn't have an explicit solution to a problem, it routes the user question to a search skill to find an answer from across your disparate sources of self-service content. The search skill interacts with the IBM Watson® Discovery service to extract this information from a configured data collection.
If you already have Discovery for IBM Cloud Pak for Data installed and an instance provisioned, you can mine your existing data collections for source material that you can share with customers to address their questions.
The following diagram illustrates how user input is processed when both a dialog skill and a search skill are added to an assistant. Any questions that the dialog is not designed to answer are sent to the search skill, which finds a relevant response from a Discovery data collection.
For help creating a search skill, see Creating a search skill.
Create the skill
You can add one skill of each skill type to an assistant.
Skill limits
Skills per service instance |
---|
50 |
Skill versions do not count toward the skill limit.
Deleting a skill
You can delete any skill that you can access, unless it is being used by an assistant. If it is in use, you must remove it from the assistant that is using it before you can delete it.
Be sure to check with anyone else who might be using the skill before you delete it.
To delete a skill, complete the following steps:
-
Find out whether the skill is being used by any assistants. From the Skills page, find the tile for the skill that you want to delete. The Assistants field lists the assistants that currently use the skill.
-
If the skill you want to delete is associated with an assistant, then remove it from the assistant by completing the following steps:
- Check with the owner of the assistant that is using the skill before you remove the skill from it.
- Open the Assistants page, and then click to open the assistant tile.
- Find the tile for the skill that you want to delete. Click the icon, and then choose Remove.
- Repeat the previous steps for any other assistants that use the skill.
- Return to the Skills page, and then find the tile for the skill that you want to delete.
-
Click the icon, and then choose Delete. Confirm the deletion.