When a call ends
The "When a call ends" trigger is in private beta. Contact support@turn.io to request access.
The "When a call ends" trigger starts a journey after a WhatsApp call that someone answered. The journey reads the call through @call: its transcript, notes and summaries and, for a consult's call, the consult and its doctor. Use it to send the contact a summary of the call, save what was agreed to their profile, or ask how the call went.
When the journey starts
The journey starts once per call, after the call's summaries are written. A call nobody answered doesn't start it.
The calls of a consult start the journey once per consult, not once per call: after the consult completes and its call has ended.
Setting it up
Add the trigger to a journey like any other. Without rules, every answered WhatsApp call on the number starts the journey. To start it only for some contacts, add rules on their profile fields or segments, as on other triggers.
A call starts only one journey. When several journeys on the number have this trigger, give each one rules that match different contacts.
What @call holds
Type @ in a card to pick these from the Call menu.
| Expression | What it holds |
|---|---|
@call.uuid | The call's id |
@call.direction | inbound when the contact called, outbound when the number called |
@call.started_at | When the call started, in UTC |
@call.ended_at | When the call ended, in UTC |
@call.duration | How long the call lasted, in seconds |
@call.ai_handled | true when the AI answered |
@call.transcript | The call's transcript, one line per turn |
@call.notes | The notes written on the call |
@call.summaries.general | The general summary |
@call.summaries.soap | The SOAP summary |
@call.appointment.uuid | The consult's id, empty for a call outside one |
@call.appointment.start_at | When the booked slot starts, in UTC, empty when the consult started on the call |
@call.appointment.end_at | When the booked slot ends, in UTC, empty when the consult started on the call |
@call.appointment.started_at | When the consult started, in UTC |
@call.appointment.ended_at | When the consult ended, in UTC |
@call.appointment.doctor.name | The consult's doctor |
@call.appointment.doctor.email | The doctor's email |
A field the call doesn't have is empty: the @call.appointment fields of a call outside a consult, or a summary that wasn't written.