Transfer call function not working
# support
f
My transferCall function is not working, I have added a forwarding number under functions section and added this to my prompt. https://cdn.discordapp.com/attachments/1256258279919845467/1256258280112525444/image.png?ex=66801d32&is=667ecbb2&hm=cbd3d965a657237f0c9705d24c26053e751fb69978ad19fb230a4f6f169a1bd0&
v
@Fahad_9 I'm here to help you with your transferCall function issue. Could you please provide me with more details about the problem you're experiencing? For instance, are you receiving any error messages, or is the call simply not being forwarded as expected? Additionally, could you confirm if the phone number you've added is in the correct E.164 format and that you've tested the setup thoroughly?
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
f
1. No i am not receving any error message 2. the phone number format is also correct (+1 321 693 1298) 3. and this is my prompt inside of the system prompt: **End of Call**: At any point during the conversation if the user shows interest in our product then thank the user and let them know that one of our techs will reach out to them shortly. end call by running the 'transferCall' function with the phone number '+13216931298'. Example: "I will transfer the call to one of our techs. Goodbye and see you soon."
s
Call_id pls
f
yessir
here you go, call_id: 45edbdf8-23f1-4460-a066-ff38b7d84666
s
Add the number in forwardingNumber section
It will work.
f
Already did, it is still not working
Under the functions section
s
As per I can see, it is not done on your call_id
did you press publish button?
f
Yes I did publish it
Here
s
can you provide me one more latest call_id?
f
@Sahil thanks man it is working just a question will it work when I make a call using webhooks, while using the same static agent which has transfer call function
is this right or wrong
But the new issue is that the assistant is running the transfercall function at the start of the call, maybe something is inside my script
s
Read this guide
f
@Sahil I tested it and the issue is the assistant is firing the transfercall function even if it is not stated inside the system prompt
here is the system prompt that does not mention anything about the transfer call function
call_id: 33d73c2a-6f6f-46dc-af7b-f23bdca23f60
s
Use gpt-4o it will fix the issue cause gpt-3.5 sucks at function calling.
f
oh ok got it
thank you very much
4 Views