Event envelope
Every AI Assistant event has the same envelope; only data changes with the type of the event.
On this page
The type has the form com.rdcopilot.ai.<event>.v1. The last part is the version of data.
Fields
| Field | Meaning |
|---|---|
specversion | Version of the envelope format. |
id | Identifier of this event. A repeated delivery of the same event has the same id. |
type | What happened, in the form above. |
source | The product that sent the event. |
time | When the event happened, as a date and time with a time zone. |
customerOrgId | Your organisation. |
legalCompanyId | The legal company that the event belongs to, test or live. |
aggregateType | The kind of record that changed. |
aggregateId | The record that changed. |
aggregateRevision | The revision of the record after the change. |
correlationId | Ties together everything that came from one request or one flow. |
causationId | The document or operation that caused this event. |
actor | Who or what made the change. |
data | The content of the event. Its shape depends on type. |
Example
{
"specversion": "1.0",
"id": "5ec69550-f3fa-43b1-af49-18e3137c4f49",
"type": "com.rdcopilot.ai.run.done.v1",
"source": "/ai/v1/tasks/runs",
"time": "2026-11-19T11:00:00Z",
"customerOrgId": "brumar",
"legalCompanyId": "brumar-distributie",
"aggregateType": "run",
"aggregateId": "run-1042",
"aggregateRevision": 3,
"correlationId": "86c4fe37-99d4-4bfc-a8f1-347afc902a56",
"causationId": "423a61ed-2ea7-40fd-a31e-da3baa387eac",
"actor": {
"id": "ana-rusu",
"type": "user"
},
"data": {
"status": "done",
"receiptId": "offer-1042"
}
} Deliveries can repeat. Use id to skip an event you already handled. Delivery and retries says when an event is sent again.
The full rule: Developer guide