Back to NLP TopicsBest practices for intent naming, ML training, patterns, synonyms, and concepts. Follow these guidelines before building or training your assistant.
Negative patterns prevent false intent matches.Example:was trying to * — prevents triggering Book a Flight when the user says “I was trying to book a flight when I faced an issue.”To enable: Natural Language > NLU Config > Ranking and Resolver Engine > Negative Patterns.
Concepts group related terms under a single label, usable in patterns.Naming rules:
Must start with ~.
Allowed characters: a-z, A-Z, 0-9, _.
At least one letter after ~.
Can’t start or end with _.
Case-insensitive.
Valid:~my_concept, ~Sample, ~test123Invalid:~_concept, ~concept_, ~a-concept, ~123testUse concepts in patterns: buy ~fruit matches buy orange, buy banana, etc.System concepts: Pre-built by the platform (for example, ~emohello, ~yes, ~no). Add the ~disable_help concept to disable the default help response.
Standard responses are template messages for common conversational situations: ambiguity resolution, authorization requests, confirmations, interruptions.Customize them at Natural Language > Standard Responses. Responses support:
Plain text or JavaScript for dynamic content.
Contextual tags replaced at runtime (for example, <list-of-tasks>).
The KG model adds domain intelligence on top of ML and FM. Assign FAQs to nodes based on key domain terms to improve disambiguation.Traits in KG: Use when FAQs are mutually exclusive in nature. For example, “booking process” vs. “booking issues” — creating separate traits ensures the engine doesn’t suggest booking process FAQs for issue-related queries.Use traits judiciously — overuse causes false negatives. Ensure:
Good trait coverage across utterances.
Traits are mutually exclusive where intended.
All relevant FAQs are tagged to the correct trait.