VAPI ignore to say some information and just end t...
# support
j
Hi, I have had numerous cases today where VAPI is instructed to give certain information to the caller and then call the endCall function, however it is ignoring this and calling directly to this function using the phrase it has in cache. When looking at the call logs you can see that it does try to say what it is told to say, but it does not actually utter the voice and ends the call. Is there a way to indicate at the prompt with which phrase the VAPI should end the call when using endCall? This is the part of the prompt to which I make reference:
Copy code
Inform the Caller that the requested service is not offered in that location. Ensure the Caller is notified that their information will be passed to the appropriate team before invoking the `endCall` function to complete the call.
call id: 70678c2b-514f-4b6b-9bef-36a715ec64df
v
message has been deleted
@JRDabrio I'm sorry to hear you're experiencing issues with the call handling. Currently, VAPI does not have the capability to hang up the phone at the end of the call through the
endCall
function. This is something that will be covered in future guides. However, to ensure that VAPI provides the correct information before the call ends, you should structure your prompts to include all necessary information before the call termination process begins. Since VAPI can't hang up the call yet, you would need to handle the call termination through your own system after VAPI has delivered the message. For the scenario you described, make sure that your prompt includes the full message that needs to be relayed to the caller. For example:
Copy code
Inform the Caller that the requested service is not offered in their location and that their information will be passed to the appropriate team. Thank you for calling.
After VAPI has delivered this message, your system should then take over to end the call. If you're still having trouble with VAPI not uttering the voice before the call ends, please ask support for more info on this, as it may require a deeper look into the specific call logs and configurations.
You can continue this conversation by mentioning me in the message.
s
Can you set the temp to 0.3
and give it a try?
j
I have updated the temp and had the same result call id: d0a4a1cb-846f-4242-a8f8-eda320c31490
s
Please join the OH and get your question answered https://discord.gg/Q4kmWaKq?event=1288127751869431950 @JRDabrio
s
@JRDabrio remove your end call message and refactor your prompt to force say end call message first and then end the call.
Copy code
"endCallMessage": "Thank you for contacting us. Have a great day!",
Also let us know how it goes.
j
let me try!
I tried that approach but the only difference is that now it only says "Goodbye"
s
it's mostly related to your prompting try playing around prompts and eventually you will make it.
2 Views