adverse-sapphire•4mo ago
What’s the difference between endCallPhrases and endCallMessage?
whats the difference?
6 Replies
I'm sorry, but I don't have information about the difference between "endCallPhrases" and "endCallMessage" at this time.
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
fair-rose•4mo ago
endCallPhrases
when said by AI ends the call, endCallMessage
shuld be told before call ends with endCall tool I believeendCallPhrases are spoken by user which tell the assistant its time to end the call and endCallMessage is last message an assistant will say before hanging up. So @Pigeon is really close
fair-rose•4mo ago
Nope
endCallPhrases
are phrases that call ends when Assistant says one of those words 🙂
In my example human (soundboard in my case) says farewell, which is not in my endCallPhrases
, but goodbye
is, and call ends right after AI says it 🙂adverse-sapphireOP•4mo ago
@Pigeon Thank you for the explanation. My question is about how to make the flow work correctly without repeating the message. Today, we use the following configuration:
endCallMessage: 'Até mais!',
endCallPhrases: ['Até Logo!'],
So, when she says “Até logo,” the endCall is supposedly triggered. But from what I understand, she still says “Até mais!” right after, before hanging up — which is not what we want.
Ideally, the call should end immediately after detecting “Até logo!”, without saying anything else. Should we leave the endCallMessage empty? But there's a problem with that — we had several cases where the AI said something like 'xiau', almost sounding Chinese, when we didn't set an endCallMessage.
Another question: if I write endCallPhrases using uppercase, will it still detect it correctly if the phrase comes in lowercase in the transcription? Is there any kind of normalization?
As long as it's written with plain text, the case doesn't matter. You should be able to leave the endCallMessage blank and if you happen to come across some messages after that were not set, you can provide the call id and we will take a look at it