Key Benefits
- Enhanced Accuracy in Intent detection. By setting priorities, you can guide the system to focus on either parent or child Intents as desired.
- Flexible customization. Adjust mapping behavior to suit specific use cases, ensuring the right Intent is triggered.
Prerequisites
Before using this feature, ensure the following:- A Flow is created or available in your Project.
- Parent and child Intents are defined in NLU > Intents.
Restrictions
- This feature works best with full-sentence Intent examples. Single words or short phrases may lead to inaccurate mapping results.
How to Use
To set a priority, follow these steps:- Open an Intent in NLU > Intents.
- In the Intent Mapping Priority field, select one of the following options:
- Prioritise This Intent — set a priority for the current parent Intent. By default, this option is set up.
- Prioritise Child Intents — set a priority for child Intents.
- Save changes and click Build model. Build a model every time you want to apply your changes to the NLU model.
Examples
Assume that you have the following Intent data:Intent | Intent name | Sentences |
---|---|---|
Parent | Order Pizza | I’d like to order a pizza. Can I have a pizza delivered? Can I get a pizza please? I need to purchase a pizza. I want to buy a pizza. |
Child 1 | Order Ham Pizza | I want to get a ham pizza. Can I have a ham pizza please? I need a ham pizza. I would like to order a ham pizza. I am in the mood of for a ham pizza. Can I order a ham pizza? I’d like to have a ham pizza. |
Child 2 | Order Cheese Pizza | I want to get a cheese pizza. Can I have a cheese pizza please? I need a cheese pizza. I would like to order a cheese pizza. I am in the mood of for a cheese pizza. Can I order a cheese pizza? I’d like to have a cheese pizza. |
Prioritise This Intent
Prioritise This Intent
Set up Prioritise This Intent for the parent Intent.User input:
I want to order a bacon pizza
Result: intent: Order Pizza, intent score: 0.33
JSON example of object stored in the nlu.intentMapperResults.scores
array:Prioritise Child Intents
Prioritise Child Intents
Set up Prioritise Child Intents for the parent Intent.User input:
I want to order a bacon pizza
Result: intent: Order Ham Pizza, intent score: 0.63
JSON example of object stored in the nlu.intentMapperResults.scores
array: