# Start a workflow from Zoom events

> Run a workflow when Zoom reports a meeting, a participant, a recording, or a webinar, with a Webhook block set to Zoom.

To run a workflow when Zoom reports that a meeting started or ended, a participant joined, or a recording finished, add a **Webhook** block whose **Source** is **Zoom** and give its URL to an event subscription of your Zoom app. Zoom posts one event per request. Each event starts its own run.

The order of the steps matters. Zoom accepts the URL only after the block answers a validation request, and the block can answer only when the app's Secret Token is saved. Save the token before you select **Validate** in Zoom.

You need a Zoom app in the Zoom App Marketplace whose settings you can open, edit access to the workflow's project, and the member role or higher in the workspace to save the app's token on a connection. The Zoom steps happen in the app's own settings pages.

## Add the Webhook block and generate its URL

1. In a draft workflow, add a **Webhook** block. The block palette also lists **Zoom webhook** in the **Start** group, which adds the block with its source already set.
2. Under **Source**, choose **Zoom**. The line under the setting reads "Verifies the signature · one run per event".
3. Under **Webhook URL**, select **Generate URL**, then copy the URL.

The badge beside the URL reads "Runs start after publish". The URL contains a token, and anyone who has the URL can send requests to it. Keep it out of shared documents.

## Save the Secret Token on a connection

Zoom signs each request with the app's **Secret Token**. That token is the same for every event subscription of the app, so OutWin does not save it on the block. You save it once on an API connection, and each Webhook block that receives from the app chooses that connection.

