Skip to content

Definition

A workflow that classifies an input and directs it to a specialized followup task or prompt.

Key points

  • Enables separation of concerns and more specialized prompts per category.
  • Classification can be done by an LLM or a traditional classifier.
  • When to use: "complex tasks where there are distinct categories that are better handled separately," and where classification can be done accurately.

Why it matters for the exam

  • "Routing" is a named workflow pattern; recognize it as classify → specialized handler, enabling separation of concerns.

Common gotchas

  • Start simple; only add agentic complexity when it demonstrably improves outcomes — routing only helps if the categories are truly distinct and classifiable accurately.

See also

Sources