Skip to content

Using Merlin

Automations

Run work on a schedule or when something happens in another product.

Automations run work for you without a prompt each time. An automation has a creator, a trigger, a run instruction, a runtime and a destination, and every run executes on behalf of its creator.

Two kinds of automation

Every automation starts from one of two triggers:

TriggerStarts a runUse it for
On a scheduleAt set times: daily, on weekdays, weekly, monthly or at a fixed intervalA weekday standup digest, a Monday growth report, a recurring review
When something happensThe moment a product sends an event that matches the automationWriting up a meeting from its Granola notes, reviewing a pull request that gets a label, following up on a failed Stripe payment

A schedule runs whether or not anything changed. An event automation runs only when its event arrives, and only for events that pass its filters.

New automation starts by asking what triggers the work. Each card previews an example of what Merlin does when it runs.

Create an automation

Open Automations in the web app and choose New automation, pick On a schedule or When something happens, and select Continue. Both forms ask for a title, the trigger, the run instruction, the runtime, the scope and the destination, then Create automation saves it.

You can also ask Merlin to set up an automation from an eligible Slack conversation. Describe what you want in your own words, such as "every weekday at 9, summarize yesterday's Linear progress here" or "whenever a pull request in our repo gets the bug label, triage it". Merlin works out the timing or the event and its conditions, creates the automation and tells you what it set up, and asks first only when something is unclear, such as a repository or team it cannot find. A request in a channel makes a workspace automation that posts there, and one in a direct message a personal automation that posts to you, unless you ask for the other: "make it personal" from a channel, or "post it to #eng" from a direct message.

While a tab has no automations yet, you can start from one of the suggestions under the list. Each tab offers its own set, and Show more suggestions cycles through the rest. Picking one opens the same form with its title, instruction and rule filled in, ready to adjust before you create it.

The schedule form captures everything a run needs: what to do, which runtime to run on, where to post and when. The channel chosen here makes it a workspace automation.

Run on a schedule

Set the rule: Daily, Weekdays, Weekly, Monthly or Fixed interval, then the weekday, day of the month or interval it needs, and the time. Fixed times follow the workspace timezone in Settings → General for a workspace automation, or your timezone in Settings → Preferences for a personal one. The form shows the next run under the time.

Schedules are for recurring work. One-time reminders and arbitrary cron expressions are not supported.

Run when something happens

Choose a Source, the product the event comes from, then the event and, if you want, conditions on it.

  • From integrations: GitHub, Linear and Slack, once their integration is connected. Events include pull requests, check suites and workflow runs, issues, Linear issues, comments, projects and initiatives, and Slack messages from people or apps.
  • From webhooks: Statsig, incident.io, Stripe, PostHog and Granola. Each needs its webhook set up first, and it starts nothing until its first event arrives. Webhooks has each product's setup steps.

The event reads as a sentence, such as "Pull request is opened in Any repository". Each part after its joining word narrows it, and reads Any until you choose values, such as a repository, a project or a label. Manage beside the source opens its integration or webhook page. Add up to five filters on the event's fields for anything the sentence does not cover. A PostHog filter can also test any property its project sends: choose Event property or Person property, then pick a property the event's recent deliveries carried or type its name, such as plan or email. A run starts only for events that match the sentence and every filter.

An event automation names its source and event as a sentence. Each pill narrows which events start a run, and Filter adds conditions on the event's fields.

An event automation has no Run now, since there is no event to run it on. A webhook's Event history shows each event from the last seven days and what every automation did with it: Started a run, Skipped with the check it failed, Rate limited, Paused, or Turned away with the reason. See Webhooks.

Choose a destination

A workspace automation posts to a channel, and a personal one to your direct messages. The creator can change the scope later with the pencil beside Scope on the automation's page, or by asking Merlin in Slack; the destination moves with it.

Choose None, only take actions for work whose result is what it does, such as a Linear issue it files or a pull request comment it leaves, rather than a post. Such a run posts nothing, its run history lists the records it created, and a failure is sent to the creator's direct messages. Without Slack, an automation can only use None.

Under Advanced settings, Skip the post when there’s nothing to report lets a run that finds nothing stay quiet, and Message me in Slack when a run fails or needs my input sends those runs to the creator.

Choose a runtime

Keep the automation's runtime connected when work is due. Every run uses that runtime, on behalf of its creator, and no other.

The runtime must be one the creator owns. When it is offline or busy, the run is skipped and its history says why; it never moves to another runtime. Only the creator can change the automation's runtime.

Run pause and resume

Use Run now to run a scheduled automation without waiting for its next time. It uses the same eligibility and admission checks as a scheduled run. An automation that runs on events has no Run now.

Pause an automation to stop future runs and resume it when work should continue. Pausing the Slack channel does not pause its automations. Merlin does not run overlapping runs of the same automation.

Read run history

Each run with a Slack destination posts a new root message there. Open the automation, select the Run history tab, and choose Open in Slack from a run's actions to read the output.

Run history records each run with its status, Slack delivery status, trigger kind and duration. The page holds metadata only, and the result itself lives in the Slack thread.

The web app shows run metadata and status, not a second copy of the full prompt, result or tool transcript. If a run is skipped or fails, check the destination, the creator's eligible runtimes and the workspace plan limits.

Manage access and context

Personal automations are visible and manageable only by their creator. Workspace automations are visible according to membership in the destination channel.

An owner or admin can manage a workspace automation they can read. Their role does not bypass membership in a private channel.

The creator can ask Merlin to reset an automation's context when future runs should stop continuing earlier runs' context. This does not change its trigger or whether it is active.