Automations
Run Actors on a schedule or after another run, get Slack, Discord, Teams, email, Google Sheets, or webhook messages when a run finishes, filter the results, and add an AI step.
An automation does something by itself when its trigger fires. It has one trigger, and then either the Actors it runs with optional filters, an AI step, and deliveries, or a single message or request about the run that triggered it. For example:
- every Monday at 9:00, run two saved inputs, keep only new items, and email a short summary;
- when a run of an Actor fails, post to Slack;
- when a run succeeds, call your webhook, or start another Actor.
Open Automations in the side menu to see all of them in one list, with their trigger, next run, last run, and the AI cost of the last run. An Actor's Automations tab and a saved input's Automations tab list the ones that react to or run that Actor or saved input.
Every schedule is an automation with a schedule trigger and nothing else, and every webhook (including Slack, Discord, Teams, Telegram, email, and Google Sheets messages, and webhooks created through the API, but not the one-off ad-hoc webhooks of a single run) is an automation that reacts to a run, so they are all listed here. Old Schedules, AI Workflows, Integrations, Run alerts, and Webhooks links open the matching automation or list.
Create an automation
Start from any of these:
- New automation in Automations, or on an Actor's or saved input's Automations tab, which picks that Actor for you. … → Schedule in an Actor's header does the same.
- Automate this at the bottom of an Actor's Input tab. With one of your saved inputs selected and unchanged, the editor opens with it as the first run. Otherwise you save the form as a new saved input first.
- Ask AI in New automation, or describe what you want in the AI chat.
Recipes
New automation offers the common cases as one-click recipes. Each one fills in the trigger and where to send, and opens the editor so you can check it and save:
| Recipe | When | Then |
|---|---|---|
| Notify me on Slack when a run fails | A run of the Actor fails | A Slack message about the run |
| Open a GitHub issue when a run fails | A run of the Actor fails, times out or is aborted | An issue in your repository, or a comment on the open one |
| Email me the results | A run of the Actor succeeds | An email with the run's details and the first results |
| Send results to Google Sheets | A run of the Actor succeeds | Its results written to a sheet |
| Send results to Airtable | A run of the Actor succeeds | Its results added to a table as records |
| Send results to HubSpot | A run of the Actor succeeds | Its results created or updated in HubSpot as contacts or companies |
| Send results to Salesforce | A run of the Actor succeeds | Its results created or updated in Salesforce as leads, contacts or accounts |
| Send results to Notion | A run of the Actor succeeds | Its results added to a database as rows |
| Export results to S3 / R2 | A run of the Actor succeeds | Its results uploaded to your bucket as one file |
| Upload results to Azure Blob | A run of the Actor succeeds | Its results uploaded to your container as one file |
| Send results to Postgres | A run of the Actor succeeds | Its results added or upserted as rows in your table |
| Send results to MySQL | A run of the Actor succeeds | Its results added or upserted as rows in your table |
| Send results to MongoDB | A run of the Actor succeeds | Its results added or upserted as documents in your collection |
| Send results to SQL Server | A run of the Actor succeeds | Its results added or upserted as rows in your table |
| Send results to ClickHouse | A run of the Actor succeeds | Its results added as rows to your table |
| Send results to Snowflake | A run of the Actor succeeds | Its results added or upserted as rows in your table |
| Send results to an OpenAI vector store | A run of the Actor succeeds | Its results added as files to your vector store |
| Commit results to GitHub | A run of the Actor succeeds | Its results committed to your repository as one file |
| Call a webhook when a run finishes | A run of the Actor finishes | A webhook POST to your URL |
| Start another actor after this one | A run of the Actor succeeds | A run of another Actor or saved input |
Automations that react to a run
All recipes except Start another actor after this one have no run steps: they react to the run that finished and send one message or request about it, right when it finishes. Their When can also be any run in your account, a run that starts, or a build of your Actor, and their Then is one of:
- Slack, Discord, Microsoft Teams, Telegram, or Email: a message with the Actor, status, duration, result count, cost, and optionally the first results and your own text. See Slack, Discord, Teams, Telegram & Email.
- Create GitHub issue: an issue in your repository when a run fails, times out or is aborted, or a comment on the issue already open for it. See GitHub Issues.
- Google Sheets: the run's results, added below the existing rows or replacing the tab. See Google Sheets.
- Airtable: the run's results, added as records to a table. See Airtable.
- HubSpot: the run's results, created or updated as contacts or companies. See HubSpot.
- Salesforce: the run's results, created or updated as leads, contacts or accounts. See Salesforce.
- Notion: the run's results, added as rows to a database. See Notion.
- Dropbox: the run's results as one file in your Dropbox. See Dropbox.
- OneDrive: the run's results as one file in your OneDrive. See OneDrive.
- Amazon S3 / R2: the run's results as one file in your bucket. See Amazon S3 & R2.
- Azure Blob: the run's results as one file in your Azure storage container. See Azure Blob Storage.
- Postgres: the run's results, added or upserted as rows in your table. See Postgres.
- MySQL: the run's results, added or upserted as rows in your table. See MySQL.
- MongoDB: the run's results, added or upserted as documents in your collection. See MongoDB.
- SQL Server: the run's results, added or upserted as rows in your table. See SQL Server.
- ClickHouse: the run's results, added as rows to your table. See ClickHouse.
- BigQuery: the run's results, added as rows to a BigQuery table. See BigQuery.
- Snowflake: the run's results, added or upserted as rows in your table. See Snowflake.
- GitHub: the run's results committed as one file to your repository. See GitHub.
- OpenAI Vector Store: the run's results added as JSON files to your vector store. See OpenAI Vector Store.
- Webhook: a
POSTwith the run event, or your own payload and headers templates. See Webhooks.
They are stored as webhooks, so the Webhooks API lists them too, and they keep its delivery rules (retries, delivery history). To send one run's results to several places, create one automation per place, or add run steps and use the deliveries below.
The editor for automations with run steps has six sections. Only Name, When, and Run are required. Create automation saves it and opens its page, where Run once now lets you check the results right away.
Name is shown in the list, in notifications, and in emails. Until you type one, it is suggested from the first Actor and its saved input.
1. When
| Choice | Runs |
|---|---|
| Manually | Only when you press Run now, call the API, or another automation starts it. |
| On a schedule | At the times you pick: Hourly, Daily, Weekly, Monthly, or Custom (a cron expression). The default is daily at 9:00. |
| After another run finishes | When one of your runs of an Actor finishes. Pick the Actor, then Any run of this actor or only the runs of one of your saved inputs, and the outcomes (Succeeded, Failed, Timed out, Aborted). |
For a schedule, Next runs previews the next three times and about how many runs a month that makes. The Time zone starts as your browser's; change it if the runs should follow another one. The schedule follows daylight saving in that time zone. Runs start up to about a minute after the scheduled time, and a time missed during an outage is skipped, not caught up.
An automation that runs after another run finishes starts once per finished run. It never starts itself, and a chain of automations that start each other stops after 3.
Input from the finished run
When the trigger is After another run finishes, a step's input can use values from the run that finished, written as {{…}} variables inside text fields of the input, for example {"datasetId": "{{resource.defaultDatasetId}}"}. The variables are those of webhook payload templates: {{resource.…}} (the finished run), {{eventData.…}}, {{actorRunId}}, {{defaultDatasetId}}, and so on. A variable that is the whole text is replaced by its value; inside other text it is inserted as text. With the other triggers, {{…}} in an input is left as written.
2. Run
Add up to 10 Actors. They all start at the same time.
For each run, pick the Actor (search the Store and your own Actors, or paste an Actor ID) and its Input. The Input dropdown is the one from the Actor's page (see Saved inputs):
- A saved input runs as it is when the automation fires. If you edit the saved input later, the automation runs the new version.
- An example or preset is saved as one of your saved inputs when you save the automation, so later changes to the example don't change what your automation runs.
- Defaults runs with the Actor's prefilled input.
Customize opens the form so you can change fields for this automation only. Only the fields you change are stored; every other field still comes from the saved input, so later edits to it reach the automation. Reset drops your changes. On an Actor without a saved input, the input is stored with the automation; use Save as new… in the Input menu to reuse it elsewhere.
Run options sets Max results, Max cost per run, Memory, and Timeout (seconds) for this run. Empty fields use the saved input's options, then the Actor's defaults. Max results also reaches the Actor's own result-limit field when its input leaves that field empty. There is no default spending cap: a run is capped only by a Max cost per run you set here or in the saved input, or by the Actor's own minimum cap.
Each run is a normal run on your account, billed like any other run. It shows in Runs, counts toward your concurrency, and fires the automations that react to the Actor's runs. In an automation that keeps, uses AI, or sends, a run that can't start because your run slots are full waits for a free slot; in a plain scheduled automation it fails to start, as a schedule did.
3. Keep
Optional filters on the items the runs return, applied after all runs finished:
| Filter | Does |
|---|---|
| Only when there are results | Skips sending when the runs found nothing. |
| Only new items since the last run | Compares with the previous run's items by a Key field, such as url or id (up to 5, separated by commas). The first run counts every item as new. When nothing is new, nothing is sent. |
| Only rows where… | Keeps the items that match every condition, for example price is less than 500. Up to 10 conditions. Use dots for nested fields, such as address.city. |
The operators are is greater than, is less than, equals, is not, is at least, is at most, contains, doesn't contain, is set, and is empty. Number comparisons also read prices written as text, such as €1,299.00. Text comparisons ignore case.
For "only new items", Scrape.ly stores a short hash of the key field values of the last run, never the items themselves.
4. AI step
Turn on Add an AI step to let AI work on the kept items before they are sent. Pick a Mode and write an Instruction (up to 2,000 characters):
| Mode | Does | Example instruction |
|---|---|---|
| Summarize | Writes a short text about the results. | The 5 best new places and why, in short bullet points. |
| Filter | Decides whether to send at all. If the answer is unclear, the results are sent anyway. | Only send if a flat under €1,500 with a balcony appeared. |
| Compare with last run | Compares with the previous run's results and says what changed. | Which prices went down since the last run, and by how much? |
| Extract | Pulls structured fields out of the results, as JSON. | From each description, get the company size and the tech stack. |
The AI step reads up to 200 items per Actor run, and up to about 200,000 characters of them in all. When the items don't fit, each one is shortened, keeping fields such as price, area, and place first, and the AI is told it sees a sample. The AI reads the rows themselves; nothing is calculated in code, so ask for a summary, a short list, or a decision rather than exact totals over many rows.
What the AI step costs
The AI step is billed per use, like the AI chat, and you see every charge:
- Each run in the run history has an AI cost column, and the run's page shows AI cost: $… next to the AI output.
- The automation list shows the AI cost of each automation's last run.
- Billing → Current period has an Automation AI steps line with the total and the Cost per run, each linked to its run.
If your balance can't cover it, the AI step is skipped, the run still finishes, and the deliveries send the results digest instead. The run notes "AI step skipped: not enough credits".
5. Send
Without a delivery, results stay in the run history. Add up to 10 places to send them:
| Delivery | Sends |
|---|---|
| Dashboard | A notification in the dashboard that opens the run. |
| An email to your account address, or to an address you enter. A new address gets a confirmation email first; nothing is sent to it until the link is opened. The results digest is a table per Actor; Email columns picks the title and up to 4 columns for each one, otherwise the email picks the most useful fields itself. | |
| Slack | A message to the Slack workspace and channel you connected under Settings → Connections. |
| Discord | A message through a Discord channel webhook URL. |
| Microsoft Teams | A card in a Teams channel through a Teams Workflows webhook URL. |
| Telegram | A message to a chat, group, or channel through your own Telegram bot (bot token from @BotFather, then Find chat). |
| GitHub issue | Opens an issue in your repository, using your GitHub connection, only when the automation run fails; skipped when it succeeds. Titled Scrape.ly: automation <name> failed, with each step's status and error. See GitHub Issues. |
| Google Sheets | Appends the kept items as rows. Share the sheet with Scrape.ly first, as described in Google Sheets. Optional Sheet tab. |
| Airtable | Adds the kept items as records to a table, using your Airtable connection. Same fields as the Airtable integration. |
| HubSpot | Creates or updates contacts or companies from the kept items, using your HubSpot connection and field mapping. Same fields as the HubSpot integration. |
| Salesforce | Creates or updates leads, contacts or accounts from the kept items, using your Salesforce connection and field mapping. Same fields as the Salesforce integration. |
| Notion | Adds the kept items as rows to a database, using your Notion connection. Same fields as the Notion integration. |
| Dropbox | Saves the kept items as one file (JSON, JSONL or CSV) in your Dropbox, using your Dropbox connection. Same fields as the Dropbox integration, with the automation's name in place of the Actor's. |
| OneDrive | Saves the kept items as one file (JSON, JSONL or CSV) in your OneDrive, using your OneDrive connection. Same fields as the OneDrive integration, with the automation's name in place of the Actor's. |
| S3 / R2 | Uploads the kept items as one file (JSON, JSONL or CSV) to your bucket, named after the automation and the run: <folder>/<automation-name>/<run-id>.<format>. Same fields and keys as the S3 integration. |
| Azure Blob | Uploads the kept items as one file (JSON, JSONL or CSV) to your container, named after the automation and the run. Same fields as the Azure Blob integration. |
| Postgres | Adds or upserts the kept items as rows in your table. Same fields as the Postgres integration. |
| MySQL | Adds or upserts the kept items as rows in your table. Same fields as the MySQL integration. |
| MongoDB | Adds or upserts the kept items as documents in your collection. Same fields as the MongoDB integration. |
| SQL Server | Adds or upserts the kept items as rows in your table. Same fields as the SQL Server integration. |
| ClickHouse | Adds the kept items as rows to your table. Same fields as the ClickHouse integration. |
| BigQuery | Adds the kept items as rows to a BigQuery table. Same fields as the BigQuery integration. |
| Snowflake | Adds or upserts the kept items as rows in your table. Same fields as the Snowflake integration. |
| GitHub | Commits the kept items as one file to your repository, using your GitHub connection. Same fields as the GitHub integration, with the automation's name in place of the Actor's. |
| OpenAI Vector Store | Adds the kept items as JSON files to your vector store, named after the automation and the run. Same fields as the OpenAI Vector Store integration. |
| Webhook | A POST with the run and its items to your URL. |
| Run another automation | Starts another of your automations. |
Sends picks what a delivery contains: AI text, the Results digest (result counts per Actor, links to each run and dataset, and the first 5 items), or Both. AI text needs the AI step. Google Sheets, Airtable, HubSpot, Salesforce, Notion, Dropbox, OneDrive, S3, Azure Blob, Postgres, MySQL, MongoDB, SQL Server, ClickHouse, BigQuery, Snowflake, OpenAI Vector Store, and GitHub always get the items, GitHub issue only opens an issue when the automation run fails, and Run another automation just starts the other one.
Webhook, Discord and Teams URLs, Telegram bot tokens, S3 keys, Azure SAS URLs, Postgres, MySQL, MongoDB, SQL Server, ClickHouse connection strings, and Snowflake private keys are stored encrypted and shown masked afterwards; leave the field empty when editing to keep the saved value. Email, Slack, Discord, Teams, and Telegram deliveries follow the same limits as the messages about a run; Google Sheets, Airtable, HubSpot, Salesforce, Notion, Dropbox, OneDrive, S3, Azure Blob, Postgres, MySQL, MongoDB, SQL Server, ClickHouse, BigQuery, Snowflake, OpenAI Vector Store, and GitHub share the export limits (30 an hour per automation, 500 a day per account). A GitHub issue delivery opens at most 30 issues an hour per automation and counts toward the daily message limit.
Webhook payload
A webhook delivery is a POST with Content-Type: application/json and this body:
{
"userId": "uSrIdExAmPlE123",
"createdAt": "2026-10-20T07:01:12.000Z",
"eventType": "AUTOMATION.RUN.SUCCEEDED",
"eventData": {
"automationId": "593d12cc-c97c-4ef0-bd5d-a49512326805",
"automationRunId": "3c246aa2b45548c8b1be",
"status": "SUCCEEDED",
"startedAt": "2026-10-20T07:00:00.000Z",
"actorRunIds": ["ece86a572f094bef8", "d5afaf264d5a443cb"]
},
"resource": {
"...": "the automation run: steps, filter result, aiOutput, aiCostUsd",
"automation": { "id": "593d12cc-c97c-4ef0-bd5d-a49512326805", "name": "Daily digest" },
"message": "the delivery's content as Markdown",
"items": [ "up to 100 kept items" ],
"url": "link to the run in the dashboard"
}
}eventType is AUTOMATION.RUN.FAILED when every Actor run failed without results. The request carries User-Agent: Scrapely-Webhook/1.0, an X-Scrapely-Webhook signature, an X-Scrapely-Webhook-Dispatch-Id, and X-Scrapely-Request-Origin: AUTOMATION. The signature uses a platform key you can't verify, so put a secret in your URL's query string and check it in your endpoint. Failed deliveries (network errors, 429, 5xx) are tried 3 times in all. Every webhook delivery is listed in the webhook dispatch log. See Deliveries for every field.
6. Options
| Option | Default | Does |
|---|---|---|
| Skip if the previous run is still going | On | A firing while the previous run, or any of its Actor runs, is still going is skipped and shows as Skipped in the run history. |
| Alert me if it fails | On | An email and a dashboard notification when a run fails. See Notifications. |
An automation that keeps, uses AI, or sends waits up to 2 hours for its Actor runs. After that, it filters and sends what the runs have produced so far. Over the API you can change this wait and how many items are read per run; see Options.
Run history
The automation's page shows its setup and its Runs table, the last 30 runs:
| Column | Shows |
|---|---|
| Started | When, and what started it: On schedule, Started by hand, After another run, or Started by another automation |
| Steps | How many Actor runs succeeded, and their items |
| Result | What the filters kept, how many items were new, or why nothing was sent |
| AI cost | The AI step's cost for this run |
| Sent | Whether the deliveries went out, and how many failed |
| Status | Running, Processing, Sending, Succeeded, Failed, or Skipped |
Open a run to see each Actor run with links to its run and data, the filter result, the AI output and its cost, and each delivery with its error, if any. A failed delivery has Edit delivery; a failed run has Run again and Edit setup.
Run now starts a run whatever the trigger, also while the automation is paused. Pause and Resume stop and restart a scheduled or after-run automation. A scheduled automation pauses itself when a firing can't start a run because your balance ran out; add credit and Resume it. Duplicate makes a paused copy, saved delivery URLs included. Delete… stops the automation and deletes its run history; the Actor runs and their data stay.
For an automation that reacts to a run, the page shows the delivery history instead: each message or request with its event, the run, and the response or error. Send test sends one with sample data.
An automation that an administrator disabled shows Disabled by an administrator, with the reason. Until an administrator enables it again, it can't run, be resumed, or be duplicated, and the API answers 403 automation-admin-disabled. You can still edit or delete it.
Slack and GitHub are connected under Settings → Connections.
Convert a webhook to an automation
Older Trigger actor and Trigger saved input webhooks start another run by calling the API when a run finishes. They keep working. An automation with run steps does the same without an integration token, and shows the started runs in its run history. Such a webhook's page in Automations has Convert to automation:
- Scrape.ly checks the webhook first and shows what the automation would do, for example: "An automation named “…” starts … after a run of … succeeds, as this webhook does now."
- Convert creates an automation that runs after the same runs finish and starts the same Actor or saved input with the same input and run options.
- The webhook is then deleted and its integration token is revoked. Anything else that uses that token stops working.
Input with variables such as "{{resource.defaultDatasetId}}" inside JSON strings carries over, because steps can take input from the finished run. A webhook can't be converted when its payload isn't a JSON object (for example a variable outside quotation marks), when it turns off variables in strings, when it fires on events other than a finished run, or when it watches every run of your account or a single run. The dialog then says why, and nothing changes.
From the AI chat
Ask the AI chat (AI Chat in the side menu) for what you want, for example "every morning, run my two job searches and send me a summary on Slack". The chat creates the automation right away and shows it on a card, with the trigger, the runs, the filters, the AI step, and where it sends. An automation with an AI step says "AI step billed like the AI chat" on the card.
- Open in editor opens the editor in a new tab, filled in from the chat, so you can check and change everything. Webhook, Discord and Teams URLs never pass through the chat; enter them in the editor. The draft stays in this browser for an hour.
The chat can also edit, pause, and resume your automations right away. Deleting one shows a confirmation card first. When you ask it to run one, the run starts right away.
For a request that needs several Actors, such as "find dentists in Lisbon on Maps, then get their emails from their websites", the chat can chain the runs: a later run waits for an earlier one and takes its input from that run's results, and the results are joined into one table.
Limits
- Automations and schedules share your plan's schedule limit (see Account & billing).
- Up to 10 Actors, 10 filter conditions, and 10 deliveries per automation.
- The last 30 runs are kept per automation.
- Webhook delivery URLs must be public; private and internal addresses are rejected.
- Automations that react to a run count toward your plan's webhook limit (100 by default), not the schedule limit.
Use the API
Everything in the editor is available in the Automations API, with any API key that has the automations:write scope (see API keys & permissions). Automations that react to a run are created and edited with the Webhooks API and listed by GET /v2/automations?include=webhooks. Schedule-only clients keep working with the Schedules API.
What's next
- Run Actors: saved inputs, run options, and limits
- Tasks, schedules & webhooks: message and webhook reference, and connected accounts
- Notifications: failure alerts and where they go