type: "send_sms" via the Create Tool endpoint, the static_params object configures how the SMS message is generated and sent.
Recommended Tool-Level Defaults
When creating asend_sms tool, the following tool-level fields are recommended alongside your static_params:
| Field | Recommended Value | Notes |
|---|---|---|
speak_during_execution | true | AI speaks to the caller while the SMS is being sent. Defaults to true if omitted. |
speak_after_execution | true | AI speaks to the caller after the SMS is sent. Defaults to true if omitted. |
async | false | Defaults to false if omitted. |
Static Params Schema
| Field | Type | Required | Description |
|---|---|---|---|
type | "prompt" | "static" | Yes | Determines how the SMS message is generated. "prompt" uses AI to compose the message dynamically; "static" sends a fixed, pre-written message. |
message | string | Yes | The content of the SMS. When type is "static", this is the exact message sent. When type is "prompt", this is an instruction the AI uses to generate the message based on conversation context. |
Examples
Static Message
Send the same fixed message every time the tool is triggered.AI-Generated Message (Prompt)
Let the AI compose the SMS dynamically based on the conversation context.Dynamic Variables
When usingtype: "static", you can include dynamic variables in the message using double curly braces. These variables are resolved at runtime from the conversation context or tool parameters.
For the UI-based setup guide, see the Send SMS Custom Function documentation.