https://retellai.com/?utm_source=discord&utm_medium=seo logo
Why is multi agent losing context when handing off
# ❓・ai-evy-support
r
@AI Evy Why is multi agent losing context when handing off?
a
Thanks for tagging me @renovia_70920. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, when transferring calls between agents, you may lose the original caller's phone number in the metadata [(1) ]() . After an agent transfer is initiated, the metadata only contains the phone number of the first agent that initiated the transfer, not the original caller's number . Multi-prompt agents are designed with Context Preservation where variables and information should flow between states [(2) ]() . Each state includes context from previous states . However, when transferring between entirely separate agents (not just states within the same multi-prompt agent) , context handling works differently. For multi-turn conversations to work effectively, the AI needs to maintain Context Retention - remembering what the user said earlier and using it to inform future responses [(3) ]() . When transferring between separate agents, this context may not automatically carry over. If you're experiencing context loss during agent handoffs, you may want to check: 1. Whether you're using state transitions within a multi-prompt agent (which should preserve context) [(2) ]() versus transferring between completely separate agents (which may lose context) [(1) ]() 2. How metadata is being passed during the transfer For more detailed assistance with your specific handoff implementation, I'd recommend: - Visit [Contact Sales]() - Visit [) Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Multilingual Agent (two agents with transfer)](https://discord.com/channels/1186424376300679209/1270169781831602187) [[2] Single/Multi Prompt Agent Overview](https://docs.retellai.com/build/single-multi-prompt/prompt-overview) [[3] Multi-Turn Conversation](https://www.retellai.com/glossary/multi-turn-conversation) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
@AI Evy I am talking about conversational flow agent transfers to each other. The context transfer isn't always reliable
a
Thanks for the follow-up, @renovia_70920. I'll get back to you soon.
### Answer When using Agent Transfer nodes in Conversation Flow, the destination agent has access to the full conversation history [(1) ]() . This is actually one of the key advantages of Agent Transfer over traditional call transfers - it eliminates the need for handoff messages or repeated customer questions . However, based on community reports, there are known issues with context reliability during transfers. One documented issue shows that during warm transfer attempts, the AI agent continues listening to the caller even when they're assumed to be on hold, which can cause the agent to act on unrelated conversations if the transfer fails [(2) ]() . This creates confusion when the AI returns to the original caller . For context preservation across multiple interactions, some users have explored storing call metadata after each node and using logic split nodes at the start of flows to resume based on that metadata [(3) ]() . Another approach mentioned is storing minimal state information like current objective and collected data, then using an initial node that asks for confirmation about the previous topic . The Agent Transfer feature does note that certain settings from the first agent are used throughout the call (like webhook URLs) , while other settings reflect the currently active agent [(1) ]() . This might impact how context is maintained depending on your configuration. If you're experiencing unreliable context transfer specifically with Agent Transfer nodes in Conversation Flow, I'd recommend: - Visit [Contact Sales]() - Visit [
​ To learn more, see the sources I considered: [[1] Agent Transfer Node](https://docs.retellai.com/build/conversation-flow/transfer-agent-node) [[2] Listening to caller while attempting warm transfer causes context issues.](https://discord.com/channels/1186424376300679209/1437534292556120224) [[3] Resuming Calls from Where They Left Off – Best Practices?](https://discord.com/channels/1186424376300679209/1401667858588635136) ​
tellAI/]() Would you like a general answer based on my knowledge instead?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.