Ai bot tells about calling api
# support
b
When I call a bot and call a function, the bot responds with wait a minute. Unfortunately, in my language, it sounds rude. How can I make it not say anything when it calls the api.
v
@beta kostík Certainly! You can customize the bot's behavior by adjusting the event listeners on your
vapiInstance
. If you want the bot to remain silent when calling an API, you can remove or modify any speech output that occurs during the API call event. Here's how you can adjust the event listeners to prevent the bot from saying "wait a minute" or anything else during the API call:
Copy code
javascript
vapiInstance.on('api-call', () => {
  // Do not include any speech output here
});
By not including any speech output in the 'api-call' event listener, the bot will not say anything when it's calling an API. If you need further assistance with this or have any other questions, please let me know!
You can continue this conversation by mentioning me in the message.
b
@Vapi it can be done in the vapi user interface
v
@beta kostík Yes, you can configure the behavior of your VAPI bot through the user interface, typically without needing to write any code. To prevent the bot from saying "wait a minute" or any other phrase during an API call, you would adjust the settings related to speech output for API calls. Here's a general approach on how you might do this: 1. Log in to your VAPI user interface. 2. Navigate to the settings or configuration section where you can manage bot responses. 3. Look for the section related to API calls or bot responses. 4. Find the specific response that is triggered during an API call (e.g., "wait a minute"). 5. Edit or remove this response to ensure the bot remains silent during the API call. If you're unable to find these settings or if the user interface does not provide this level of customization, you may need to contact support for further assistance. If there's anything else I can help you with, please let me know!
b
I don't see it anywhere in the user interface
v
@beta kostík Please ask support for more info on this.
s
set request-response-delay/request-start message to empty string and it wont speak out anything.
it has to be done using API calling for tool, look for messages property.
b
thanks
4 Views