a
how do I make the AI hang up or end the call after finishing the script @Vapi
v
@Anton To make the AI hang up or end the call after finishing the script, you can specify an
endCallMessage
that the assistant will say before ending the call. Additionally, you can define
endCallPhrases
which, when spoken by the assistant, will trigger the call to be hung up. If you have specific phrases or a message you would like to use, please let me know, and I can help you set that up.
a
where do I do that @Vapi
v
@Anton To set up an
endCallMessage
or
endCallPhrases
, you would typically do this within the settings or configuration of your voice application. If you're using a specific platform or API for voice development, you would look for the section where you can define call flow actions or post-call actions. If you're working with a graphical interface, there might be a section where you can drag and drop actions into your call flow, and one of those actions could be "End Call" where you can specify the message. If you're working with code, it would involve adding the appropriate parameters to your call handling function or script. This could look something like:
Copy code
javascript
// Example in a hypothetical voice API
call.on('end', () => {
  voiceAPI.speak('Thank you for calling, goodbye!');
  voiceAPI.hangUp();
});
If you need help with a specific platform or API, please provide the name or more details, and I can give you more targeted instructions. If you're referring to a feature within VAPI that I'm not aware of, please ask support for more info on this.
a
how do I put it in the prompt and not code @Vapi
v
@Anton To include an
endCallMessage
or
endCallPhrases
in the prompt without directly coding it, you would typically define these elements in the initial setup of your voice application's conversation flow. This setup could be part of a configuration file or a settings page within your voice application platform. Here's a general idea of how you might specify it in a non-code format: 1. **Configuration File**: If your platform allows configuration through YAML, JSON, or another markup language, you might add entries like:
Copy code
yaml
# Example in YAML configuration
endCallMessage: "Thank you for calling, goodbye!"
endCallPhrases:
  - "Goodbye"
  - "End call"
  - "Hang up"
2. **Graphical User Interface (GUI)**: If your platform has a GUI, you might find a field or section where you can type in your
endCallMessage
and list your
endCallPhrases
. This could be under settings for "Call End" or "Post-Call Actions". 3. **Voice Application Script**: Some platforms use a script or scenario-based approach where you define the conversation flow in a structured format. In this case, you would write something like:
Copy code
System Prompt:
- Say: "Is there anything else I can assist you with?"
- If no further assistance is needed:
  - Say: "Thank you for calling, goodbye!"
  - Action: End Call
If you're using a specific voice application platform and need to know exactly where and how to set these messages, please provide the name of the platform or any additional context, and I can give you more precise guidance. If this feature is something specific to VAPI and not covered in my knowledge, please ask support for more info on this.
a
give me common end call phrases @Vapi
v
@Anton Certainly! Here are some common phrases that can be used to signal the end of a call in a professional and courteous manner: 1. "Thank you for calling, have a great day!" 2. "It was a pleasure assisting you. Goodbye!" 3. "Thank you for your time. Take care!" 4. "If you have no further questions, I'll go ahead and end the call. Goodbye!" 5. "We appreciate your business. Farewell!" 6. "Should you need any more help, feel free to call us again. Goodbye!" 7. "Thank you for choosing our services. Goodbye!" 8. "I hope I was able to help. Have a wonderful day!" 9. "Your satisfaction is our priority. Thank you and goodbye!" 10. "That's all for today. Thank you for calling, and goodbye!" These phrases can be used as
endCallPhrases
in your voice application to provide a positive and conclusive end to customer interactions. If you'd like to implement any of these phrases or need further assistance, please let me know!
a
in order for the end call function to trigger, who needs to say the end call phrase? The AI or the prospect? @Vapi
v
@Anton The
endCallPhrases
are designed to be spoken by the AI, and when the AI says one of these phrases, it will trigger the function to end the call. This is a way to ensure that the call ends smoothly and professionally after the AI has provided all the necessary assistance and there are no further actions to be taken. If you have any specific phrases you would like to set up or need help with anything else, please let me know!
4 Views