Chapter 14

Run automatically: schedules and triggers

Run an automation by itself, on a schedule, when an email arrives, when someone posts in Slack or Teams, or when another service calls it. You can also send each run's results to a Telegram group. You will also know which version each kind of start runs and whose minutes it uses.

14.1Ways to start a run

An automation runs when something starts it. You can start it yourself on the Run tab, or set it up to start by itself. The automatic starts live on two tabs of the automation's page: Schedules and Triggers.

In the table, "Published" means the latest version you published. Before you publish for the first time, these starts run the draft. The line above the grid on the Run tab says which one runs, for example "Runs execute Published v3." (Draft and published versions).

Way to start Where you set it up Which version runs Who is billed
You start it by hand Run tab (Run an automation) Published Your organization
On a schedule Schedules tab Published Your organization
An email arrives Triggers tab, Email triggers Published Your organization
Someone posts in a Slack channel Triggers tab, Slack triggers Published Your organization
A webhook call, feed entry, calendar or Drive change, or GitHub event Triggers tab, External connections Published Your organization
A visitor uses a widget on your web page Triggers tab, Widget triggers Published Your organization
Your own code, with an API key Triggers tab, API access Published Your organization
An AI agent connected over MCP Triggers tab, API access The draft, unless the agent asks for the published version Your organization
A partner you shared the automation with Triggers tab, Shared with Published only The partner's own workspace

Every run uses execution minutes from the monthly allowance of the organization that pays for it (How minutes are counted). Minutes are counted per organization, never per person. On the Free plan, runs stop when the month's 30 minutes are used, and that includes runs that start by themselves.

Important

In a HIPAA organization, do not put health information in anything that starts a run. That covers:

  • webhook requests
  • email sent to an email trigger, and its attachments
  • Google Calendar and Google Drive events
  • chat messages

Keep automation, schedule and trigger names free of it too (HIPAA organizations).

14.2Run on a schedule

A schedule starts the automation at set times, for example every weekday at 9am. Use it for work that repeats on a calendar. Schedules are included on every plan, and there is no limit on how many you add.

What a schedule runs depends on the automation's grid. Every automation you add from the library or build with Teach keeps its inputs and results in a grid.

  • The grid has input columns. At each scheduled time, the schedule runs the rows whose status is Ready, as many as Run N ready rows would start in one click. With no Ready rows, nothing runs and no minutes are used. Fill in rows first (Queue rows and run them later).
  • The grid has no input columns. At each scheduled time, the schedule adds one new row and runs it.
  • The automation has no grid. Each scheduled time starts one run with the schedule's default inputs.

The Only run some rows (optional) rule on the Run tab also limits which Ready rows a schedule takes.

The Add Schedule dialog with a name, the Every Monday at 9am preset and the Advanced options open
Figure 14.1The Add Schedule dialog with a name, the Every Monday at 9am preset and the Advanced options open

To add a schedule:

  1. Click Automations in the header.
  2. Click the automation.
  3. Click the Schedules tab. It shows "Automation cadence" and the automation's schedules. With none yet it says "No schedules yet - create one to run this automatically."
  4. Click Add. The Add Schedule dialog opens.
  5. Optional: type a name in Name 1, for example "Weekly price check". A schedule without a name is called "Schedule" on its card.
  6. Leave Enabled selected 2 so the schedule starts working as soon as you save it.
  7. Under When, select a preset 3: Weekdays at 9am, Every day at 9am or Every Monday at 9am. A new schedule starts on Every day at 9am, in your browser's time zone.
  8. For any other timing, click Chat with AI 4. Describe the timing in words, for example "every weekday at 7:30am in Chicago". Check the Suggested change, then click Apply schedule. The AI only fills in the form. It does not save or turn on anything.
  9. Or open Advanced (cron, timezone, params). Set the Cron expression and the Timezone yourself 5. The Timezone box is a search. Type a city, such as "Chicago" or "Tokyo", then select the zone.
  10. Click Create 6. The button reads Saving... for a moment, then the dialog closes.

A cron expression has five parts, separated by spaces:

  • minute
  • hour
  • day of the month
  • month
  • day of the week

The smallest step is one minute. Some examples:

Cron Runs at
0 9 * * 1-5 9:00 every weekday
30 7 * * * 7:30 every day
0 8 1 * * 8:00 on the first day of every month
0 */2 * * * Every 2 hours, on the hour

Default params (JSON), also under Advanced, holds the inputs every scheduled run receives. It is a copy of the automation's default values, made when you add the schedule (Inputs, outputs and default values). If you later change the automation's default values, this schedule keeps the old copy. Open Edit on the schedule and update Default params (JSON) too. If you empty the box, scheduled runs get no default values at all.

