Import intents from a CSV file
- Open the intents.csv file and review the contents.
Each line contains an example utterance (input) followed by the intent name (#tellmeabout). This training data defines only a single intent.
- Click Import from the main page of the Watson Conversation tooling.
- Drag the intents.csv file from your local file system onto the “Choose a file” box, and then click Import.
- Expand the new intent named #tellmeabout to see the examples.
- Click the chat icon in the upper right corner of the window to test the new intent.
Notice that Watson is now training on your recent changes.
- Enter some text about Yosemite in the chat box, such as
Tell me about Yosemite National Park.
If you enter the text too soon, Watson cannot identify the new intent because it is still training.
Training can take a few seconds to several minutes, depending on the size of your data.
- After Watson finishes training, enter the text again in the chat box. Watson should now be able to identify your intent.
- To further test Watson, enter text that is not in your training data, such as
tell me about arches. Note that the training data uses the sentence “I’m interested in facts about Arches.”
Watson correctly identifies the intent even though the utterance (input) does not exactly match the training data.