### Answer
You need to instruct the agent when to "call" the agent transfer function by adding clear instructions in the prompt. The documentation specifies that you should update the prompt to tell the AI agent when and why to trigger the agent transfer, for example: "If the user asks to book an appointment, use the agent_transfer tool to transfer to the Appointment Agent." The agent transfer function description itself is where you configure the technical details (like which agent to transfer to) , but the logic for when it should trigger comes from your prompt instructions [(1) ](
) .