https://retellai.com/?utm_source=discord&utm_medium=seo logo
If i setup agent transfer in one agent and i want ...
# ❓・ai-evy-support
d
@AI Evy If i setup agent transfer in one agent and i want to webhook both transcripts, the conversations of both agents, How do i set that up? Where do i put the Webhook address? in which agent?
a
Thanks for tagging me @Daniel D. I'll look through relevant sources and get back to you shortly.
### Answer --- When using Agent Transfer, the webhook URL from the first (initiating) agent is used throughout the entire call—regardless of which agent is currently active. [(1) ]() Where to put the webhook address: - Configure your webhook URL on the first agent (the one that initiates the call and performs the transfer) . - The transferred-to agent's webhook URL will not be used during the call. Getting transcripts for both agents: - All webhook events (including
call.started
,
call.ended
,
call.analyzed
) will be sent to the first agent's webhook. - For post-call analysis, you can configure the Post call analysis setting in the Agent Transfer tool to extract dynamic variables for: - Only the transferred agent, or - Both agents Summary: - Set your webhook URL on the first/initiating agent. - Use the post-call analysis setting in the Agent Transfer tool to capture data from both agents.
​ To learn more, see the sources I considered: [[1] Agent Transfer](https://docs.retellai.com/build/single-multi-prompt/transfer-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy ok what if theres a name and last name dta point extraction tool in the second agent transcript. Where do i setup those tool extrations? first or second agent?
a
Thanks for the follow-up, @Daniel D. I'll get back to you soon.
### Answer You should set up the data point extraction tools (like name and last name) on the second agent (the transferred-to agent) . [(1) ]() Here's how it works: - Each agent has its own prompt and tools, so extraction tools for data points should be configured on the agent that will actually be collecting that information during the conversation. - For post-call analysis, the Agent Transfer tool has a "Post call analysis setting" that lets you choose whether to extract dynamic variables for: - Only the transferred agent, or - Both agents In summary: - Configure the name/last name extraction tools on the second agent (where the conversation collecting that data happens) . - In the Agent Transfer tool on the first agent, set the post-call analysis setting to capture data from both agents if you want all extracted variables included in your webhook payload.
​ To learn more, see the sources I considered: [[1] Agent Transfer](https://docs.retellai.com/build/single-multi-prompt/transfer-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.