Read a schedule card

After you click Create, the schedule appears as a card on the Schedules tab.

  • The green Active badge 1 means the schedule will run. A paused schedule shows a grey Disabled badge.
  • Cadence 2 shows the cron expression and its time zone, for example 0 9 * * 1 (America/New_York).
  • Next run 3 shows when it runs next. It appears within about a minute, after you reload the page.
  • Parameters shows the first few default inputs, or "None".
  • Disable 4 pauses the schedule and keeps its settings. The button then reads Enable.
  • Edit 5 opens Edit Schedule, where you change the settings and click Save. Delete removes the schedule.
A schedule card with its status, cadence, next run time and buttons
Figure 14.2A schedule card with its status, cadence, next run time and buttons

When a schedule has a next run time, the Automations list also shows it beside the automation, for example "Next in 3 days".

Delete asks "Delete schedule?" and warns that this cannot be undone. Click Delete to confirm. Deleting an automation also removes its schedules.

Tip

Click Disable instead of Delete when you only need a break, for example during a holiday week. You can click Enable later and nothing needs to be set up again.

If a scheduled time passed while the schedule was disabled, clicking Enable starts one run within about a minute. After that, the normal times resume. To skip that run, click Edit instead, select Enabled and click Save.

The automation's owner, admins and managers can add, edit, pause and delete schedules. Other members see the cards without buttons.

The scheduler checks every minute, so a run starts within about a minute of its time. If your plan's run slot is busy, the run waits in the queue and tries again (Retries).

If something goes wrong

  • Next run never appears. The list does not refresh by itself, so reload the page after a minute. If it is still missing, the cron expression is probably not valid. The form does not check a typed cron. Select a preset, use Chat with AI, or correct the Cron field.
  • "Invalid JSON" under Default params (JSON). The box must hold valid JSON, such as {"region": "west"}. Fix it, for example by pasting the automation's default values again.
  • Create or Save goes back from Saving... and the dialog stays open. The change was refused, usually because you are not allowed to manage this automation's schedules. Ask the automation's owner, an admin or a manager.
  • "Only this automation's creator or an organization admin or manager can delete its schedules." The same rule applies to deleting. Ask one of those people.
  • The schedule ran at its time but nothing happened. The grid has input columns and no rows were Ready, or no Ready row matched the Only run some rows (optional) rule. Add rows or check the rule, then wait for the next scheduled time.
  • Selecting Custom does nothing. Open Advanced (cron, timezone, params) and type the cron expression there.
  • Scheduled runs fail on the Free plan. The month's minutes are used up (When you reach a limit).

14.3The Triggers tab

The Triggers tab holds every other way to start the automation from outside Autoworklet. To open it, click Automations, click the automation, then click the Triggers tab. Some labels on this tab still say "worklet", the older name for an automation, for example Run worklet. Both words mean the same thing.

The tab has these sections, from top to bottom:

Section Starts runs from Read more
External connections Webhook calls, RSS feeds, Google Calendar, Google Drive and GitHub Webhooks and other connections
Slack triggers New messages in a Slack channel Slack, Microsoft Teams and Telegram
Microsoft Teams triggers New messages in a Microsoft Teams channel Slack, Microsoft Teams and Telegram
Telegram Nothing yet. It sends each run's results to a Telegram group. Slack, Microsoft Teams and Telegram
Email triggers Email sent to the automation's own address Start runs by email
Email attachments Lists the files that arrived by email (shown when the email trigger is on) Start runs by email
Widget triggers A form or button embedded on a web page Embed an automation on a web page
API access Your own code with an API key, or an AI agent over MCP API keys
Shared with A person outside your organization Share an automation with someone

Schedules are not on this tab. They have their own Schedules tab (Run on a schedule).

What you see depends on your role:

Section Who can see it Who can change it
External connections Every member The automation's owner and admins
Slack triggers, Telegram, Email triggers, Email attachments Only the automation's owner and admins The automation's owner and admins
Widget triggers Every member The automation's owner, admins and managers
API access Every member Every member can create a key for this automation
Shared with Every member The automation's owner and admins

Important

Embed widgets, calls to the External Run API, and shares with people outside your organization need the Pro plan or above. On Free and Starter, API access shows a notice with Upgrade plan. Shared with shows the same notice to the automation's owner and admins. Widget triggers shows no notice: you can add a widget, but Create Token then fails with "Embed widgets need the Pro plan or above." Schedules, email, Slack, Telegram, external connections, and AI agents over MCP work on every plan.

