can I have two agent_tranfer features to two different agents in a single prompt agent. My first agent transfer worked fantastic but when I attempted a second agent transfer to a different agent I got error message. Can you provide step by step instructions to get a second unique agent transfer to work. thanks
The way that I would solve this would be by having the agent call a tool that has the ability to transfer from one agent to another with the relevant information that you are trying to continue the conversation with. The tool code would likely be custom and tailored to the agent and transfer conditions.
Hey @PaulMocur
Here’s how you can add a second Agent Transfer:
-
Add another Agent Transfer tool: In the tools section of your single-prompt agent, click + Add again and select Agent Transfer from the dropdown — repeat this for each destination agent.
-
Give each tool a unique name: Tools must have distinct names (e.g.,
transfer_to_appointment,transfer_to_billing). Duplicate tool names typically cause errors. -
Configure the second transfer’s details: Set the destination agent ID/version, optional speak-during-execution message, and post-call analysis settings.
-
Update the prompt: Add explicit instructions telling the agent when to call each specific tool, e.g., “If the user asks to book an appointment, use
transfer_to_appointment. If the user asks about billing, usetransfer_to_billing.” -
Test: Use the web call or playground to verify both transfers work.
Thank You