Abrupt termination of the call
# support
s
The bot is speaking the first sentence of the
firstMessage
and then ending the call. Upon checking the log, it is showing that
"endedReason": "assistant-said-end-call-phrase"
call_id - 0e6dcad5-a307-4ad2-bab2-c5ab0a1935fb
v
Hi @sumitguha, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Call Ended Reason]() * [Get Assistant]() * [Create Phone Call]() * [Create Assistant]() -----------------------------
### Answer The abrupt termination of the call you're experiencing, with the
endedReason
showing as
"assistant-said-end-call-phrase"
, indicates that the assistant recognized a phrase or keyword triggering the call to terminate. This behavior is outlined in the documentation, which mentions that if the assistant recognizes a specific end-call phrase, it will intentionally end the call based on the user's response or the conversation flow designed within the assistant's logic [(1)]() . To address this issue, you may want to review and possibly adjust the phrases configured in your assistant's settings that are designated to trigger the end of a call. This could involve modifying the
firstMessage
or the conditions under which the end-call phrases are activated to ensure they align with your intended use case and do not inadvertently cause premature call termination. If the termination is happening unexpectedly and not as a result of intended phrases, it might also be helpful to examine the specific dialogues or scenarios leading up to the call's end to identify any patterns or triggers causing this behavior.
Got it. Tagging @User for additional help.
s
the end call phrases that I have defined are
Copy code
"endCallPhrases": [
      "Goodbye",
      "Have a great day",
      "Have a productive day"
    ],
v
Got it. Tagging @User for additional help.
a
what is the first message you setup for the assistant?
s
"firstMessage": f"Hello, this is Amy from Capital Advances on a recorded line. Am I speaking to the owner?"
a
this is weird
try to check that isn't there any conditions or settings beyond the firstMessage and endCallPhrases that might be affecting the call termination.
@Sahil could you help him
s
no there aren't any such condition
if I remove the endCallPhrases, then it does not drop the call
strange
a
yeah
I think there might be something conflicting with the end phrases.
don't worry support team will help you out
s
Can you remove the "Have a great day" and "Have a productive day" and then give it a try.
a
it will work i think but why these phrases conflicting?
s
It is because we find a certain word and based on that we terminate the call. For example: In his first message, the word a was there due to which it was causing the conflict.
a
yeah I got it but why it's taking up a single word instead of a whole phrase?
I think this is an issue
s
@Sahil check this call - bb4df20b-16ee-45d8-acf2-4c8bc42d56be I have kept the first message as only "Hello" And also removed the phrases as you said. Still it dropped the call
It is only if I completely remove the endCallPhrases param, the call does not get dropped
s
WIll check with Nikhil.
s
sure
s
Okay. So, in your system prompt there is a end call phrase due to that it is happening
s
can you please point me out specifically which phrase it is?