In the Runs tab, each run carries a small label that says where it came from, such as Webhook, Email, Widget or API (Run history).

14.4Start runs by email

Every automation can have its own email address. When a message arrives, Autoworklet saves its attachments and, if you want, starts a run with the message as the run's inputs. Use it for invoices, forms or reports that already arrive by email. Only the automation's owner and admins see this section.

To turn on the email address:

  1. On the Triggers tab, find Email triggers.
  2. In the Default trigger card, turn on the switch. A message confirms "Email trigger enabled".
  3. The card now shows the ADDRESS, in the form <organization>+<automation-id>@trigger.autoworklet.com. <organization> is your organization's short name, the part after /organization/ in the browser's address bar. Click the copy icon beside it (Copy address) to copy the address.
  4. Select a MODE: Run worklet starts a run for each message. Storage only saves the attachments and starts nothing.
  5. Select where attachments go in STORAGE: Worklet folder keeps them with this automation. Shared folder puts them in the organization's shared files.
  6. Send a test message to the address.
  7. Check the Runs tab.

The Default trigger card shows its labels in capital letters, as written in these steps. The first time you turn the address on, it is set to Run worklet and Shared folder.

Important

The automation must be built to read the email inputs listed below. An automation built for other inputs starts, but it does not know what to do with an email. If you are not sure, ask the person who built it, or see Read inputs and publish outputs.

Give the address a readable name

  1. In the Default trigger card, click + Set custom alias.
  2. Type a name, for example invoices. Use lowercase letters, digits and hyphens, and do not start or end with a hyphen.
  3. Click Save. A message confirms "Email alias set".

The address becomes <organization>[email protected]. The original address keeps working and is shown as "Also accepts:". Use the pencil (Edit alias) or the trash can (Remove alias) to change or remove the name.

Add more addresses

You can add more addresses, each with its own mode and folder. For example, one address saves contracts and another starts a run for each invoice.

  1. Click Add email alias. A New trigger form opens.
  2. Type the Email alias, for example contracts.
  3. Optional: type a Storage subpath, the folder name for its files. If you leave it empty, the alias is used.
  4. Select the Mode. A new address starts on Storage only. If the address should start runs, select Run worklet.
  5. Select the Storage. A new address starts on Worklet folder.
  6. Click Create trigger. A message confirms "Email alias added".

Each address then has its own card with:

  • an on/off switch
  • Edit settings
  • a delete button
  • its Address:
  • Mode
  • Storage
  • a Preview: of the folder its files go to

The delete button removes the address immediately, without asking.

What happens to each message

  • Every attachment is saved in a dated folder, and its file name starts with the time it arrived.
  • In Run worklet mode, one run starts with the inputs in the table below.
  • If the address is turned off, the message is refused and nothing is saved.
  • If an attachment cannot be saved, nothing runs.
  • Messages larger than 25 MB are refused.
Input What it holds
email_subject The subject line
email_from The sender
email_to The address the message was sent to
email_text The message as plain text
email_html The message as HTML
email_attachments The saved files, each with its file name, size, type and storage location
email_received_at When the message arrived
email_slug The alias the message was sent to

The Email attachments section

When the default address is on, an Email attachments section appears below Email triggers. It lists the first 5 files saved to the Worklet folder, in folder order, so the oldest dates come first. Click View all files to see every file on its own page, or click Refresh to check for new ones. Deleting a file asks you to confirm first.

Files saved to the Shared folder are not listed here. Find them in the shared_files folder of your organization's files (Your organization's files).

If something goes wrong

  • "Alias must be lowercase alphanumeric (hyphens allowed in the middle)". The box turns capital letters into small ones for you. Remove spaces, dots, underscores and any other characters that are not letters, digits or hyphens, and do not start or end with a hyphen.
  • "Alias ... is already in use by another worklet" or "Alias ... is already in use". Another address in your organization already uses that name. When you add an address, that includes this automation's own addresses, such as its custom alias. Use a different one.
  • A file you emailed is not in Email attachments. The address saves to Shared folder. Look in shared_files, or switch Storage to Worklet folder for future messages.
  • Messages arrive but no run starts. Check that Mode is Run worklet and that the switch for that address is on.

14.5Slack, Microsoft Teams and Telegram

You can start runs from a Slack or Microsoft Teams channel, or send each run's results to a Telegram group. Only the automation's owner and admins see these sections.

Start runs from a Slack channel

A Slack trigger starts a run each time a person posts a message in one channel. Replies in a thread also start runs. Messages from bots, edits and channel joins do not start runs. Autoworklet must be a member of the channel: Slack sends it nothing from a channel it is not in.

