https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hello, I'm using agent transfer on Retell
# ❓・ai-evy-support
e
@AI Evy Hello, I'm using agent transfer on Retell. I discovered that the webhook on the second agent I switched to isn't working. Since I'm using the first agent's webhook in a different program, I can't use that either. I can send information to my API using a custom function on the second agent, but I can't retrieve the incoming call number. I've tried values ​​like to_number, user_number, and from_number, but they don't work either. How can I retrieve the incoming call number on the second agent?
a
Thanks for tagging me @evrem_m123. 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 - WebHook Not Firing In Agent2](https://discord.com/channels/1186424376300679209/1405501501337763861) [[2] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) ​
### Answer After an agent transfer in Retell AI, the webhook of the original (first) agent continues to fire, and the second agent’s webhook does not automatically activate after the transfer [(1) ]() . If you need to trigger a webhook or send data from the second agent, you should use a custom function node inside the second agent to call your API directly [(2) ]() , [(1) ]() . However, regarding retrieving the incoming call number in your custom function: the available documentation does not specify which variable to use for this scenario after an agent transfer. The typical dynamic variables (like to_number or from_number) may not be populated as expected in the context of the second agent [(2) ]() , [(1) ]() . Check out these potentially useful sources: - [Agent Transfer Node]() - [Custom Function]() - [Agent Transfer - WebHook Not Firing In Agent2]() Would you like a general answer based on my knowledge instead?
e
@AI Evy Can you speak Turkish with me?
a
Thanks for the follow-up, @evrem_m123. I'll get back to you soon.
### Answer Evet, Retell AI ile Türkçe konuşmak mümkündür çünkü Türkçe desteklenen diller arasında yer almaktadır. Bunu yapmak için, Agent Dashboard’da ilgili botunuzu seçip Global Settings bölümünden Türkçe’yi seçmeniz gerekir. Ayrıca, konuşma akışındaki mesajlarınızı Türkçe olarak düzenlemelisiniz. Sonrasında Test düğmesini kullanarak botun Türkçe olarak yanıt verdiğinden emin olabilirsiniz [(1) ]() .
​ To learn more, see the sources I considered: [[1] Retell AI Supported Languages - AI for Multilingual Conversations | Retell AI](https://www.retellai.com/blog/how-to-use-ai-phone-agents-for-multilingual-communication) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
e
@AI Evy agent transferden sonra 2. agent içerisinde custom function ile bilgileri istediğim apiye gönderebiliyorum ama arama gelen numarayı nasıl gönderebilirim apiye
a
Thanks for the follow-up, @evrem_m123. I'll get back to you soon.
### Answer Agent transfer sonrası, ikinci agent içinde custom function kullanarak API'ne veri gönderebiliyorsun, fakat aramayı başlatan kullanıcının numarasını (caller ID) almak için kullandığın dynamic variable'ların (ör. to_number, user_number, from_number) ikinci agent tarafında doğrudan çalışmayabileceği Retell AI dökümantasyonunda belirtiliyor. Özellikle agent transferden sonra, çağrı boyunca ilk agent’ın webhook ve bazı ayarları kullanılmaya devam ediyor ve ikinci agent’ın webhook’u otomatik olarak tetiklenmiyor [(1) ]() , [(2) ]() . Yani, ikinci agent içinde custom function ile çağrı numarasını almak için kullanılabilir bir dynamic variable (ör. {{user_number}}, {{from_number}}, {{to_number}}) dökümantasyonda transfer sonrası özel olarak desteklenmiş görünmüyor. Bu nedenle, arayan numarayı custom function ile API'ne göndermenin doğrudan bir yolu dökümantasyonda açıkça belirtilmemiştir [(1) ]() , [(2) ]() . Daha fazla detay için bu kaynaklara göz atabilirsin: - [Agent Transfer Node]() - [Agent Transfer]() - [Custom Function]() Dilersen genel bir çözüm önerisi de sunabilirim, istersen belirt lütfen.
​ To learn more, see the sources I considered: [[1] Agent Transfer](https://docs.retellai.com/build/single-multi-prompt/transfer-agent) [[2] Agent Transfer Node](https://docs.retellai.com/build/conversation-flow/transfer-agent-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
e
@AI Evy 2. agenta numarayı nasıl elde edebilirim
a
Thanks for the follow-up, @evrem_m123. I'll get back to you soon.
### Answer Retell AI dökümantasyonunda, agent transfer işlemi sonrası çağrı boyunca ilk agent’ın webhook, opt-in/out ayarları ve webHookUrl’i kullanılmaya devam eder; ikinci agent’ın webhook’u otomatik olarak tetiklenmez ve dinamik değişkenlerin (ör. user_number, from_number, to_number) ikinci agent içerisinde doğrudan çalışacağı garanti edilmez [(1) ]() [(2) ]() . Bu nedenle, ikinci agent içinde custom function ile arama yapan kişinin numarasını (caller ID) almak için kullanılabilir bir dinamik değişkenin doğrudan desteklendiğine dair bir bilgi bulunmamaktadır . Bu konuda Retell AI'nın resmi kaynaklarında net bir çözüm veya desteklenen bir yöntem yer almamaktadır. Dilersen genel bir çözüm önerisi sunabilirim, istersen belirt lütfen.
​ To learn more, see the sources I considered: [[1] Agent Transfer](https://docs.retellai.com/build/single-multi-prompt/transfer-agent) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
e
@AI Evy evet çözüm öneriisi belirt
a
Thanks for the follow-up, @evrem_m123. I'll get back to you soon.
### Answer Retell AI dokümantasyonunda, agent transfer sonrası ikinci agent içinde arama yapan kullanıcının numarasını (caller ID) doğrudan almak için desteklenen bir dinamik değişken veya yöntem belirtilmemiştir. Agent transferden sonra ilk agent’ın webhook ve bazı ayarları geçerli olmaya devam eder, ikinci agent’ın webhook’u otomatik tetiklenmez ve dinamik değişkenlerin (ör. from_number, to_number, user_number) ikinci agent içinde çalışacağı garanti edilmez [(1) ]() , [(2) ]() . Bu nedenle, doğrudan bir çözüm resmi kaynaklarda bulunmamaktadır. Alternatif olarak deneyebileceğin yollar şunlardır: - Çağrı başladığında, ilk agent içinde arayan numarayı bir dinamik değişkene veya session variable’a kaydedip, transfer sırasında bu veriyi prompt veya custom function ile ikinci agent’a aktarmayı deneyebilirsin. Ancak bu yöntemin çalışıp çalışmayacağı dokümantasyonda onaylanmamıştır [(1) ]() . - İlk agent’tan API’ne arayan numarayı gönderip, ikinci agent’ta ihtiyaç olduğunda aynı API’den ilgili oturumun numarasını çekmek bir diğer yöntem olabilir. Bu durumda session management mantığını dışarıda kurman gerekir. Yine de, Retell AI’da transfer sonrası ikinci agent’ta arayan numarayı doğrudan custom function ile almak için desteklenen bir yol dökümantasyonda yer almamaktadır , [(2) ]() . Daha fazla bilgi veya güncel çözüm için resmi dokümantasyonu takip edebilirsin: - [Agent Transfer]() - [Platform Changelog]()
​ To learn more, see the sources I considered: [[1] Agent Transfer](https://docs.retellai.com/build/single-multi-prompt/transfer-agent) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.