You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/LUIS/luis-how-to-model-intent-pattern.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,27 @@ After a LUIS app receives endpoint utterances, use a [pattern](luis-concept-patt
22
22
> [!CAUTION]
23
23
> Patterns only include machine-learned entity parents, not subcomponents.
24
24
25
-
## Add template utterance to create pattern
25
+
## Adding example utterances as pattern
26
+
27
+
If you want to add a pattern for an entity, the _easiest_ way is to create the pattern from the Intent details page. This ensures your syntax matches the example utterance.
28
+
29
+
1. In the [preview LUIS portal](https://preview.luis.ai), select the app from the **My Apps** page.
30
+
1. On the **Intents** list page, select the intent name of the example utterance you want to create a template utterance from.
31
+
1. On the Intent details page, select the row for the example utterance you want to use as the template utterance, then select **+ Add as pattern** from the context toolbar.
32
+
33
+
> [!div class="mx-imgBorder"]
34
+
> 
35
+
36
+
1. In the pop-up box, select **Done** on the **Confirm patterns** page. You don't need to define the entities' subcomponents, constraints, or descriptors. You only need to list the machine-learned entity.
37
+
38
+
> [!div class="mx-imgBorder"]
39
+
> 
40
+
41
+
1. If you need to edit the template, such as selecting text as optional, with the `[]` (square) brackets, you need to make this edit form the **Patterns** page.
42
+
43
+
1. In the navigation bar, select **Train** to train the app with the new pattern.
44
+
45
+
## Add template utterance using correct syntax
26
46
27
47
1. Open your app by selecting its name on **My Apps** page, and then select **Patterns** in the left panel, under **Improve app performance**.
0 commit comments