diff --git a/fern/tools/custom-tools.mdx b/fern/tools/custom-tools.mdx index eefbd6199..3716a253e 100644 --- a/fern/tools/custom-tools.mdx +++ b/fern/tools/custom-tools.mdx @@ -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: