flight delay and emergency. The emergency trait routes the conversation to a human agent without requiring a direct intent match.
What Traits Enable
- Indirect entity extraction — infer entity values from context (e.g., “seat in front with extra legroom” implies First Class).
- Rule-based intent recognition — trait rule matches are treated as definitive matches.
- Keyword/phrase identification — match traits to specific words and synonyms.
- Inference from sentence context — detect traits from overall meaning, not just keywords.
Trait Definition
Go to Natural Language > Training > Traits.Trait Type
A Trait Type is a collection of related traits (e.g.,Flight Fare containing Economy, Business, First Class).
| Option | Description |
|---|---|
| ML-Based | Trained with words, phrases, or utterances. One trait per type is detected. |
| Pattern-Based | Trained with patterns. Multiple traits can be detected; ordering determines priority. |
- Standard — n-gram model (configurable up to 5-gram).
- Few-shot Model — embedding-based. Options: BGE M3, MPNet, LaBSE.
- n-gram: set max sequence length (1–5; default 1).
- skip-gram: set sequence length (2–4) and max skip distance (1–3).
- Trait names must be unique within a Trait Type.
- Traits with the same name can exist across multiple types, but are difficult to distinguish in rules/detection results.
- Only spaces and underscores are allowed as special characters in trait names.
- For multilingual assistants, add language-specific traits.
- When a trait name is modified, manually update all rules that reference it — the platform does not do this automatically.
Trait Association Rules
Dialog Execution
Link traits to intents using rules. A trait rule match is treated as a definitive intent match. Add rules from:- Traits section — click Add New Rule.
- Intent Node — NLP Properties > Rules section.
- Natural Language > Training > Intents — click the Rules tab for an intent.
Knowledge Graph Intents
Associate traits with KG terms:- Go to Knowledge AI > FAQs > Manage KG.
- Click the Settings (gear icon) on a node.
- Assign the trait. One trait per node.
Trait Detection
- One trait per Trait Type is detected (for ML-based types).
- Multiple traits can be detected for pattern-based types.
- Detected traits are added to the context object:
context.traits(array of detected trait names).
context.traits in:
- Intent identification rules.
- Dialog transition conditions (
containsoperator). - Entity population logic.
- App definitions.
Dialog Transition Using Traits
Usecontext.traits in Connection Rules (under dialog Connection > Properties):
Use Case Example
Scenario: Book a flight based on cost preference.- Create Trait Type
Flight Farewith traitEconomytrained on utterances like “low cost”, “budget”, “cheapest”. - Add a rule for the
Book Flightintent: trigger whenEconomytrait is detected. - Add connection conditions in the dialog: branch based on
context.traits contains "economy".
Book Flight intent and routes to the economy booking flow.