Workflows
Workflows run steps automatically when a form is submitted, when a submission's status changes, when a data list's entries change, or on a schedule.
A workflow is a set of steps that runs on its own when something happens: a visitor submits a form, a submission's status changes, an entry is published, or a scheduled time comes. Use workflows to send confirmation emails, give orders a reference number, save a submission to a data list, update stock, or call another service.
You can see every workflow under Content › Workflows in the panel at https://accounts.in1s.com.
Where workflows are made
Each workflow belongs to what triggers it, and you add its steps there:
| Trigger | Where to add steps |
|---|---|
| A form's submissions | The form's settings, Automations tab, Automations card |
| A data list's entries | The list's Settings, Automations card |
| A schedule | The Workflows page, Scheduled card |
Steps that share a trigger run in order, as one workflow.
Add a step
-
Add an action
In the card, select Add action. Under What do you want to do?, choose an action; More options shows the rest.
-
Choose when it runs
Under When should this run?, pick the trigger, for example When someone submits or When status changes to a status.
-
Configure the action
Fill in the action's settings and select Add.
To change a step, use its edit button. Deleting a workflow's last step deletes the workflow.
Triggers
When someone submits- Runs right after a visitor submits the form.
When status changes to …- Runs when a submission's status changes to the chosen status, whether you, a teammate, a workflow, an automatic expiry rule or another service changed it. Offered once the form has statuses.
When a waitlisted item is back in stock- Runs for each waiting submission when the item it waits for is available again. Offered while the form has Waitlist notifications turned on; see Forms.
When an entry is created- Runs when an entry is added to the list by you, a teammate, the AI tools or a workflow. Not by an import.
When an entry changes- Runs when a saved entry changes, including when it is published or unpublished.
When an entry is published- Runs when an entry goes live, by hand or at its scheduled time.
When an entry is moved to the trash- Runs when an entry is moved to the trash.
On a schedule- Runs Every hour, Every day or Every week, at a time and on a day you choose, in the Time zone you choose. For an hourly schedule only the minutes count.
Actions
Some actions only make sense for a form submission; the picker offers only the actions that fit the trigger.
Send an email
Sends an email, for example a confirmation to the visitor or an alert to your team. Works with every trigger.
- To – one or more addresses separated by commas, up to 5. Use a value from the submission, such as
{{email}}, to write to the visitor. - Subject and Body – per language; the visitor gets the text in the language they used on your site. Line breaks in the body are kept.
- Reply-to – optional address for replies.
Use {{field_id}} to insert an answer. Other values you can use include {{ reference_number }}, {{ form.name }} and {{ submission.id }}, plus {% if %} blocks. For entry triggers, the entry's field values are available by their field IDs, and under entry, for example {{ entry.id }}. Visitors' answers are always escaped in the body.
Emails are sent from your website's sender name; see Email sending.
Assign a reference number
Gives each submission a unique, sequential number such as ORD-00001. Set the Prefix (default REF) and the Pad length, the number of digits (default 5). Submissions only.
Save to a list
Creates an entry in one of your data lists, for example to turn each order into a record. Works with every trigger.
- Data list – where to save.
- The title of the new entry, for example
New order from {{name}}. - Field mapping – with Add mapping, pair each list field with a value, usually
{{field_id}}from the submission.
Update a record
Changes an existing entry that a submission points to, for example reducing a product's stock when it is ordered. Submissions only.
- Reference field – the form's Entry Reference field that names the entry.
- Operations – for each field to change, choose Set, Increment or Decrement and where the value comes from.
Set submission status
Changes the submission's status, for example to Confirmed. Setting the status it already has does nothing. The change is checked against the form's transition rules. Submissions only.
Set a field value
Writes a fixed value, or a value from another field, into one of the submission's fields. Submissions only.
Find a submission
Looks up a submission of another form, so later steps can use its values. Works with every trigger.
- Form – the form to search.
- Match when – at least one condition, on a status or a field. Every condition must hold.
- If several match – use the newest or the oldest.
- Output variable – the name later steps use, for example
{{found.result.field_id}}.
Wait
Pauses the workflow for a number of minutes, hours or days, up to 30 days, before the next step. Turning the workflow off while it waits ends the run. Works with every trigger.
Send an HTTP request
Calls another service, such as an API, Zapier or a CRM. Works with every trigger.
- Method – GET, POST, PUT, PATCH or DELETE.
- URL – type the host yourself; values from the submission can fill the path and query and are URL-encoded.
- Headers – add them with Add header. An
Authorizationvalue is stored encrypted and shown as dots afterwards. - JSON body – for POST, PUT and PATCH. Put each inserted value inside quotes; values are escaped so the body stays valid JSON.
- Sign the request – adds a signature so the service can check the request came from your site. See Signed requests.
The request must go to a public address, and redirects are not followed. A request that fails with a 5xx, 408 or 429 status, or gets no answer, is tried up to 3 times.
Continue after a failure
Each step has Continue the workflow if this step fails. When it is off, a failed step stops the steps after it.
Signed requests
To sign HTTP requests, open the workflow's page and, in the Signing secret card, select Create secret. The secret is shown once: copy it into the receiving service. Replace secret makes a new one. A signed step fails, sending nothing, until the workflow has a secret.
A signed request carries:
X-Workflow-Timestampheader- The time of the request, in Unix seconds.
X-Workflow-Signatureheadersha256=followed by the hex HMAC-SHA256, made with the secret, of the timestamp, the method in capitals, the full URL and the body, each on its own line. The body part is empty for GET and DELETE.X-Workflow-Deliveryheader- An id that stays the same when the request is retried, so the service can ignore repeats. Sent with every request, signed or not.
const crypto = require('crypto');
function isValid({ timestamp, method, url, body, signature }, secret) {
if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false; // refuse old requests
const signed = `${timestamp}\n${method.toUpperCase()}\n${url}\n${body || ''}`;
const expected = 'sha256=' + crypto.createHmac('sha256', secret).update(signed).digest('hex');
return signature.length === expected.length
&& crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected));
}
Checking the timestamp stops someone from replaying a captured request later.
Manage workflows
The Workflows page lists every workflow with how many times it has run and when it last ran. From there you can:
- switch a workflow on or off with its switch;
- Duplicate it (the copy starts switched off);
- open it to see its details.
A workflow's page has two tabs:
- Configuration – the Trigger (event, form or data list, status, schedule and next run), the Actions in order, with Edit steps to change them, and the Signing secret card.
- History – the workflow's runs.
The Enabled switch and Delete are at the top. Deleting a workflow is permanent. Workflows your theme installed cannot be deleted; turn them off instead. History at the top shows earlier versions of the workflow's settings.
Run history and retry
Each time a workflow runs, a run is recorded. Open the History tab to see the runs, newest first, with their trigger and status:
| Status | Meaning |
|---|---|
| Pending | Waiting to start |
| Running | In progress |
| Waiting | Paused by a Wait step |
| Completed | Every step finished |
| Failed | A step failed |
| Skipped | Nothing needed doing |
Expand a run to see each step's result, any warnings and how long it took. A failed run has a Retry button, unless the panel explains why it cannot be retried. A submission's page also lists its runs in its Activity card.
Successful runs are kept for 30 days and failed runs for 90 days.
Limits and safeguards
- Up to 10 workflows per form, 10 per data list and 10 scheduled workflows per website.
- Emails are limited to 100 a minute per website, and HTTP requests to 120 a minute. Steps over the limit wait and are sent when there is room.
- Workflows cannot trigger themselves in an endless loop. A chain of workflows that set statuses or create entries is stopped once it would repeat itself or grows too long.
Tip
If a step refers to a form field or list field you later remove, the form's or list's settings page warns you after saving. Check the workflow's steps before removing fields.
Related
- Forms — Statuses, waitlists and webhooks that work with workflows.
- Data lists — Lists that workflows save to and react to.
- Submissions — See each submission's workflow runs.