Triggers: schedules and webhooks
Run a workflow on a schedule or when another system posts to its webhook URL, and verify who is sending.
A trigger starts a workflow without anyone running it by hand: a schedule runs it at set times, and a webhook runs it when another system posts JSON to the workflow's URL.
Before you start
- You need permission to edit workflows.
- The workflow has a name and can be saved. A webhook URL is issued only after the workflow is saved. To build a workflow, see The workflow editor.
- For a webhook, the sending system must be able to POST JSON to a URL.
Run a workflow on a schedule
- Go to Workflows and open the workflow.
- In the Node Library, search for the schedule trigger node and add it to the canvas.
- Select the node to edit its properties.
- Under Quick Setup, select a preset such as Every 10 min or Every Day, or choose a Schedule Type.
- Enter the setting for that type, listed after these steps.
- Check Next Runs to confirm when the workflow runs.
- Make sure the schedule switch reads Schedule Active.
- Select File → Save.
| Schedule type | What you set |
|---|---|
| Interval | Run Every: how often the workflow runs. |
| Daily | Time of Day. |
| Weekly | Days of Week. |
| Monthly | Day of Month. |
| Custom Cron | Cron Expression, in the format minute hour day-of-month month day-of-week. For example, 0 9 * * 1-5 runs at minute 0 of hour 9, Monday to Friday. |
The schedule takes effect when you save. In Workflows, set the Status filter to Scheduled to find the workflow. After the first scheduled time passes, select Workflow → Run History… in the editor to see the run.
Pause or resume a schedule
- Select the schedule trigger node.
- Turn off the schedule switch so that it reads Schedule Paused. To resume, turn it on.
- Select File → Save.
The change applies when you save the workflow. Until then, the schedule keeps its previous state.
Schedules also pause when the workflow is deactivated. If the node reports that its schedule is paused for this reason, save the workflow to re-arm the schedule from the node's setting.
Run a workflow from a webhook
- Go to Workflows and open the workflow.
- In the Node Library, search for the webhook trigger node and add it to the canvas.
- Select File → Save. The node shows its Webhook URL only after the workflow is saved.
- Select the node, then select Copy URL.
- Enter the URL in the sending system as the address it posts JSON to.
- Make sure the workflow is active.
The URL accepts calls once the workflow is saved with this node and is active. Until then, the node shows "Not accepting calls yet".
The token in the URL is the credential. Treat the whole URL like a secret.
To check that it works, send a test delivery from the sending system. Then select Reload under Recent deliveries on the node, or select Workflow → Run History… to see the run.
Verify senders
With no other check set, the node reads URL token only: anyone who has the URL can run the workflow. Add one or more checks under Verified deliveries.
| Check | Use it when | What to do |
|---|---|---|
| Signing secret (HMAC) | The sender can sign its requests. | Select Generate, then paste the secret into the sender. |
| Shared header token | The sender can't sign. | Select Generate, then have the sender send the value in the header named in Token header. |
| Allowed source IPs | The sender posts from known addresses. | Enter the addresses the sender posts from. |
Every check you set must pass. Save the workflow for changes to take effect.
If the sender signs in its own way, open Advanced signature and set Signature header, Signed message, and Timestamp header to match it. Leave them empty to use the defaults.
Each secret has controls to reveal, copy, rotate, or clear it. Clearing a secret removes that check.
Use a provider preset
Provider applies a preset for a known sender. The preset sets the handshake the URL answers, the signature scheme, the headers the workflow may read, and the delivery ID used to drop a repeat delivery. Settings you make on the node win over the preset. Choose None (generic sender) for any other sender.
Two senders need extra care:
- Microsoft Graph. Graph can't sign a delivery or send a custom header. Clear the signing secret and the shared header token, select Generate under Client state, and pass the value as
clientStatewhen you create the subscription. Without a client state, only the secret URL guards the webhook. Use the async response, because Graph resends a notification that isn't acknowledged quickly. A batch of created notifications, or of notifications that carry an etag, that arrives again within 10 minutes is answered as a duplicate and doesn't run. - Telegram. Telegram sends a secret token only when the webhook was registered with a secret outside the Telegram Set Webhook node, with Token header set to
X-Telegram-Bot-Api-Secret-Token. Running the Set Webhook node again removes that secret, and every delivery is then rejected with 401.
Shape the data the workflow receives
The workflow always receives the decoded request body. These options control how the body becomes rows.
| Option | What it does |
|---|---|
| Root Path | A dotted path to unwrap before rows are emitted, such as data.object. Leave it empty to use the whole body. |
| Extract Fields | Reads a path in the body, such as customer.email, into a column you name. Select + Add field for each one. |
| Emit array body as one row per element | When the body is a JSON array, each element becomes one row. |
| Header names and Query names | Under Request details. Adds the headers and query parameters you name to each row under _request, for example _request.headers.x-event-type. A field path can read one into a column. |
| Keep files posted to this URL | Keeps files that a sender posts to the URL. |
| Allowed browser origins | Only needed for a web page that calls the URL directly. Server-to-server senders ignore it. |
Headers that can carry a credential, a signature, or a client address are never passed to the workflow. A run with no delivery behind it, such as a manual run, has no _request.
Choose how the URL answers
- Async — 202 ack, run in background answers the sender with 202 as soon as the delivery is accepted, then runs the workflow.
- Sync — wait for the run, answer with it waits for the run to finish and answers the sender with its result.
Rotate the webhook URL
Rotate the URL if it has been exposed.
- Select the webhook trigger node.
- Select Rotate.
- Confirm with Rotate URL.
- Select Copy URL and update every sender.
The previous URL stops working immediately. Anything that still posts to it gets 401 until you give it the replacement URL. If the rotation fails, the current URL still works.
Troubleshooting
- The node shows "Not accepting calls yet". Save the workflow with the webhook trigger node in it, and make sure the workflow is active.
- The sender gets a 401 response. The URL was rotated, or a check under Verified deliveries didn't pass. Confirm the sender has the current URL and the current secret. Run history lists deliveries that were rejected, with the status answered to the sender and the source address.
- Next Runs shows no next run. A schedule pauses when a next run can't be computed for it. Check the schedule settings, then save.
- A schedule stays paused after you save. Check that the node's switch reads Schedule Active, and that the workflow is active.
↳ Run, debug and version ↳ Inbound workflow webhooks ↳ Troubleshoot workflows