https://retellai.com/?utm_source=discord&utm_medium=seo logo
When using Agent transfer which agent's webhook is...
# ❓・ai-evy-support
r
@AI Evy When using Agent transfer which agent's webhook is being used in the post call analysis phase?
a
Thanks for tagging me @renovia_70920. I'll look through relevant sources and get back to you shortly.
### Answer When using Agent Transfer, the first agent's webhook settings are used throughout the entire call, including during the post-call analysis phase [(1) ]() . According to the transfer settings behavior, the following settings of the first agent will be used throughout the call: optInSignedUrl, optOutSensitiveDataStorage, and webHookUrl . All other settings — such as language, voice, and voiceModel — will reflect the currently active agent . This means that even after transferring to a second agent, the webhook URL from the original agent will continue to receive all webhook events, including the
call_analyzed
event that contains the post-call analysis data [(2) ]() [(3) ]() .
​ To learn more, see the sources I considered: [[1] Agent Transfer](https://docs.retellai.com/build/single-multi-prompt/transfer-agent) [[2] Consume the analysis data](https://docs.retellai.com/features/post-call-analysis-consumption) [[3] Webhook Overview](https://docs.retellai.com/features/webhook-overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
@AI Evy What if there a subsequent transfers with other agents?
a
Thanks for the follow-up, @renovia_70920. I'll get back to you soon.
### Answer Based on the available sources, the transfer settings behavior remains consistent even with subsequent agent transfers [(1) ]() [(2) ]() . The documentation states that "the following settings of the first agent will be used throughout the call: optInSignedUrl, optOutSensitiveDataStorage, webHookUrl" . This means that regardless of how many subsequent agent transfers occur during a single call, the webhook URL from the very first agent will continue to be used for all webhook events, including post-call analysis . All other settings like language, voice, and voiceModel will reflect the currently active agent, but the webhook configuration remains tied to the original agent throughout the entire call session .
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 Node](https://docs.retellai.com/build/conversation-flow/transfer-agent-node) [[2] Agent Transfer](https://docs.retellai.com/build/single-multi-prompt/transfer-agent) ​
Thanks for the follow-up, @renovia_70920. I'll get back to you soon.
r
@AI Evy So if i use post call analysis in subsequent transfers what will happen? Meaning after the initial agent transfer the call and there the agent receiving will have it's own post call analysis
a
### Answer When using Agent Transfer, you can configure how post-call analysis is handled across multiple agent transfers through the Post call analysis setting option [(1) ]() . This setting allows you to choose whether to extract dynamic variables for only the transferred agent or for both agents . The transfer settings behavior specifies that the first agent's webhook URL (webHookUrl) will be used throughout the entire call, regardless of subsequent transfers . This means the post-call analysis data will be sent to the original agent's webhook endpoint . However, the sources don't provide specific details about how post-call analysis data is structured or processed when multiple agents with their own post-call analysis configurations are involved in subsequent transfers. The documentation shows that post-call analysis can extract Boolean, Text, Number, and Selector data types [(2) ]() , and that agents can have their own
post_call_analysis_data
configurations [(3) ]() [(4) ]() . For this specific scenario involving multiple agent transfers with individual post-call analysis configurations, I'd recommend: Check out these potentially useful sources: - [Agent Transfer]() - [Post Call Analysis Overview]() Would you like me to try to answer generally based on my knowledge instead?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
@AI Evy Can you search more thoroughly.
a
Thanks for the follow-up, @renovia_70920. I'll get back to you soon.
### Answer When using Agent Transfer with subsequent agents that have their own post-call analysis configurations, the available sources provide limited specific details about this scenario [(1) ]() . The Agent Transfer documentation confirms that the first agent's settings persist throughout the call, including optInSignedUrl, optOutSensitiveDataStorage, and webHookUrl . This means the original agent's webhook will receive all events, including post-call analysis data . For the "Post call analysis setting" configuration option mentioned in the Agent Transfer tool, the documentation states you can choose to "extract dynamic variables for the transferred agent, or both agents" . However, the sources don't elaborate on how this works when multiple subsequent transfers occur, each with their own post-call analysis configurations. The API documentation shows that agents can have individual
post_call_analysis_data
configurations with different data types and extraction settings [(2) ]() [(3) ]() [(4) ]() . Each agent can specify:
Copy code
json
"post_call_analysis_data": [
  {
    "type": "string",
    "name": "customer_name",
    "description": "The name of the customer.",
    "examples": [
      "John Doe",
      "Jane Smith"
    ]
  }
]
[(2) ]() The sources don't provide comprehensive details about how post-call analysis data from multiple transferred agents with individual configurations is consolidated, processed, or delivered through the original agent's webhook endpoint. Check out these potentially useful sources: - [Agent Transfer]() - [Get Agent]() - [Create Agent]() Would you like me to try to answer generally based on my knowledge instead?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.