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

Build Your Own Auto Router

An auto router sends each request to one of your models, depending on how demanding the request is. Simple questions go to a fast and inexpensive model, demanding ones to a stronger model.

You need the Admin role to build auto routers. Your users then find the auto router in the model selection, like any other model.

How it works

Every request is first classified into one of four tiers. The auto router then calls the model you picked for that tier.

Tier
Typical requests

Simple

Greetings, short questions, simple rewording

Medium

Everyday tasks such as summaries and emails

Complex

Code, longer analyses, multi step tasks

Reasoning

Proofs, planning and tasks that need step by step thinking

The Default model answers when a request cannot be classified.

Each request is billed at the model that answered it, so a simple request costs what the simple model costs.

Create an auto router

To create an auto router:

  1. In the Admin Panel, go to AI Models and scroll to Auto routers.

  2. Click New auto router.

  3. Enter a Name. Use lowercase letters, digits and hyphens. The name becomes part of the model name your apps call, and cannot be changed later.

  4. Optionally add a Description.

  5. Pick a model for each tier: Simple, Medium, Complex and Reasoning.

  6. Pick a Default model.

  7. Choose a Classifier:

    • Heuristic decides instantly and makes no extra call.

    • Language model asks a model which tier the request needs. Pick the Classifier model.

  8. Click Save.

To build an auto router for agents, tick Only show agent-compatible models before you pick the models.

Rules and warnings

When you save, Blockbrain checks that:

  • every model is a chat model that is switched on for your organization

  • no tier sends data to a wider region than the default model

The editor also shows warnings before you save. They do not stop you from saving:

  • Smallest context window: longer requests fail when they are routed to that model, because the classifier does not look at length.

  • A capability is not reported for a model, for example PDF input or web search. A request that needs it fails when it is routed there.

  • Agent compatible tells you whether agents are offered this auto router. It is only the case when every tier and the default model may drive an agent.

Use, edit and delete

After saving, the auto router appears in the model selection of chats, bots and agents, with the Blockbrain logo.

  • To change the models, click Edit, change the tiers and click Save. The name stays the same.

  • To delete an auto router, click Delete. Apps that still call it get an error.

You can also call your auto router through the LLM API, by its model name. See LLM API.

Last updated