# Triggers, approvals, and waits

> Look up what starts a run, what makes a branch wait, and what sends it onward.

A **Start** block creates a run. A **Pause** block waits inside a run that already exists.

## Start blocks

| Block | Trigger | Output |
| --- | --- | --- |
| **Manual** | An editor selects **Run** on a published workflow. No required settings. | A start signal with no request body. |
| **Webhook** | An HTTP request arrives at the trigger URL while the workflow is published. **Generate URL** is available in the draft. **Source** names the sender: a service from the list, such as Stripe or GitHub, or Custom, the default. See [Webhook settings](https://outwin.ai/docs/reference/triggers-approvals-and-waits/#webhook-settings). | The request’s `method`, `query`, `headers`, and `body`. `event` with the event’s `source`, `type`, `id`, and `time`. `delivery` with the delivery’s `id`, `receivedAt`, `verified`, `index`, and `count`. When one request carries a list of events (SendGrid, HubSpot, Mailchimp Transactional (Mandrill), Microsoft Graph, Asana, or a Custom source set to a list), each event starts its own run and `body` is that one event. |
| **Interval** | The configured interval elapses. The interval uses the configured number and unit. | A start signal. |
| **Schedule** | The configured calendar time arrives in the selected time zone. | A start signal. |

Multiple Start blocks can exist in one workflow. Each trigger starts a separate run. New runs require a published workflow. Trigger attempts while the workflow is paused or unpublished are not replayed.

## Webhook settings

The settings of a **Webhook** block, in the order the panel shows them.

| Setting | What it does |
| --- | --- |
| **Source** | The service that sends the requests: SendGrid, Stripe, GitHub, Shopify, HubSpot, Slack, GitLab, Linear, Jira, Zendesk, Typeform, Square, Paddle, Calendly, Resend, Standard Webhooks, Postmark, Twilio, Airtable, Zoom, Discord, WooCommerce, Intercom, Mailchimp Transactional (Mandrill), Mailchimp, Microsoft Graph, Asana, Notion, PayPal, Google Drive, Google Calendar, Gmail, Slack slash commands, Slack interactivity, Twilio incoming messages and calls, Discord interactions, or Custom. That is 36 named sources and Custom. Slack has three of them, and Twilio and Discord have two each, because each is a different URL setting at the sender. A new block is set to Custom. A line under the setting states what the source implies, such as "Verifies the signature · one run per event · skips duplicates". For Google Drive and Google Calendar it reads "Checks the credentials the sender repeats · one run per event · skips duplicates", with the same first part as Postmark and Microsoft Graph. For Gmail it reads "Verifies the sender's signed token · one run per event · skips duplicates". Slack slash commands, Slack interactivity, Twilio incoming messages and calls, and Discord interactions read "Verifies the signature · one run per event · skips duplicates". The last part is absent for Calendly, Airtable, Zoom, and WooCommerce. They send no event id, so a delivery that any of them sends twice starts a second run. While **Source** is Custom, an offer to use a named source can appear under that line. It is described under this table. The block palette also lists each service by name in the **Start** group, such as "Stripe webhook", "Google Drive webhook", or "Slack slash commands webhook". Choosing one adds a Webhook block with that source. |
| **Webhook URL** | The address the sender sends requests to. Select **Generate URL** in a draft, then copy the URL. On a draft the badge reads "Runs start after publish". A workflow cannot be published until the URL is generated. |
| The secret, labelled with the sender’s own term | Proves that a delivery came from the sender. For every source except the sources of Shopify, HubSpot, Slack, Twilio, Zoom, Discord, and Intercom, the secret belongs to one webhook. For most of them, paste it in the panel and select **Save**, as with SendGrid (**Verification key**), Stripe (**Signing secret**), and GitHub (**Secret**). Afterward only the last four characters show, with **Replace** and **Remove**. Postmark signs nothing. Its field is labelled **Basic auth credentials** and holds the username and password set on the webhook in Postmark, saved as `username:password`. Microsoft Graph signs nothing either. Its field is labelled **clientState** and holds the `clientState` chosen when the subscription was created, up to 128 characters. PayPal’s field is labelled **Webhook ID**. It holds the id PayPal shows beside the URL in the PayPal Developer Dashboard, under Apps & Credentials, the app, Webhooks. It is an id, not a secret, and it is pasted and saved the same way. Deliveries are checked against PayPal’s certificate, which OutWin fetches from PayPal. Google Drive and Google Calendar sign nothing. Their field is labelled **Channel token**. The person chooses the value, up to 256 characters, long and random. It is pasted and saved in the panel, and given as `token` in the watch request that makes the channel. Google repeats it in the `X-Goog-Channel-Token` header of every message. A message that carries another value is listed as Refused with "The value the request carried did not match the one saved here." Gmail’s field is labelled **Service account email**. It holds the address of the service account chosen on the Google Cloud Pub/Sub push subscription, with Enable authentication turned on. It is an address, not a secret, and it is pasted and saved the same way. Afterward the panel shows its last four characters like any saved value, and the second line under **Set up** reads "The service account email is saved: deliveries are verified." Each delivery is checked by the token Google signs for that account and this URL, against Google’s keys, which OutWin fetches from Google. Asana and Notion make the secret themselves and send it to the **Webhook URL**. Asana’s is labelled **Hook secret** and Notion’s **Verification token**. Once the URL is generated, an editor sees a **Connect** button and the line "Asana sends its hook secret to this URL. Press Connect first: it is accepted for the next 15 minutes only." Notion’s line names Notion and its verification token. After **Connect**, the panel shows the time the wait ends, for example "Waiting for Asana until 2:45 PM. Create the webhook in Asana now." For Notion it reads "Waiting for Notion until 2:45 PM. Create the subscription in Notion now, or send the token again from there." **Stop waiting** ends the wait early. The first secret that arrives in the 15 minutes is saved, and the wait ends. A secret that arrives when the block is not waiting is not saved, and **Recent deliveries** says so. Asana’s panel also has a field that shows "Or paste the hook secret", with **Save**. The secret is in the reply to the Asana API call that creates the webhook, as `X-Hook-Secret`. Notion has no paste field. Once Notion’s token has arrived, **Show the verification token** appears with a line such as "Paste it into Notion to finish. It can be shown until 3:00 PM." That time is 15 minutes after the token arrived. The button shows the token with **Copy** and **Hide**. Paste it into the Webhooks tab of the connection in Notion and select Verify there. Until that time the line under the field reads "It is stored encrypted, and is not shown again after that time." Afterward the token is not shown again. A secret that a person typed is never shown. For every source of Shopify, HubSpot, Slack, Twilio, Zoom, Discord, and Intercom the secret belongs to the whole account or app. Slack’s is labelled **Signing Secret**, Twilio’s **Auth Token**, Zoom’s **Secret Token**, Discord’s **Public Key**, and Intercom’s **Client secret**. The three Slack sources take the same Signing Secret, the two Twilio sources the same Auth Token, and the two Discord sources the same Public Key, so one connection serves every block that receives from the same Slack app, Twilio account, or Discord application. The panel has a connection picker, and the secret is saved on that API connection’s page under [**Receiving events**](https://outwin.ai/docs/build/connect-an-api/). With a secret saved, a delivery whose signature fails starts no run and is listed as Refused. With no secret saved, deliveries are not verified and anyone who has the URL can start the workflow. Publishing then shows a warning and is not blocked. |
| **Set up** | A checklist: the URL is generated, the secret is saved, and what has arrived. For Asana, until the secret is saved the second line reads "Press Connect, then set up the webhook in Asana: it sends the hook secret here." For Notion it reads "Press Connect, then set up the webhook in Notion: it sends the verification token here." The last line reads "Waiting for the first event…" until a delivery arrives, then, for example, "Received issues. Ran." |
| **Events that start a run** | Tick the source’s event types to start runs only for those. A box adds a type that is not listed. With none ticked, every event starts a run. Standard Webhooks lists no types, only the box, which shows "Another event type". Airtable’s and Gmail’s deliveries have no type, so there are no types to choose and every delivery starts a run. Google Drive lists `change`, `changed`, `add`, `update`, `remove`, `trash`, and `untrash`. Google Calendar lists `exists` and `not_exists`. Slack slash commands lists no types, only the box. Its type is the command with its slash, such as `/deploy`. Slack interactivity lists `block_actions`, `shortcut`, `message_action`, `view_submission`, `view_closed`, and `interactive_message`. Twilio incoming messages and calls has no type, so there are no types to choose and every delivery starts a run. Discord interactions lists no types, only the box. Its type is the command’s name, or the custom id of a button or modal. |
| **Only when** | Condition rows. Each has a field path such as `body.status`, a comparison (is, is not, contains, is present), and a value. A block can have up to 20. An event that fails the filter is recorded as "Filtered out", starts no run, and costs nothing. |
| **Reply** | Shown only when **Source** is Slack slash commands, Twilio incoming messages and calls, or Discord interactions. These senders show the block’s answer to a person at once, before a run can write one. The field is a text box with the placeholder "Got it, working on it." It holds plain text: an expression in it is not evaluated, and every delivery gets the same text. The text can be up to 2,000 characters for Slack slash commands and Discord interactions, and up to 1,500 for Twilio incoming messages and calls. Slack shows the text to the person who typed the command, and to no one else. Twilio sends it back as a message, or speaks it to a caller. Discord shows it to the person who used the command or the button, and to no one else. The text is sent only when the event is queued to run. It is not sent on a draft, a paused workflow, or a disabled trigger, or for a ping, a filtered event, an event that is too large, a duplicate, or a full queue. Those deliveries get the answer an empty field gives. With the field empty, Slack shows nothing and Twilio sends nothing back. On Discord, with the field empty and a run queued, a command shows that the app is thinking until the workflow edits the reply with an HTTP request block, which it has 15 minutes to do. A button or a form shows nothing. When nothing will run, a Discord command is answered "This command is not running right now.", shown to that person alone, and a button or a form shows nothing. The credit balance, the subscription, and overdue payment are checked when the run starts, after the reply. With no credits, no subscription, or a payment overdue, the text is sent and no run follows. Changing **Source** clears the text. Slack interactivity has no **Reply** field. |
| **Recent deliveries** | Every event that reached the URL, with its outcome (Ran, Waiting, Filtered out, Duplicate, Ping, Handshake, Refused, Dropped, Failed), the time, and one sentence. An editor can open an event to see what the trigger passed on. The list is kept for seven days, and the data of the newest 20 events is kept. A delivery that reaches a draft is listed as Dropped with "The workflow is not published, so nothing ran." |
| **Advanced** | Custom only. Whether one request carries one event or a list, which is the body or a field of it. Where the event’s type, id, and time are: a header, the body, or the query. The signature check: None, A signature in a header (HMAC), Standard Webhooks, or A secret value in a header. **Accepted methods**, with POST by default. A named source decides these itself. |

On a draft, when **Source** is Custom and a delivery has arrived that looks like one named source, an editor sees an offer under the line that states what the source implies. For Stripe it reads "The last delivery looks like it came from Stripe. With that source, deliveries can be verified and are read the way Stripe sends them.", with two buttons, **Use Stripe** and **Keep Custom**. The name is the source’s name as the **Source** list shows it. **Use Stripe** does what choosing Stripe in the **Source** list does: the event types chosen and any **Reply** text are cleared, and the **Webhook URL** is unchanged. A secret saved on the Custom block stays on the block. It was saved for Custom’s own check, so deliveries verify only after the sender’s own secret is saved. **Keep Custom** hides the offer until the block’s settings are opened again, and that choice is not saved. Nothing changes unless a button is selected. The offer is not shown on a published or paused workflow.

The offer names the source of a delivery that could be recognised, and it changes at most once in 10 minutes. A recognisable delivery from another service that arrives sooner does not replace it. A delivery that looks like no named source, or like more than one, brings no offer and leaves an earlier offer as it was. A delivery to a draft counts. A request that the Custom block’s own signature check refuses is not considered. Rotating the **Webhook URL** removes the offer. Gmail and Resend are never offered: any Google Cloud Pub/Sub push looks like Gmail’s, and Resend’s signature is one that many other services send. A Twilio call is not recognised, only a Twilio message. A webhook of a kind that a named source does not cover is not offered that source: a GitLab webhook with the older secret token, a Zendesk webhook attached to a trigger or automation, a Jira webhook with no secret, or a HubSpot request with only the older signature. The offer is read from the request’s headers and fields. It does not verify the delivery and does not prove who sent it.

Twenty-two sources cover one kind of webhook or have a condition of their own. A service that is not in the **Source** list is set up as Custom.

| Source | What it covers |
| --- | --- |
| GitLab | Webhooks that use GitLab’s signing token, which GitLab 19.0 and later issues. A webhook with the older secret token is set up as Custom, with the signature check under **Advanced** set to A secret value in a header. |
| Jira | Webhooks an administrator registers in Jira’s settings. An app’s webhooks are not covered. |
| Zendesk | Webhooks subscribed to events. A webhook attached to a Zendesk trigger or automation is set up as Custom. |
| Square | A delivery verifies only when the notification URL entered in Square is the block’s **Webhook URL** exactly. |
| Standard Webhooks | Any sender that signs to the Standard Webhooks specification. |
| Twilio | Status callbacks: a message or call changing status. An incoming message or call belongs to the Twilio incoming messages and calls source. Twilio sends no event id, so the block builds one from the message or call and its status, and a repeated callback starts no second run. |
| Airtable | Each delivery is a notice that a base changed and carries no change. A workflow fetches the changes with an HTTP request block. |
| Zoom | Zoom validates the URL when it is saved and again every 72 hours, and only the Secret Token can answer. Save the Secret Token on the connection before selecting **Validate** in Zoom. A validation that arrives with no token saved is listed with "Zoom asked to confirm the URL, which needs the Secret Token. Save it on the connection, then validate the URL in Zoom again." |
| Discord | Webhook Events. Interactions, such as slash commands and buttons, belong to the Discord interactions source, on a block of its own. Save the Public Key on the connection before giving the URL to Discord. Discord tests the URL with deliberately wrong signatures and removes a URL that does not refuse them. |
| Mailchimp Transactional (Mandrill) | A delivery verifies only when the URL entered in Mailchimp Transactional is the block’s **Webhook URL** exactly. |
| Mailchimp | Audience webhooks. Mailchimp signs only when signing is turned on for the webhook, and shows the secret once, when the webhook is created. |
| Microsoft Graph | Basic change notifications. Notifications that include the resource are not covered. A notification says what changed, and a workflow fetches the thing itself with an HTTP request block. Graph’s API takes OAuth access tokens that last about an hour. An API connection holds a fixed credential and has no OAuth sign-in, so the request works only with a credential Graph accepts, which the person supplies and keeps current. OutWin does not sign in to Microsoft or renew a token. Every notification must carry the saved `clientState`. One that does not causes the whole request to be listed as Refused, so one URL should serve subscriptions created with one `clientState`. Subscriptions expire, and OutWin does not renew them. |
| Asana | Webhooks are created through Asana’s API. Asana has no settings screen for them. Select **Connect** before creating the webhook. One request carries a list of events, and each starts a run. The event type is the kind of thing and what happened, joined with a dot, such as `task.changed` or `story.added`. Asana sends no event id, so a duplicate is judged by the thing, the action, the time, and the changed field. An event says what changed, and a workflow fetches the task itself with an HTTP request block. An empty list, which is Asana’s heartbeat, starts no run. |
| Notion | Select **Connect** before creating the subscription in Notion. The subscription delivers only after the token is pasted back into Notion. An event says what changed, such as `page.created`, `page.properties_updated`, or `comment.created`, and a workflow fetches the page with an HTTP request block. |
| PayPal | The Webhook ID must be the one PayPal shows for this URL. A delivery signed for another webhook is listed as Refused with "The signature did not match. Check that the webhook ID saved here is the one PayPal shows for this URL." Events from PayPal’s webhook simulator cannot be verified with a real webhook’s id. |
| Google Drive | A delivery has no body. The event type is the `X-Goog-Resource-State` header: `change` on a channel that watches all changes, and `add`, `update`, `remove`, `trash`, or `untrash` on a channel that watches one file. A workflow asks Drive what changed with an HTTP request block. Google’s API takes OAuth access tokens that last about an hour. An API connection holds a fixed credential and has no OAuth sign-in, so the request works only with a credential Google accepts, which the person supplies and keeps current. OutWin does not sign in to Google or renew a token. Channels are made through Google’s API and expire, and OutWin does not make or renew them. A new channel needs a new id. The channel token is not passed on in `headers`. Google’s other `X-Goog-` headers are. |
| Google Calendar | A delivery has no body. The event type is the `X-Goog-Resource-State` header, which is `exists` for every change: something made, changed, or deleted. A workflow asks Calendar what changed with an HTTP request block. Google’s API takes OAuth access tokens that last about an hour. An API connection holds a fixed credential and has no OAuth sign-in, so the request works only with a credential Google accepts, which the person supplies and keeps current. OutWin does not sign in to Google or renew a token. Channels are made through Google’s API and expire, and OutWin does not make or renew them. A new channel needs a new id. The channel token is not passed on in `headers`. Google’s other `X-Goog-` headers are. |
| Gmail | Deliveries come through Google Cloud Pub/Sub, from a push subscription whose endpoint is the **Webhook URL**. `body` is Pub/Sub’s message, with `message.data` already decoded to `{ emailAddress, historyId }`. There is no event type, and `event.id` is Pub/Sub’s message id. A delivery says only that the mailbox changed. A workflow asks Gmail for the history since its own stored history id with an HTTP request block. Google’s API takes OAuth access tokens that last about an hour. An API connection holds a fixed credential and has no OAuth sign-in, so the request works only with a credential Google accepts, which the person supplies and keeps current. OutWin does not sign in to Google or renew a token. The subscription’s endpoint must be the block’s URL exactly, and its audience must be left empty. The topic, the subscription, and the Gmail watch belong to the person, and OutWin does not renew the watch. The token says who is calling and for which URL. It does not cover the message’s body. A delivery with no token is listed as Refused with "The request carried no signed token. Turn on authentication in the push subscription and choose a service account." One whose token names another URL: "The request's token was made for a different URL. The subscription's endpoint must be this block's URL exactly as shown, and its audience left empty." One from another service account: "The request's token is for a different service account than the one saved here." When the saved value is not an address: "The saved service account email is not an email address. Save it again exactly as Google Cloud shows it." |
| Slack slash commands | The slash commands of a Slack app. Each command has its own Request URL in the Slack app, and several commands can point at one block. `event.type` is the command with its slash, such as `/deploy`. |
| Slack interactivity | Buttons, menus, shortcuts, and modals, which Slack sends to the app’s one interactivity Request URL. Slack sends a form whose `payload` field holds the interaction. `body` is that payload, already read out of the field. There is no **Reply** setting: every interaction is answered with status 200 and an empty body. |
| Twilio incoming messages and calls | The request Twilio makes when a message or a call reaches a number. Only POST is accepted. There is no event type, and `event.id` is the id of the message or the call. A request that carries no message or call id of Twilio’s form is listed as Filtered out with "The request carries no id of the form this sender uses, so it is not one the sender made as it is. Nothing ran." Status callbacks belong to the Twilio source. |
| Discord interactions | Commands, buttons, and modals, which Discord sends to the application’s Interactions Endpoint URL. `event.type` is the command’s name, or the custom id of a button or modal. Save the Public Key on the connection before giving the URL to Discord. An autocomplete request is answered with no suggestions and starts no run. Webhook Events belong to the Discord source. Each is a different URL at Discord, so each needs its own block. |

Every request header is passed on except credentials: authorization, cookie, and API-key headers. A delivery body can be up to 1 MB. GitHub’s ping, Discord’s ping when the URL is saved, an Intercom ping that carries a signature, a Discord autocomplete request, Slack’s certificate check on a slash command’s URL when it carries a signature, and the `sync` message Google Drive and Google Calendar send when a channel is made are recorded as "Ping" and start no run.

Some senders confirm the URL before they deliver, and Asana and Notion send their secret to the URL the same way. The block answers these requests automatically, including before publishing. Each is listed as Handshake and starts no run.

| Sender | What is answered |
| --- | --- |
| Slack | The URL challenge. |
| Slack slash commands | The certificate check (`ssl_check=1`) that Slack sends to a command’s URL, when it carries no signature. The delivery reads "Slack slash commands checked that the URL answers." |
| Zoom | The URL validation. Zoom accepts the answer only when the Secret Token is saved. |
| Discord interactions | The ping Discord sends to the interactions URL. With the Public Key saved, the delivery reads "Discord confirmed the URL." With no key saved, it reads "Discord pinged the URL, but no Public Key is saved, so its signature was not checked. Discord will refuse the URL until the key is saved on the connection." |
| Microsoft Graph | The validation token sent when a subscription is created. The delivery reads "Microsoft Graph confirmed the URL." |
| WooCommerce, Intercom, Mailchimp, Mailchimp Transactional (Mandrill) | The URL check each makes when a webhook is saved. The delivery reads, for example, "WooCommerce checked that the URL answers." An Intercom ping that carries no signature is answered the same way. |
| Asana | The request that carries its secret. When the block is waiting, the delivery reads "Asana connected: its secret is saved, and deliveries are verified from now on." When it is not, the delivery reads "Asana sent a secret, but this trigger was not waiting for one, so it was not saved. Press Connect in the block's settings, then create the webhook in Asana again." and Asana’s call to create the webhook fails. |
| Notion | The request that carries its verification token. When the block is waiting, the delivery reads "Notion sent its verification token, and it is saved. Copy it from the block's settings and paste it into Notion to finish." When it is not, the delivery reads "Notion sent a verification token, but this trigger was not waiting for one, so it was not saved. Press Connect in the block's settings, then send the token from Notion again." |

On a published or paused workflow the settings are read-only. The block’s inspector shows the live URL, whether deliveries are verified, **Rotate token**, **Send test payload**, and **Recent deliveries**. A secret saved in the panel can be replaced there without unpublishing, and on a published workflow an editor can select **Run this event** on an event whose data is still kept.

## Pause blocks

| Block | Required setup | Continuation |
| --- | --- | --- |
| **For approval** | **Approval message**. **Who can approve** defaults to **Anyone with edit access**. A specific approver must be a project editor. | Approval passes the input through unchanged. Rejection stops the branch. There is no automatic timeout. |
| **For input** | **Prompt**. Use **Answer required** to disallow empty answers. | An editor submits an answer, up to 20,000 characters. The next block receives the prior data and answer. |
| **For duration** | A duration and unit. | Continues after the duration has elapsed from the time the branch reached the block. |
| **Until date** | **Resume at** and a time zone. | Continues at the specified time. A branch that arrives after that time continues immediately. |
| **Until webhook** | A callback URL generated for the block. | Continues when a request reaches the callback URL for the waiting run. The next block receives the prior data and callback data. |

A waiting branch appears in the **Inbox**. See [Find why a run is waiting](https://outwin.ai/docs/run/follow-a-run/find-why-a-run-is-waiting/) for how to inspect the pause and confirm what follows.