Before you start, connect Slack to your organization under Menu, Organization, Integrations (Connect Google, Slack and GitHub).

  1. In Slack, open the channel and send /invite @Autoworklet. Autoworklet posts a short introduction there.
  2. On the Triggers tab, find Slack triggers.
  3. Click Add Slack trigger. The Add Slack trigger dialog opens.
  4. Select the Workspace. The Channel list loads that workspace's channels. Click Load more channels when yours is not in the list yet.
  5. Select the Channel. If Autoworklet is not in it yet, the dialog says so. Invite it as in step 1.
  6. Optional: type Custom params (JSON), extra inputs for every run from this channel, for example {"region": "west"}.
  7. Leave Reply in thread on to have Autoworklet reply under each message with a link to its run. Turn it off for a busy channel, where a reply to every message would be noise.
  8. Click Add trigger.

The trigger is listed as the workspace name and the channel, with its parameters or "No custom params". Use its Reply in thread switch to turn replies on or off later. Click Remove to delete it. It is removed immediately, without asking.

The reply links the run's page, which shows the cloud computer's screen to signed-in members of your organization. Each run receives the automation's default values, then your custom parameters, plus the Slack message itself. The message comes with the Slack name and email address of the person who posted it and of anyone it mentions. The run's page shows the message under "Triggered from Slack". The run uses the minutes of the person who added the trigger. Mention @Autoworklet help in the channel to see what Autoworklet does there.

Warning

Use a channel made for this purpose, or turn replies off in a busy channel. Every message in the channel starts a run and uses minutes.

A trigger added before the channel list existed names its channel by name and says "Saved by channel name". Renaming that channel stops the trigger. Remove it and add it again to select the channel. A trigger can also say that its workspace is not connected, or that Autoworklet was removed from it. Then messages in that channel start no runs until the workspace is connected again. "Custom params must be valid JSON" or "must be a JSON object" means the Custom params (JSON) box does not hold a JSON object.

Start runs from a Microsoft Teams channel

A Microsoft Teams trigger starts a run each time a person posts a message in one channel of a connected team. Replies in a thread also start runs. Messages from bots and apps do not start runs. In a standard channel, the message does not need to @mention Autoworklet. For this, the team owner must let the app read the channel messages when they add the app.

In a private or shared channel, only messages that @mention Autoworklet start runs. Someone must first add Autoworklet to that channel in Teams: on the channel, Manage channel, Apps. In a shared channel, people from other organizations can start runs the same way and see the replies.

Before you start, connect the team to your organization under Menu, Organization, Integrations (Connect a Microsoft Teams team).

  1. On the Triggers tab, find Microsoft Teams triggers.
  2. Click Add Teams trigger. The Add Microsoft Teams trigger dialog opens.
  3. Select the Team. The Channel list loads that team's channels.
  4. Select the Channel.
  5. Optional: type Custom params (JSON), extra inputs for every run from this channel, for example {"region": "west"}.
  6. Leave Reply in thread on to have Autoworklet reply under each message with a link to its run. Turn it off for a busy channel, where a reply to every message would be noise.
  7. Click Add trigger.

The trigger is listed as the team name and the channel, with its parameters or "No custom params". Use its Reply in thread switch to turn replies on or off later. Click Remove to delete it. It is removed immediately, without asking.

Each run receives the automation's default values, then your custom parameters, plus the Teams message itself: its text, sender, team and channel. The run's page shows the message under "Triggered from Microsoft Teams". The run uses the minutes of the person who added the trigger.

Warning

Use a channel made for this purpose, or turn replies off in a busy channel. Every message in the channel starts a run and uses minutes.

If a trigger says "Team not connected" or "App removed from this team", messages in that channel start no runs until the team is connected again. "Custom params must be valid JSON" or "must be a JSON object" means the Custom params (JSON) box does not hold a JSON object.

Connect a Telegram group

A Telegram group connected to the automation gets a message each time a run of this automation finishes or fails. The message holds the result values and a link to the run. The Telegram card and the bot's welcome message say you can chat with an AI agent to run and manage the automation. That part is not available yet: nobody can start a run or change anything from the chat. If someone sends the bot a command in the group, it replies that runs from chat are coming soon.

  1. On the Triggers tab, find Telegram.
  2. Create a Telegram group, or open an existing one.
  3. Add the bot named on the card (it starts with @) as a member of the group.
  4. Click Create connect command. A command that starts with /start appears.
  5. Click Copy.
  6. Send the command in the group. The command works one time and expires after 10 minutes. The card shows the time ("Works once, until ..."). If it expired, click New command.

