03/Flow Routing

Content Router

Routes by message meaning using an LLM classifier.


The content router asks a classifier LLM ("which category is this?") about the last user message and follows the edge matching the returned category. Categories are defined at group level (name + description).

When to use

When you want flexible, language-aware topic routing and the cost/latency of one extra LLM call is acceptable.

codechat
Entry
routerContentclassifier LLM
Code model
Chat model
flow_config (excerpt)
router: { id: "r1", type: "router", router: "content", router_model: "qwen2.5:7b" }
edges:
  - from: r1  to: code-model  when: { category: "code" }
  - from: r1  to: chat-model  when: { category: "chat" }
If no category matches, the first outgoing edge (default) is used. The classifier model is set per-node or per-group.