AiHummer docs
v1.0.x
RU EN

Routing

v1.0.x · updated 2026-06-26

When a message arrives, two routing decisions are made: which agent should handle it, and which model class should run the turn. The first is resolved by the router; the second by model-tier routing. Both happen before the orchestrator drives the function-calling loop.

Resolving the target agent

The router resolves the target agent in a defined order:

  1. Bindings — an explicit mapping that ties a channel, conversation or context to a specific agent. This is the primary, deterministic route.
  2. @-mentions — in a group conversation, mentioning an agent by name routes the message to that agent. This is how group routing works.
  3. Fallback — if nothing else matches, the message goes to a configured fallback agent so a conversation is never left unanswered.
inbound ─▶ binding? ─▶ @-mention? ─▶ fallback ─▶ agent

[!NOTE] @-mentions are what make multi-agent group chats usable: several agents can share a conversation, and each message is delivered to the one that was named.

Bindings

A binding is the deterministic backbone of routing. By tying an inbound context (for example a specific channel or conversation) to an agent, you get predictable behaviour: the same source always reaches the same agent unless an @-mention overrides it for a single message.

[!TIP] Set a binding for every production channel so routing never depends on the fallback. Reserve the fallback for genuinely unmatched traffic.

Model-tier routing

Independently of which agent is chosen, AiHummer can route a turn to a model tier based on how demanding it is:

TierIntended for
simpleShort, routine turns
standardEveryday work
complexHard, multi-step reasoning

Model-tier routing is configured under the “LLM” router settings. It lets you serve cheap, fast models for simple turns and reserve a stronger model for complex ones, controlling cost without hand-tuning every agent.

[!NOTE] Model-tier routing is separate from an agent’s own per-agent model. The per-agent model is the agent’s default; tier routing can select a model class for a given turn. See Agents & personas.

Where to next