1. In the Zoom App Marketplace, open your app and its **Access** page. Copy the **Secret Token**. Zoom also has a Verification Token, which it has deprecated. OutWin does not use it.
2. In OutWin, open **Connections**. If the workspace has no API connection for Zoom, [add one](https://outwin.ai/docs/build/connect-an-api/#add-an-api-connection). In the dialog, leave **Base URL** empty and set **Authentication** to **None**. The connection then only receives events. If your workflows also call the Zoom API, enter its base URL and credential instead, or add them later on the connection's page. This guide does not need them.
3. On the connection's page, under **Receiving events**, paste the token into the field that shows "Paste the signing secret" and select **Save**. The section then shows only a masked hint and the saved date, with **Replace** and **Remove**.
4. In the block's settings, under **Connection that holds the secret token**, choose the connection. Each connection in the list is marked "secret saved" or "no secret yet".

The line under the setting then starts "Verifying with the secret ending", followed by the hint. Under **Set up**, the second line changes to "The secret token is saved: deliveries are verified."

In a workspace with no API connection, the setting shows "No API connections yet." in place of the list, with an **Add one** link that opens **Connections**. If you choose a connection that has no secret, the line reads "This connection has no secret token yet." with a **Save it on the connection** link to its page.

With no connection chosen, or with a connection that has no secret, Zoom's validation fails and Zoom does not accept the URL. A request that reaches the block in that state is not verified, and anyone who has the URL can start the workflow. Publishing then shows a warning that ends "has no signing secret saved, so its deliveries are not verified: anyone who has this URL can start this workflow". The warning does not block publishing.

## Add the event subscription in Zoom

1. On your Zoom app's **Access** page, turn on event subscriptions and select **Add New Event Subscription**.
2. Choose the event types the subscription sends.
3. Paste the URL you copied into **Event notification endpoint URL**.
4. Select **Validate**, then **Save**. Zoom does not save the subscription until the validation succeeds.

When you select **Validate**, Zoom sends the URL a signed request with a token in it. The block checks the signature and answers with the token and a code made from it with the Secret Token. It does this on a draft too. **Recent deliveries** lists the request as **Handshake** with "Zoom confirmed the URL.", and the last line under **Set up** reads the same. It starts no run.

Zoom's documentation says it validates the URL again every 72 hours and disables the event subscription after six failed checks in a row. The block answers each check as long as the chosen connection holds the token, whether the workflow is a draft, published, or paused. Removing the token from the connection, or changing the block's URL with **Rotate token**, makes the next check fail.

The Webhook block offers these Zoom event types: `meeting.created`, `meeting.updated`, `meeting.deleted`, `meeting.started`, `meeting.ended`, `meeting.participant_joined`, `meeting.participant_left`, `meeting.registration_created`, `meeting.summary_completed`, `recording.started`, `recording.stopped`, `recording.completed`, `recording.transcript_completed`, `webinar.created`, and `webinar.ended`.

## Choose which events start a run

Under **Events that start a run**, tick the event types that start a run. With none ticked, every event Zoom sends starts a run. To start runs for a type that is not listed, type it into the box under the list and select **Add**.

An event whose type is not ticked is listed as **Filtered out** and starts no run. To narrow further by a field of the event, add a row under **Only when**. Zoom puts the details of an event one level down, so a field has a path that starts with `body.payload`, such as `body.payload.object.host_id`. [Webhook settings](https://outwin.ai/docs/reference/triggers-approvals-and-waits/#webhook-settings) lists the comparisons.

## Send a test and check what arrived

1. In Zoom, do something that causes one of the subscribed events, such as starting and ending a test meeting.
2. In OutWin, look under **Recent deliveries** in the block's settings.

**Recent deliveries** lists every event that reached the URL, including while the workflow is a draft. On a draft each event is listed as **Dropped** with "The workflow is not published, so nothing ran." It starts no run and is not run later. The last line under **Set up** changes from "Zoom confirmed the URL." to, for example, "Received meeting.started. Dropped."

With a token saved on the chosen connection, an event listed as **Dropped** on a draft has passed the signature check. A delivery that fails the check is listed as **Refused**.

If you have edit access, select an event to see what the block passed on. The list is kept for seven days, and the data of the newest 20 events is kept.

## Read the event in the next block

Each run receives one Zoom event. The body holds the event's name, its time, and a `payload` with the account and the meeting, recording, or webinar. An HTTP request block or a database block directly after the Webhook block reads it with these expressions. An AI block such as **Think** receives the whole value as its input.

| Expression | What it holds |
| --- | --- |
| `{{input.body}}` | The event as Zoom sent it, with the fields `event`, `event_ts`, and `payload`. |
| `{{input.body.payload.object}}` | The meeting, recording, or webinar. Its fields depend on the event type. |
| `{{input.body.payload.object.topic}}` | One field of the object: a meeting's topic. Read any other field the same way. |
| `{{input.event.type}}` | The event's type, such as `meeting.started`. It is the body's `event` field. |
| `{{input.event.id}}` | Empty. Zoom sends no id for an event. |
| `{{input.event.time}}` | The event's time as an ISO 8601 date and time. `{{input.body.event_ts}}` holds the same moment as Zoom sent it, in milliseconds. |
| `{{input.delivery.verified}}` | `true` only when the signature was checked and passed. |

A block further along reads the same values through the Webhook block's name, as in `{{steps["Zoom"].body.payload.object.topic}}` for a block named `Zoom`. [Data and context](https://outwin.ai/docs/reference/data-and-context/) describes what each block passes on.

## Publish and check the runs

[Publish the workflow](https://outwin.ai/docs/run/publish-and-start/). From then on, each event that passes the filter starts a run. On a published workflow the block's settings are read-only, including the choice of connection, and **Recent deliveries** is in the block's inspector. You can still replace the token on the connection's page.

| Outcome | What happened |
| --- | --- |
| **Ran** | The event started a run. |
| **Waiting** | 10 runs of the workflow are already active. The event starts a run when one of them ends. An event that waits longer than an hour is listed as **Dropped**. |
| **Handshake** | Zoom's validation of the URL, when you select **Validate** and every 72 hours after. It starts no run. |

OutWin does not skip duplicates for Zoom. Zoom sends no id for an event, so OutWin cannot tell a repeated delivery from a new event, and each one starts a run.

OutWin also does not check how old a Zoom request is, because Zoom documents no limit for it. A copy of a signed Zoom request that is sent to the URL again therefore passes the check and starts another run each time. If a second run for the same event would do harm, have the workflow record what it has handled, for example the meeting's `uuid` in a database, and stop when the same one arrives again.

Runs start in the order events arrive. That is not always the order things happened, so do not build a workflow that relies on `meeting.participant_left` arriving before `meeting.ended`.

Receiving an event costs no credits, and neither does an event that is filtered out or a handshake. A run that starts uses credits for the blocks that run in it.

## If nothing runs

Open **Recent deliveries** and read the outcome and the sentence beside the newest event.

| What you see | Cause | Fix |
| --- | --- | --- |
| "Nothing has arrived yet." | No request has reached the URL, not even the validation. | Check that **Event notification endpoint URL** in the Zoom app is the block's current URL. **Rotate token** on a published workflow changes the URL, and the old one stops working. |
| **Handshake** with "Zoom asked to confirm the URL, which needs the Secret Token. Save it on the connection, then validate the URL in Zoom again." | Zoom's validation arrived while the block had no connection chosen, or a connection with no secret. The block could not answer, and Zoom did not accept the URL. | Save the **Secret Token** on the connection, choose the connection in the block's settings, and select **Validate** in Zoom again. |
| **Handshake** with "Zoom confirmed the URL." and nothing else | Zoom accepted the URL, and no subscribed event has happened since. | Check that the event subscription was saved after the validation and that it sends the event you caused, and cause it again. |
| **Dropped** with "The workflow is not published, so nothing ran." | The workflow is a draft. | Publish the workflow. Events that arrived before then are not run later. |
| **Dropped** with "The workflow is paused, so nothing ran." | The workflow is paused. | Resume the workflow. Events that arrived while it was paused are not run later. |
| **Filtered out** with `Events of type "meeting.updated" are not chosen on this trigger.` | The event's type is not ticked under **Events that start a run**. | Tick the type, or clear every tick so that all events start a run. The settings are read-only on a published workflow. |
| **Refused** with "The signature did not match. Check that the secret saved here is the one the sender shows for this URL." | The secret on the chosen connection is not the app's **Secret Token**. This can happen when the block chose another service's connection, when the Verification Token was copied in its place, or when the token was replaced in Zoom. Zoom's validation also fails while this is the case. | Copy the **Secret Token** from the app again and select **Replace** under **Receiving events** on the connection's page. You do not republish the workflow. Then select **Validate** in Zoom again if Zoom did not accept the URL. |
| **Refused** with "The request carried no signature." | A secret is saved on the chosen connection, and the request did not carry Zoom's signature. A request sent by hand to try the URL has none. | Cause the event in Zoom so that Zoom sends the request. |
| Events arrived for some days and then stopped | Zoom disabled the event subscription after its repeated validation failed six times in a row, for example because the token was removed from the connection. | Save the token on the connection again. In the Zoom app, turn the event subscription back on, select **Validate**, then **Save**. |

A delivery listed as **Refused** is answered with status `401` and starts nothing. OutWin keeps none of its data. Zoom's documentation says it does not send an event again after an answer of that kind. For every other outcome in the table, Zoom receives a success response and OutWin does not run the event later.
