Skip to main content

Universal arguments

When Tuple executes your trigger, it passes in useful information via environment variables. These take the form TUPLE_TRIGGER_[name]. These arguments vary by trigger; however, there are two universal arguments that are available to every trigger that gets executed:

Events

The complete list of lifecycle events that you can respond to with triggers.

Call initiated

call-initiated Fired when you start an outgoing call to another person via the popover interface. Calling someone via the popover UI

Call incoming

call-incoming Fired when another participant calls your machine. Receiving an incoming call

Call rejected

call-rejected Fired when the person you’re calling rejects your call.

Call timed out

call-timed-out Fired when your outgoing call times out.

Call connected

call-connected Fired when your call is fully connected. (Receives no additional arguments)

Call ended

call-ended Fired when your call ends.

Call transcription started

call-transcription-started Fired when a call transcription starts. Transcription can be stopped and restarted within a single call, and each recording session fires its own started/complete pair — use TUPLE_TRIGGER_RECORDING_ID to address the exact session that just started rather than guessing from “the most recent call.”

Call transcription complete

call-transcription-complete Fired when a call transcription finishes, either because the call ended or transcription was disabled. Each started/complete pair is scoped to one recording session; use TUPLE_TRIGGER_RECORDING_ID so a summarizer trigger operates on that session only and doesn’t double-summarize a call whose transcription was restarted. A minimal call-transcription-complete handler that exports just the session that finished:

Room joined

room-joined Fired when you or someone else joins one of your team’s rooms.

Room left

room-left Fired when you or someone else leaves one of your team’s rooms.

Screen share started

screen-share-started Fired when you or someone else starts sharing their screen on a call.

Screen share ended

screen-share-ended Fired when you or someone else stops sharing their screen on a call.

Webcam share started

webcam-share-started Fired when you or someone else starts sharing their webcam on a call.

Webcam share ended

webcam-share-ended Fired when you or someone else stops sharing their webcam on a call.

Participant joined

participant-joined Fired whenever someone joins your call, whether it’s a call starting, someone being added, or someone joining the room you’re in.

Participant left

participant-left Fired whenever someone leaves your call.