End-of-Call function issue

Hi, I have created a Vapi assistant (inside Vapi) with End-Of-Call function.
But the issue is that with this function it doesn't follow the prompt at all, it just always ends the call immediately. How can this be fixed?
I will be grateful for any help.

Here is system prompt example:
Ask if the person is John.
If confirmed, say thank you and end the call.
If not confirmed, say: "Sorry, I got the wrong number" and end the call.

If there is any other questions, you just say: I'm looking for John.

Examples:

Example 1
  • Hi, are you John?
  • No, I'm Alex.
  • Sorry, I got the wrong number. Bye!
    end the call
Example 2
  • Hi, are you John?
  • Yes, I'am.
  • Thanks, John. Bye!
    end the call
Example 3
  • Hi, are you John?
  • Who's asking?
  • I'm looking for John. Bye!
    end the call
End-of-call phrase: "bye".

But whatever it was in the conversation, it just immediately end the call just saying "bye".
Was this page helpful?