A router project takes an incoming message and decides which of your other Tensic projects should answer it. You design the decision as a visual flow in the Router IDE: nodes for the steps, and block-based logic for the conditions. Use a router when one entry point (a widget, an app, an API client) must serve several specialised projects, for example a support agent and a knowledge-base project. A router can be called through the API like any other project; the response includes a trace of the nodes that ran.
What a router project does
- A router is one of the project types in Tensic, next to agent, RAG and inference projects. It needs no model of its own: it calls other projects and returns their answer.
- The flow is drawn left to right: an Input node (shown as User message on the canvas) receives the user's message, logic nodes (Condition, Classify) decide the path, Call project nodes pass the message to other projects, and an Output node returns the answer.
- Conditions are built with visual logic blocks (in the style of Scratch/Blockly) instead of typed expressions, so the flow can be read and changed without writing code.
- Tensic converts the finished flow into an internal workflow language and runs it with its own interpreter. The generated code is not shown to you; you edit the flow only through the IDE.
- Routers can chain several projects, for example: translate the input, check the customer's sentiment, then hand unhappy customers to a support project.
- A router flow may loop back on itself by design. Build any loop with a clear exit condition.
Create a router project
- In the sidebar, open Projects, click New Project and choose Start from Scratch (the template picker is shown first).
- Enter a Project name and choose the Team the project belongs to.
- Under Type (shown once a name and team are set), select Router ("Build the logic visually. No model needed.").
- Click Create project.
The project type is fixed once the project is created; a project cannot be converted to another type later. The router project gets the same tabs as other projects (Overview, Configuration, Integrations, Orchestration, Routines, Access, Guards, Budget & limits, Logging, Audit log) and the same header buttons (Logs, Evals, API, IDE, Playground, and a More menu with Clone, Save as template, Analytics, Comments and Delete), so budgets, limits, access and logging work the same way.
Build a router flow in the Router IDE
- Open the router project and click IDE in the project header. The Router IDE opens with an Input node and an Output node.
- From the Add node panel on the left, add the nodes the flow needs. Adding a node that has settings opens its editor next to the canvas:
- Condition – splits the flow into a True and a False branch.
- Classify – picks one of your own labels for the message and sends the flow down the branch with that label. In the editor, choose an Inference project (its classifier model does the work, and its budget, rate limit and logs apply to every run), add one label per branch with Add label, and optionally pick a Model (default: Project default). The team must have access to a classifier model.
- Call project – sends the message to another Tensic project and passes on its answer. In the editor, select the target in Project to call.
- Set variable – stores a value for later nodes: enter a Variable name and build the value with blocks.
- Logic – a free logic block.
- Output – the answer returned to the caller.
- Connect the nodes by dragging from one node's output handle to the next node. Connect each branch of a Condition to its own Call project node, and connect those to Output.
- Use Tidy layout (bottom of the node panel) to rearrange the canvas, and Undo / Redo in the header to step through edits.
- Click Save flow. The header shows Unsaved changes until you save. Saving checks the flow: for example it is refused ("Invalid router flow: Node '…' (call_project): no project with id … exists in this router's team that you can use.") if a Call project node points to a project that is not in the router's team. A Classify node without an inference project is flagged in a Worth a look banner ("Classify node "classify_1" names no inference project, so it fails when it runs."). Moving a project to another team is refused while a router Call project or Classify step links it to projects of its current team (
GET /projects/{id}/move-targetslists these asblocking_links).
Use Export to download the flow as a JSON file and Import to load one, for example to copy a router between projects or environments. Back to project returns to the project page.
Define a router condition with logic blocks
Click a Condition node to open its block editor. The editor has one slot, Take the True branch when, and a block palette with the categories tensic.ai, Logic, Math, Text, Lists and Variables.
- Drag the blocks for your test into the Take the True branch when slot. For example, to route billing questions:
- From tensic.ai, take Get Input (the user's message).
- From Logic, take the comparison block (it defaults to =).
- From Text, take the text block and type
billing. - Assemble them as Get Input = "billing".
- Alternatively, click Generate in the condition editor and describe the test in plain English. This needs the system LLM described in the next section.
- Click Back to flow to return to the canvas, then Save flow.
If the test evaluates to empty, false, 0 or no, the flow takes the False branch. A condition with an empty slot therefore always takes False; the IDE warns about this with a Worth a look banner ("Condition … has an empty test, so it always takes the False output").
In the same block palette, the tensic.ai category also has Classify and Log blocks, Loops is available in Set variable editors, and Variables is for variable blocks.
Generate a router flow from a description
- In the Router IDE, click Generate with AI.
- In Generate workspace with AI, choose:
- Start over – build a new flow from the description; the current flow is replaced.
- Add to it – keep what is on the canvas and add to it; existing blocks are left alone. The dialog opens in this mode when the canvas already holds a flow, and its preview then also shows how many nodes were added and removed.
- Describe the routing in plain English, for example:
if user input is equal to "billing" call project "billing_agent" otherwise call project "support_agent". - Click Generate. The platform's system LLM builds a starter flow. A Generated router preview opens with the node count, the projects it calls and a read-only diagram of the nodes, condition blocks and connections.
- Click Use this to load the flow into the canvas, Try again to generate another version, or Cancel to discard it.
- Review each node and condition, adjust if needed, and click Save flow.
Use exact project names in the description so the generated Call project nodes point to the right projects. Generated flows are validated before they are shown.
Test a router flow in the Router IDE
- Save the flow first. Test runs use the saved flow, not unsaved edits.
- Type a message in Send a test message through the flow… at the top of the IDE.
- Click Run.
- Read the result:
- Answer shows what the router returns.
- A row of chips shows each node that ran with its duration, named after the node: for example
User message,condition, the name of the called project (billing_agent) andoutput. The condition editor also shows its result (trueorfalse) on the node. - On the canvas, the path that was taken is highlighted, each node shows its output, and branches that were not taken are dimmed.
- Send different messages to check that every branch reaches the intended project. Click the reset icon next to Run to clear the result. If you edit the flow after a run, the IDE reminds you: "The run uses the saved flow — save to test your latest changes."
Call a router through the API
A router answers on the same endpoints as other projects, for example POST /projects/{id}/chat with a body such as {"question": "hello"} and a project API key (the older /question endpoint still works but is deprecated and forwards to /chat). The response has the usual answer plus:
nodes– the flow's node events in order: anode_start(with the node'sid,typeandlabel) and anode_donefor each node (withstatus,duration_msand a shortpreviewof its output). Nodes on branches that were not taken are reported asskipped.flow_errors– what went wrong in the flow, when anything did.status– set only when the turn did not complete normally:error,budget(a cost cap stopped it) orguard_block.warning– something the caller should know, for example an attachment that was skipped.
The called projects answer with their own models; the router itself uses no tokens.
Monitor router calls in Logs, Analytics and Observability
Every router call is logged like any other project call, including the calls the router makes to other projects and the models they used.
- Open the router project and click Logs to see its requests.
- Open the called project's Logs to see how it handled the forwarded message. The router's entry and the called project's entry share the same trace and conversation ID, so you can match them.
- Choose More → Analytics in the project header for requests, errors, latency and cost over time, with Overview, Usage and Activity tabs and Export requests (CSV).
- Use Observability in the sidebar for the platform-wide view of calls.
Use these logs to check which branch a message took and which model answered it.
Common questions
Does a router project need its own model?
No. A router only decides where a message goes and calls other projects; those projects use their own models. Generating a flow with Generate with AI uses the platform's system LLM.
Do I have to write code to build a router?
No. Flows are built from nodes and visual logic blocks, or generated from a plain-English description. Tensic runs the flow with its own interpreter.
Why does my router always go to the False branch?
The condition's Take the True branch when slot is probably empty, or the test never evaluates to true. Open the condition, check the blocks, save, and run a test message.
Why is Generate with AI greyed out?
It needs a system LLM. A system LLM must be selected in Settings → General (an admin can change it).
Why doesn't my test run reflect my latest change?
Test runs use the saved flow. Click Save flow before clicking Run.
Can a router flow loop?
Yes, loops are allowed by design. Give every loop a clear exit condition.
Can I move a router to another team?
Projects can be moved to another team of their owner through the API (POST /projects/{id}/move; GET /projects/{id}/move-targets lists the possible moves). The move is refused while the router is linked to other projects of its current team through Call project or Classify steps, or when the new team lacks a model the project uses.
Can I copy a router flow to another project?
Yes. Use Export in the Router IDE, then Import in the other router project.
Where do I see which project answered a message?
In the router project's Logs, in Analytics and in Observability. In the IDE, a test run highlights the path taken, and API responses list every node in nodes.