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:- You have a flow in your project.
- You’ve defined parent and child intents on the Intents tab in Advanced > NLU.
Restrictions
- This feature works best with full example sentences. Single words or short phrases may lead to inaccurate mapping results.
How to use
To set a priority, follow these steps:- In the navigation menu, go to Advanced > NLU, then on the Intents tab, open an intent.
- In the Intent Mapping Priority field, select one of the following options:
- Prioritise This Intent. Sets a priority for the current parent intent. By default, this option is selected.
- Prioritise Child Intents. Sets 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:
Consider various examples of how each option of the Intent Mapping Priority setting works.
Prioritise this intent
Prioritise this intent
Set up Prioritise This Intent for the parent intent.User input:
I want to order a bacon pizzaResult: intent: Order Pizza, intent score: 0.33JSON example of an object stored in the input.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 pizzaResult: intent: Order Ham Pizza, intent score: 0.63JSON example of the objects stored in the input.nlu.intentMapperResults.scores array: