create_action
Link an event name to a transactional template; each occurrence triggers a single email to the matching contact.
Instructions
Create an Action that maps an event name to a transactional template. Each matching event sends one email to the contact.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"eventName": "<eventName>",
"templateSlug": "<templateSlug>"
},
"name": "create_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name | |
| apiKey | No | Send16 API key (overrides SEND16_API_KEY env var) | |
| enabled | No | ||
| sendOnce | No | Only send once per contact regardless of how many times the event fires | |
| eventName | Yes | Event name to match (e.g. 'order.placed') | |
| delaySeconds | No | Delay before sending | |
| templateSlug | Yes | Transactional template slug to send |