Example: Intent router
A self-contained intent router workflow: classify the user message, then either run semantic search over the knowledge base or answer with a general Q&A agent.
Flow
input (user question)
β
βΌ
intent-agent βββΊ { intent: "search" | "general" }
β
ββββββ΄βββββ
βΌ βΌ
search general-agent
branch branchPrerequisites
DNotifier app with AI enabled
HTTP-connected
DNotifierinstanceOptional: documents indexed with
metadata: { source: "help-center" }forfilterbySource
Language guides
Full copy-paste examples (agents + workflow + runner):
Language
Guide
JavaScript / TypeScript
Dart / Flutter
Expected results
Input
Branch
Behavior
"How do refunds work?"
search
ctx.search with knowledge base
"What's your favorite color?"
general
General agent sendAI
Observability
Set observability: true to see intent classification, search, and Q&A steps in the dashboard. run.executionId correlates with the dashboard run.
Next steps
Last updated