Emit event
emit_eventEmit a customer event to auto-enroll contacts into any matching sequence.
Instructions
Emit a customer event. Any published sequence whose trigger is event.matches and matches name will auto-enroll the contact. The response includes the enrollments array (empty when no sequence was listening — that's fine and not an error).
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>"
},
"name": "emit_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Dot-namespaced event name (e.g. "subscription.cancelled"). | |
| No | |||
| traits | No | ||
| userId | No | ||
| occurredAt | No | ISO timestamp. Defaults to now. |