Create an alert
create_alertEmails site members when a goal is completed (trigger goal + goal_name), on every payment (payment) or on a customer's first payment (new_customer). Each email includes the source, location, device and a visitor journey link; a busy alert batches into an hourly summary. Requires the write scope.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_alert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Label for the alert. | |
| notify | No | Older shortcut instead of recipients: the token's user or every current member. | |
| enabled | No | Default true. | |
| message | No | Custom text shown at the top of each email. | |
| subject | No | Custom email subject. | |
| trigger | No | What fires the alert. Default goal. | |
| channels | No | Alert channel IDs (Slack, Discord, Telegram, webhook) it also posts to, from list_alert_channels. With channels and no recipients, it posts only to the channels. | |
| goal_name | No | Goal (custom event) name, exactly as tracked. Required for trigger goal; see list_alerts goals. | |
| recipients | No | Members who receive it, by email or user ID (members are listed by list_alerts). Only current members of the website. Default: the token's user. | |
| website_id | No | Website ID from list_websites (the data-site-id value in the tracking script). |