Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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    branch

Run with transport: "http". Index help-center documents before testing the search branch.

Prerequisites

  1. DNotifier app with AI enabled

  2. HTTP-connected DNotifier instance

  3. Optional: documents indexed with metadata: { source: "help-center" } for filterbySource

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