What Are Agent Chains?
Agent Chains let you connect multiple agents into a sequential workflow where the output of one agent feeds into the next. Instead of manually copying results between conversations, you define a chain once and run it as a single operation. A typical chain might look like:- Research Agent gathers information from attached documents
- Analysis Agent evaluates the findings and identifies key insights
- Report Agent produces a formatted summary for stakeholders
Creating a Chain
Add agents to the chain
Select agents in the order they should execute. Drag to reorder if needed. Each agent becomes a step in the pipeline.
Configure step handoffs
For each step, define what context passes forward. By default, the full output of the previous agent is included. You can add a handoff instruction to tell the next agent how to interpret the incoming context — for example, “The following is a list of extracted data points. Analyze them for trends.”
Set the initial input
Define what the chain expects as its starting input. This could be a user prompt, an attached file, or both.
Execution Flow
When you run a chain, RelayHub executes each step sequentially. The conversation view shows each agent’s contribution as a distinct section, so you can see exactly what each step produced.Chains run within a single conversation. You can scroll through the full execution history and see each agent’s reasoning, tool usage, and output in order.
Human-in-the-Loop Intervention
For chains that involve critical decisions, you can enable human-in-the-loop checkpoints at any step. When execution reaches a checkpoint, the chain pauses and waits for your review before continuing.- Pause
- Resume
- Cancel
When a checkpoint step completes, the chain pauses. You see the agent’s output and can review it before the next step begins. A notification bar appears with options to continue, edit, or cancel.
Monitoring Execution Status
While a chain is running, the conversation interface shows a progress indicator with:- Current step — which agent is actively processing
- Completed steps — green checkmarks for finished steps
- Pending steps — grayed-out steps that have not started yet
- Elapsed time — how long the chain has been running
Best Practices
- Keep chains focused. Three to five steps is the sweet spot. Chains with many steps accumulate context and can hit model token limits.
- Use specific handoff instructions. Telling the next agent what to expect produces better results than passing raw output without guidance.
- Test each agent independently first. Make sure every agent in the chain works well on its own before connecting them. A weak link in the chain degrades the entire output.
- Use checkpoints for irreversible actions. If a step triggers an automation or creates a file, add a checkpoint before it so you can verify the data first.