https://retellai.com/?utm_source=discord&utm_medium=seo logo
for the agent transfer function, do we instruct th...
# ❓・ai-evy-support
a
@AI Evy for the agent transfer function, do we instruct the agent when to "call" the function or do we define when it should trigger in the agent transfer function description?
a
Thanks for tagging me @aitoolworx. I'll look through relevant sources and get back to you shortly.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Agent Transfer](https://docs.retellai.com/build/single-multi-prompt/transfer-agent) ​
### 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) ]() .