How does intent recognition leverage natural language processing to enhance Einstein Bot conversational flows?
Answer
Basics: An intent is what the customer wants (for example "Track my order"). You give example phrases (utterances) for each intent; the model learns to classify new phrases into the closest intent and returns a confidence score.
How it works:
- In Bot Builder, create an Intent Set and add intents; each intent is mapped to a dialog.
- Add a sufficient, varied set of utterances per intent (commonly cited minimum around 20 with more being better; verify current guidance).
- Train the model (Model Management) and review training results and confusion between intents.
- At runtime, the incoming message is classified; if confidence exceeds the threshold, the bot jumps to that dialog; otherwise it goes to the Confused/fallback dialog.
- Entities (for example order numbers, dates) can be extracted and used as variables.
Advanced / deep dive: Quality comes from data design: mutually distinct intents, balanced utterance counts, real customer phrasing taken from case subjects and chat transcripts, and negative/out-of-scope examples through a fallback intent. Retrain after each content change; the model is tied to the bot version. Multilingual bots need language-specific utterances and models. Review misrouted conversations regularly and add them as utterances. Compared with LLM-based agents (Agentforce), classic intent models are deterministic and predictable, but need curation; LLM agents generalize better but need guardrails and topic/action design. Supported languages and features vary by release, so verify.
Code / config example:
Intent: Track_Order -> Dialog: Order Status
Utterances: "where is my package", "order hasn't arrived", "track my order", ...
Intent: Return_Item -> Dialog: Returns
Utterances: "send this back", "how do I return my purchase", ...
Fallback: Confused dialog -> offer menu or Transfer to Agent after 2 misses