đ Agents as Tools
Advanced Agent Collaboration: Using One Agent as a Tool for Another
Unlock complex workflows by letting one agent delegate to another. In Autohive, you can expose an agent as a tool so a primary agent can hand off specialised tasks (e.g., writing) to a secondary agent.
This guide shows you how to set it up, teach it, and troubleshoot it.
What âagent-as-toolâ means
You embed one agentâs capabilities inside another. The primary agent leads the workflow (e.g., research) and calls a secondary agent (e.g., writing) via a tool call at the right moment.
Prerequisites
Two or more agents created in your workspace
Clear roles (e.g., Research Agent, Writing Agent)
System instructions that describe when to delegate
Set up an agent as a tool
Open the controller agent (e.g., Research Agent)
Go to Integrations/Tools
Open the Agents tab
Select the secondary agent (e.g., Writing Agent) to add as a tool
Save changes
Configure the primary agentâs instructions
Give explicit delegation rules. Example snippet:
âAfter you draft a research brief, use your Agent Tool to call âWriting Agentâ to produce the full article in our brand voice. Pass the brief verbatim as input.â
Run a practical test
Prompt the Research Agent to produce a brief
Confirm it completes the brief
Watch for the tool call to the Writing Agent
Verify the returned draft is included in the session output
How to see outputs from sub-agents
Youâll see a successful tool execution entry (e.g., âDelegated blog article to Writing Agent; agent tool executedâ). The writing output appears in the tool result.
Troubleshooting delegation
No tool call appears: Re-check the Agents tab and ensure the second agent is added as a tool
Tool called with poor context: Tighten the instruction to pass the brief verbatim and include any constraints (length, tone, links)
Infinite retries: Reduce ambiguity; add a clear âstop after one delegationâ rule
Try switching your model (e.g from OpenAIâs GPT4.1, to Anthropicâs Claude Sonnet 4.0) - sometimes that helps, different models are better at handling tool use.
Best practises
Keep agents narrow: consider running research agents at low temperature to keep them on task, writing at higher temperature to allow for some creativity (within the brief!)
Pass structured context: title, audience, outline, key sources
Limit tools per agent to avoid confusion
Add a quality gate: a final âreview/polishâ step or checklist
Wrap-up
Agent-to-agent delegation embraces Narrow AI. You get higher quality, cleaner handoffs, and workflows you can audit and scale. Start with a research â writing chain and expand from there, but always consider how many specialised jobs are involved, and aim to give just one to each agent in a sequence. Workflows are your next level up on this learning curve!
In this video youâll find a demo of the Research and Writer combo example, and more discussion about the ânarrow AIâ concept.