Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions fern/tools/custom-tools.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,37 @@ Set up the messages your assistant will speak during tool execution. For example
- **Request Failed**: "I couldn't get the weather information right now."
- **Request Delayed**: "There's a slight delay with the weather service."

Every message is optional. If a Function tool has no `request-start` message, the assistant can say a default filler message, such as "One moment" or "Hold on a sec", when the tool starts.

To keep the assistant silent while the tool runs, set **Message Option** to **None** under **Request Start**. In the API, add a `request-start` message with empty `content`:

```json
{
"type": "function",
"function": {
"name": "get_weather",
"parameters": {
"type": "object",
"properties": {
"location": { "type": "string" }
},
"required": ["location"]
}
},
"server": {
"url": "https://example.com/vapi/tools"
},
"messages": [
{
"type": "request-start",
"content": ""
}
]
}
```

The empty message replaces the default filler, so the caller hears nothing when the tool starts. Messages for other stages, such as `request-failed`, are configured separately and still play. To have the model write a context-aware start message, keep the empty `request-start` message and add a `bot_say` parameter to the tool. For more information, see [Dynamic tool messages](/tools/dynamic-tool-messages).

### Step 4: Advanced Settings

Configure additional options:
Expand Down
Loading