Instead of steps 4 to 6, you can click Connect Telegram to open Telegram and select a group. The group connects by itself. If it does not, send the connect command.

Connected groups are listed on the card, with a green badge that counts them. Click the X beside a group to disconnect it, or click Disconnect all when two or more are connected.

Warning

Connect only groups whose members are allowed to see the result values. Everyone in the group sees the result values of every run.

If you see "The browser blocked the Telegram window. Use the connect command below.", follow steps 4 to 6.

14.6Webhooks and other connections

The External connections section starts a run when something happens in another system. There are five types:

Type Starts a run when You need
Webhook Another service sends a request to the automation's own web address Someone who can set up that service, such as a form tool, Zapier, Apple Shortcuts or your own server
RSS feed A new entry appears in an RSS or Atom feed The feed's web address
Google Calendar An event in a connected calendar is created or changed A Google account connected to your organization
Google Drive A file in a connected Drive is added or changed A Google account connected to your organization
GitHub A repository event you select happens Access to the repository's webhook settings

The automation's owner and admins can add, pause and delete these. Every member can see the list.

Add a webhook

  1. On the Triggers tab, find External connections 1.
  2. Click Add trigger.
  3. In Connection type 2, select Webhook. A short description of the type appears under the box.
  4. Click Save trigger 3. The webhook is listed with a green Enabled badge and its Endpoint URL.
  5. Click Generate secret. An amber box shows the secret and says "Copy this secret now - it is shown once and cannot be retrieved again."
  6. Click Copy.
  7. Give the Endpoint URL and the secret to the person who sets up the other service. The service sends the secret in a header named x-aw-trigger-secret, and the run's inputs in the request body. The exact request format is in Start runs from other services.
The External connections section with the Add trigger form and Webhook selected
Figure 14.3The External connections section with the Add trigger form and Webhook selected

Warning

Treat the secret like a password. Anyone who has the address and the secret can start runs that use your minutes. If it might have leaked, click Rotate secret. The old secret stops working immediately. Then give the new one to the other service.

One webhook accepts up to 60 requests a minute, repeats included, and starts at most 500 runs a day. A repeat of an event that already started a run does not count toward the 500. If the same request body arrives again within 10 minutes of the request that started a run, it starts no new run. To decide exactly which requests count as the same, the other service can send an x-aw-delivery-id header (Start runs from other services).

Add a feed, calendar, Drive or GitHub connection

Use the same Add trigger form and select another Connection type. Each type asks for its own details:

  • RSS feed: the Feed URL.
  • Google Calendar:
    • the Calendar account
    • the Calendar ID (primary is your main calendar)
    • Look ahead (days), how far into the future to watch
  • Google Drive: the Drive account. Optional: a Folder ID to watch one folder, or a Search query such as mimeType='application/pdf'.
  • GitHub: select at least one of the Events. Optional: a Repository such as acme/site and a Branch such as main. After you click Save trigger, click Generate secret. Then, in GitHub:
    1. Open the repository's Settings, then Webhooks.
    2. Add a webhook with the Endpoint URL and the secret.
    3. Set the content type to application/json.

RSS feeds, calendars and Drive folders are checked every 5 minutes. Their row shows "Last polled" with the date and time, or "Not polled yet".

  • The first check only records what is already there and starts nothing. Only items that appear after that start runs.
  • Each new item starts one run, and the run receives the item in an input named item.
  • One check starts at most 5 runs. Extra items are skipped, and the row says "Last poll capped: N item(s) not run."
  • After 5 failed checks in a row, the trigger turns itself off. Your organization's email and Slack notifications get a "Trigger disabled" message (Notifications).

Pause or delete a connection

  • Disable pauses the connection. Its badge turns grey and reads Disabled. To turn it back on, click Enable.
  • Delete removes the connection and its secret immediately, without asking.

If something goes wrong

  • "Connect a Google account in your organization settings before adding a Google Calendar trigger." (or "... Google Drive trigger."). Connect Google first (Connect Google, Slack and GitHub).
  • The other service is told "unauthorized" (error 401). The secret is wrong or missing, or no secret was generated yet. Click Generate secret or Rotate secret, and update the other service.
  • The other service is told "trigger_disabled" (error 403). The connection is paused. Click Enable.
  • A new feed, calendar or Drive connection started nothing. This is expected. The first check only records what is already there.
  • A connection shows Disabled and you did not pause it. It failed 5 checks in a row. Read the red line on its row, which shows an error code and message. Fix the cause, then click Enable.