This is a tutorial series that's cumulative in nature. To start from the beginning, start here.
Consumers often request an action or information from a brand. These consumer requests can be grouped under named categories that we call intents. Some examples of common intents are:
- Check order status: “What is the status of my lawn mower order?”
- Request product price: “How much does the iPhone 11 cost?”
- Make a payment: “Can I make a payment today for the total amount?”
A domain is a collection of related intents. Each domain has a specified NLU provider and language.
Step 7: Extend a prebuilt domain
In this step, you add a prebuilt domain and extend it by adding two intents to support affirmative (yes, yeah, etc.) and negative (no, nope, etc.) responses from the consumer. You’ll use these intents later in the tutorial.
-
Open the menu on the left side of the page, and select Automate > Intent Manager.
- In the menu bar in the upper-left corner, select Build.
- Click Add Domain in the upper-right corner.
- Select the Prebuilt domains tab.
-
Move the cursor over the Cross-vertical domain, and click the Add button that appears.
- Click Add Intent in the lower-left corner.
- For Intent name, enter “Yes response.”
- Under Training, select Bulk Edit.
-
Copy and paste the following values in:
Absolutely
Absolutely positively
Affirmative
By all means
Definitely
I agree
Indeed
Most certainly
Naturally
No doubt
No problem
Of course
Positively
Sure
Sure thing
Without a doubt
Without question
Yeah
Yes
You bet
Yup - Click Save.
-
Use the same process to create an intent named “No response” with the following training phrases:
Absolutely not
Definitely not
I can't comply
I'm afraid not
I'm sorry, but that's not possible
Nah
Negative
No
No chance
No siree
No way
No, not this time
No, thank you
Nope
Not at all
Not in a million years
Not on your life
Regrettably, no
Sorry, but no
That's a negativeNow, train the domain to create a model version that you can test.
- Click Train & Create Version in the upper-right corner.
-
In the confirmation dialog, click Train and create version.
Training takes just a few minutes to complete. When done, the status changes to “Trained.”
- Select Intents on the menu bar.
-
In Test User Input on the right, enter a few affirmative and negative responses to verify the new intents are being matched correctly. Be sure the Model version is 2.
With the consumer experience fully tested, you can now safely “release” the domain, so it’s used in Production and in other Conversational Cloud applications.
- Select Versions on the menu bar.
-
In the row for the model version that you just created, under Actions, click the Release icon.
-
In the confirmation dialog, click Release.
Version 2 is now released and “live.”
Step 8: Create a domain from scratch
In this lesson, you create a domain from scratch using a resource file in the ZIP file you downloaded earlier in the tutorial.
- Still in Intent Manager, select Dashboard on the menu.
- In the upper-right corner of the domain list, click Add a domain.
- For Domain Name, enter “Pharmacy.”
-
Scroll down, and under Create content, select “Import.” Then use the controls provided to import the intents from the CSV file that’s in the ZIP file that you downloaded at the start of the tutorial.
- Click Add to create the domain.
Step 9: Create and test a new intent
- Click Add Intent in the lower-left corner.
- For Intent Name, enter “Refill prescription.”
-
Under Training, click Generate.
-
Specify the following:
- Topic: Any request or intention to refill a prescription. This is most commonly due to low stock on the part of the consumer.
- Guidance: Request is urgent due to the importance of the medication. Consumer is polite. Stay focused on the request to refill the prescription. Don't ask other questions.
- Example training phrase: I want to refill my prescription because I'm running low.
- Example training phrase: I need to refill my prescription because I'm completely out.
- Example training phrase: Can I refill my prescription?
- Click Generate.
- Click Add to intent to add the generated training phrases to the “Refill prescription” intent.
- In the upper-right corner, click Train & Create Version.
-
In the confirmation window, click Train and create version.
Wait for the training to finish, and then proceed with testing the new intent.
- Click Intents on the menu bar.
-
In Test User Input on the right, enter a phrase, such as, “I want to refill my prescription.”
This should yield a good match to the “Refill prescription” intent.
-
Test with a few more consumer utterances to ensure the “Refill prescription” intent is working as you expect.
- Release version 1 of this new domain. (Tip: Use the Versions page.)
What's next?
Continue on to the next tutorial in the series.