Feedback Router Agent
The Feedback Router agent (feedback_router) routes a workflow based on a user's feedback sentiment — positive or negative. It is a deterministic branch: it reads the sentiment passed into the run, emits it as a routing value, and lets the workflow's edges take it from there. It makes no LLM call, so it runs instantly and costs nothing in tokens.
In the AI Employee (AIE) builder, the Feedback Router Agent appears in the Planning & Resources group of the agent library.
When to use it
Use a Feedback Router when a workflow re-runs in response to a user's thumbs-up / thumbs-down feedback and you want to take a different path depending on which it was:
- On a negative branch, regenerate an answer, escalate to a human, or try a different approach.
- On a positive branch, confirm and finish, or record the success.
The Feedback Router only runs on feedback runs — runs triggered by a user reacting to a prior result. On a regular (non-feedback) run, the engine skips the Feedback Router node entirely, so it never blocks a normal pass through the workflow.
How it works
The Feedback Router is resolved locally by the workflow engine — it never dispatches to the agent service, so there is no system prompt, no model, and no version pin.
- The engine reads the run's
sentimentinput. - It validates that the value is exactly
"positive"or"negative". Any other value (including empty) fails the node with a validation error, rather than silently stalling. - It emits the output
{ "feedback": "<sentiment>" }. - The workflow's outgoing edges match on that
feedbackvalue to choose the next node.
Because it is purely deterministic, the Feedback Router has no Instructions, no LLM configuration, no knowledge bases, no Tools, and no HITL — it exposes no advanced settings at all.
Configuration
There is nothing to configure on the node itself. The routing happens on the edges leaving the node: you create one edge for the positive path and one for the negative path, each conditioned on the node's feedback output.
In the builder, the Feedback Router node exposes two static route ports — positive and negative — that you connect to the downstream branches.
Inputs and output
Input — the run supplies sentiment, which must be one of two values:
{ "sentiment": "negative" }
Output — the node echoes the sentiment as feedback:
{ "feedback": "negative" }
| Field | Allowed values | Notes |
|---|---|---|
sentiment (input) | positive, negative | Required. Any other value fails the node with a validation error. |
feedback (output) | positive, negative | Echoes the input sentiment. Edge conditions match against this field. |
Example
A support workflow that reacts to user feedback on its answer:
- A Search and Respond node answers the user's question.
- The user reacts with a thumbs-up or thumbs-down, triggering a feedback run.
- A Feedback Router node reads the
sentimentand emitsfeedback. - The
negativeedge routes to a node that escalates to a human agent; thepositiveedge routes to a confirmation step.
What's next
- Agent Reference overview — the type model, catalog, and shared execution engine.
- Intent Classification Agent — the LLM-based alternative when you need to route on something richer than a thumbs reaction.
- Knowledge Search Agent — retrieve and answer from your knowledge base.