event and runs its steps only for that exact event — see
Follow-up triggers for how a trigger is
authored and what its steps receive. This page is the event reference: what each one means,
when it fires, and — for anyone moving an agent off webhook_url / webhook_events — which
legacy value it replaces.
Event reference
A trigger that waits for a produced result (
transcript.ready, analysis.ready,
recording.ready, lead.ready, billing.ready) starts its follow-up only for a result that
was actually produced — a call nobody answered settles those producers without producing
anything, and a follow-up waiting on one never starts.
Every follow-up whose event matches, and whose “Only if” holds, runs. There is no “first match” and no implicit “otherwise”:
any_end and call.no_answer on the same agent both run on a call nobody answered, and two
follow-ups on the same event both run. The dashboard says so when it sees the first case; a
Check on the document does not, because both are legitimate. To do something different per
ending, add one follow-up per ending, or give each an “Only if” — see
A different follow-up for each ending.
What each event can have
An ending decides what a follow-up can know. A call nobody answered has a result, a time and a reason it stopped, and never a transcript, analysis, recording, lead or billing. A normal ending gets those a little later, so a step that needs them waits for them withrequires. This is the
table a step’s requires (and an artifact input) is held to:
The facts are read when the follow-up starts, not when the event fired, so a member written
after the event (
recording_url, a lead id) can appear in the package even though the event
was not about it. disposition is the one place to read the call’s outcome in the platform’s
own words: take it from analysis.ready, where it is guaranteed.
Two rules follow, and the publisher enforces the first:
- Refused — a step on
call.no_answerorrequest.failedwaiting for any result, and a step oncall.failedwaiting fortranscript,analysisorrecording, isartifact_never_produced. - Advised — a step on
any_endwith anything inrequiresraises theafter_any_end_waitswarning on Check. It is not a refusal, becauseany_endalso covers a finished call, where the wait is right, and workflows already published that way keep working. Move such a step toanalysis.ready(or the result’s own.readyevent), or leaverequiresempty and let it run on every ending.
What an “Only if” can read on each event
A trigger can carry awhen condition so its follow-up runs for some calls only
(how it is written).
It can read only what the event guarantees, so a follow-up never decides on a fact that is
still being written:
A condition on
analysis.ready never sees a call whose analysis never settled: that call opens no
analysis.ready follow-up at all, an “otherwise” sibling included.
What a trigger’s step sends
A trigger’s step is an ordinary HTTP tool binding, so it reads the call package the same way any other workflow tool does — the call is undercall, at "phase": "after"
(or, for call.answered, at the live phase — see the members note on the save page). The
body your endpoint receives is {"call": {…}} plus the step’s own inputs. A follow-up you
write yourself carries no event member, and no X-Webhook-Event header either (that
header is set only on a tool test). A follow-up created for you when an agent was moved to the
workflow engine adds one fixed input, event, naming the event the way it was spelled before
(call.analyzed), so an endpoint that reads event still finds it at the top level. Read call.status (completed, failed or no_answer) to tell how the call ended;
from analysis.ready also call.analysis and call.disposition. A tool that declines the call
package sends only its declared inputs. To know which follow-up fired without reading the
call, give each follow-up its own step with its own URL or a fixed input naming it.
Every settled delivery is written to the same delivery log as any other webhook, beside your
tool webhooks and, for an agent not yet on the workflow engine, its legacy event webhooks. Read
that log with GET /deliveries — across calls, filtered by
tool, agent, status or window — or one call at a time in its
timeline. Both return the same row shape.
Moving off webhook_url / webhook_events
Once an agent is on the workflow engine, webhook_url, webhook_events and webhook_headers
on the agent are cleared — see the note on Update Agent — and
its notifications become one HTTP tool (your endpoint, your headers) plus one After trigger per
event you were subscribed to, using this page’s mapping. Your endpoint has to read the new
envelope shape documented above: the call is under call, and call.status says how the call
ended. The follow-ups created for you keep the event name as a top-level event; the data
wrapper, timestamp and the per-event extras (a failure’s error, a blocked call’s reason) are
gone. For a follow-up you write yourself, give its step a fixed input named event if the
endpoint needs to tell events apart.