https://retellai.com/?utm_source=discord&utm_medium=seo logo
Can I include Ai generated metadata in the SIP hea...
# ❓・ai-evy-support
m
@AI Evy Can I include Ai generated metadata in the SIP headers when transfering a call to another phone. I'd like to include a summary as one of the headers when transfering the call
a
Thanks for tagging me @marc_58150. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can include AI-generated metadata in custom SIP headers when transferring calls [(1) ]() [(2) ]() [(3) ]() . Custom SIP headers must start with
X-
[(1) ]() . For call transfers, you can add custom SIP headers and use dynamic variables for the header values, allowing you to pass information extracted from the call to the receiving party . This means you can include AI-generated summaries or other metadata as dynamic variable values in your custom SIP headers . Configuration Options: If using Conversation Flow agents, configure custom SIP headers in the Call Transfer Node [(2) ]() . If using Single/Multi-Prompt agents, configure them in the Transfer Call function [(3) ]() . Important Limitations: For cold transfers with transferee number, different telephony providers may or may not honor custom SIP headers in the REFER request [(1) ]() . Twilio, for example, does not honor custom SIP headers in the REFER request, so SIP headers you set in the transfer call tool will not work for cold transfer with transferee number when using Twilio . For warm transfers using SIP DIAL, custom SIP headers are more reliably supported . **
m
@User how can I get access or generate this summary before transfering the call?
@AI Evy how can I get access or generate this summary before transfering the call?
@AI Evy how can I get access or generate this summary before transfering the call?
a
Thanks for the follow-up, @marc_58150. I'll get back to you soon.
### Answer Based on the available sources, I don't have specific documentation showing how to generate or access a call summary before transferring the call to include in custom SIP headers. The sources confirm that you can use dynamic variables in custom SIP headers for call transfers [(1) ]() [(2) ]() , but they don't explicitly detail the mechanism for generating AI summaries during the call and storing them as dynamic variables before the transfer occurs. Potentially relevant approaches (though not explicitly documented for this use case) : - Dynamic variables can be collected during conversations and used in various contexts - Custom SIP headers support dynamic variable substitution However, the specific workflow for having the AI generate a summary, store it as a dynamic variable, and then reference it in a custom SIP header during transfer is not covered in the available documentation. Would you like me to provide a general answer based on typical AI agent patterns, or would you prefer to reach out to Retell AI support for guidance on this specific implementation? Support options: - Visit [Contact Sales]() - Visit [Retell AI GitHub]()
​ To learn more, see the sources I considered: [[1] Transfer call](https://docs.retellai.com/build/single-multi-prompt/transfer-call) [[2] Call Transfer Node](https://docs.retellai.com/build/conversation-flow/call-transfer-node) ​
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] Set & parse custom SIP headers](https://docs.retellai.com/build/telephony/sip-headers) [[2] Call Transfer Node](https://docs.retellai.com/build/conversation-flow/call-transfer-node) [[3] Transfer call](https://docs.retellai.com/build/single-multi-prompt/transfer-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.