Send Event
send-eventRecord a contact event, such as order.completed, to trigger enabled automations and optionally create the contact if it doesn't exist.
Instructions
Record that a contact did something, e.g. order.completed. The event must be defined (list-events) and data must match its schema. Enabled automations triggered by this event run for the contact and may message them, and a contact that doesn't exist yet is created. Before calling it, check list-automations for enabled automations with this trigger, tell the user what they will do, and wait for their go-ahead.
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": {
"event": "<event>",
"data": "<data>"
},
"name": "send-event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Event payload, matching the event's schema. | |
| No | |||
| event | Yes | Name of a defined event, from list-events. | |
| timestamp | No | ISO 8601 time the event happened; defaults to now. | |
| contact_id | No | Arsel contact id, from list-contacts. Cannot be combined with `external_id`, `email` or `phone_number`. | |
| external_id | No | The organization's own user id for the contact. | |
| phone_number | No | E.164 phone number, e.g. +966501234567. |