Custom Assistant Response when Making Tool Calls?
# support
j
Hi there, I am trying to change what the assistant says before making a Tool Call and am having difficulties. It seems that no matter how I prompt the Assistant it always says something like "One Moment", "Wait one minute", or "Hold on" and I want to customize this to say something like "Let me check Jonathan's calendar for you" instead. Is there a way to override the default settings in an HTTP request? Example Call ID is: 51adf145-de31-414b-b2c3-84ec0f2acbba Thanks, Jonathan
v
@Jonathan van der Veen Hello Jonathan, Absolutely, you can customize the messages that the assistant sends to your server by adjusting the
assistantOverrides.serverMessages
parameter in your HTTP request. To change the default message before making a tool call, you would include the
tool-calls
option in the
serverMessages
array and specify the custom message you want the assistant to say. Here's an example of how you might structure your HTTP request to include this customization:
Copy code
json
{
  "assistantOverrides": {
    "serverMessages": [
      "status-update",
      "transcript",
      "hang",
      "function-call",
      "tool-calls",
      "end-of-call-report",
      "conversation-update",
      "phone-call-control",
      "model-output",
      "voice-input"
    ],
    "toolCallMessage": "Let me check Jonathan's calendar for you"
  },
  // ... other parameters for your call ...
}
Please note that the
toolCallMessage
parameter is an example and may not reflect the actual parameter name used in your API. You would need to refer to the API documentation or ask support for the correct parameter to use for customizing tool call messages. If you need further assistance with the exact parameter or the structure of the HTTP request, please ask support for more info on this.
You can continue this conversation by mentioning me in the message.
j
How do I do this with 2 tool calls in one conversation?
s
@Jonathan van der Veen you can join discord OH and get your ticket resolved over there.
@Jonathan van der Veen you can override this behaviour, I suggest checking out following docs in order. First one is to understand tools calling and second is update tools messages. https://docs.vapi.ai/tools-calling#example-modification https://docs.vapi.ai/api-reference/tools/update-tool