Skip to main content

When a call ends

Private beta

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.

ExpressionWhat it holds
@call.uuidThe call's id
@call.directioninbound when the contact called, outbound when the number called
@call.started_atWhen the call started, in UTC
@call.ended_atWhen the call ended, in UTC
@call.durationHow long the call lasted, in seconds
@call.ai_handledtrue when the AI answered
@call.transcriptThe call's transcript, one line per turn
@call.notesThe notes written on the call
@call.summaries.generalThe general summary
@call.summaries.soapThe SOAP summary
@call.appointment.uuidThe consult's id, empty for a call outside one
@call.appointment.start_atWhen the booked slot starts, in UTC, empty when the consult started on the call
@call.appointment.end_atWhen the booked slot ends, in UTC, empty when the consult started on the call
@call.appointment.started_atWhen the consult started, in UTC
@call.appointment.ended_atWhen the consult ended, in UTC
@call.appointment.doctor.nameThe consult's doctor
@call.appointment.doctor.emailThe 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.