Reecall
Automations

System events

Reecall announces a System event when something happens on the platform, such as the end of a conversation. A Trigger listens to one System event type and starts its Process each time one occurs.

TypeAnnounced whenrefId points to
exchange.startedA conversation startsThe Exchange
exchange.completedA conversation ends and its Exchange is completeThe Exchange
run.failedA Run failsThe Run

System events are not the Exchange events of a conversation's timeline. See Exchange events for those.

What a Process reads

A Run started by a Trigger reads the System event under event:

FieldTypeDescription
idstring (UUID)Identifies the System event. A type and a record always give the same ID.
typestringThe System event type, such as exchange.completed
occurredAtstringISO 8601 date and time of the change that caused the System event
refIdstring (UUID)ID of the record the System event comes from
dataobjectFields of the record, listed below for each type. Each field can be null.

For example, {{ event.refId }} is the Exchange ID in a Process started by exchange.completed, and {{ event.data.duration }} is the conversation's duration. See Templating language.

Trigger conditions read the same fields, plus event.organizationId and event.projectId.

Each Trigger starts at most one Run for a System event. If Reecall delivers the same System event again, its Trigger starts nothing new.

exchange.started

Announced when Reecall registers an Exchange at the start of a conversation, with status: "inProgress". refId is the Exchange ID.

data fieldTypeDescription
statusstringStatus of the Exchange: "inProgress"
typestringConversation type, such as "voice"
assistantIdstring (UUID)The Assistant holding the conversation
roomIdstringIdentifier of the conversation's room
externalIdstringThe external ID supplied for the conversation

exchange.completed

Announced once per Exchange, when it reaches status: "completed". This covers both the normal case, where Reecall updates the Exchange at the end of the conversation, and the fallback, where the start registration failed and Reecall creates the completed Exchange at the end. Later updates of a completed Exchange announce nothing.

refId is the Exchange ID. data has the fields of exchange.started, plus:

data fieldTypeDescription
titlestringShort description of the conversation
durationnumberConversation duration in seconds
audioUrlstringURL of the recording, when one is available
messagesarrayThe transcript. See Messages.
eventsarrayThe Exchange events of the conversation. See Exchange events.
resourcesarrayConfiguration metadata and media references. See Resources.
dataobjectData extracted from the conversation. See Data Extraction.

The Exchange ID is not in data. Use event.refId.

JSONevent in a Process started by exchange.completed
{ "id": "0b2e6f4a-8c1d-5e7f-9a3b-4c5d6e7f8a9b", "type": "exchange.completed", "occurredAt": "2026-12-01T10:15:42.120Z", "refId": "72770d5a-5b25-4118-ba88-786972b29de7", "data": { "status": "completed", "type": "voice", "assistantId": "8f9c2b1e-4d3a-4c7b-9e6f-1a2b3c4d5e6f", "roomId": "RM_abcde1324", "externalId": "ext-12345", "title": "Customer reported a connection issue and asked for a callback.", "duration": 73, "audioUrl": "https://recordings.reecall.io/a130b57c-d6d7-4a18-9111-219e3192a478", "messages": [ { "message": "Hi, welcome to the technical support, how may I assist you today?", "from": "assistant", "time": "2026-12-01T10:14:31.002484" } ], "events": [ { "type": "session_start", "time": "2026-12-01T10:14:29.420863", "data": {} } ], "resources": [], "data": { "motive": "Technical Support" } } }

run.failed

Announced when a Run ends with status: "failed", whether a Trigger or an API call started it. refId is the ID of the failed Run.

data fieldTypeDescription
triggerIdstring (UUID)The Trigger that started the failed Run, or null for a Run started through the API
processIdstring (UUID)The Process of the failed Run. Absent when the Run ran steps sent with the API call.
errorCodestringWhy the Run failed, as a code. See Why a Run failed.
errorMessagestringWhy the Run failed, in a sentence that never holds the Run's data, such as Request failed with status code 503 (Service Unavailable)
failedStepstringPosition of the step that failed, such as "2", or null when no step failed, as when the attempt timed out

A Run started by run.failed that fails announces no run.failed, so an alert Process cannot start itself in a loop. See Email an alert when a Run fails.

List the types through the API

TerminalList System event types
curl https://workflows.reecall.io/v2/event-types \ --header 'Authorization: Bearer sk_YOUR_API_KEY'
JSONResponse
{ "eventTypes": [ { "type": "exchange.started", "ref": "conversational.exchange" }, { "type": "exchange.completed", "ref": "conversational.exchange" }, { "type": "run.failed", "ref": "automation.run" } ] }

ref names the kind of record refId points to.

Last modified on