Skip to content →
  1. Agents and automation
  2. Automations
Sign upOpen app

Automations

Overview⁠

Automations (formerly Loops) use Linear Agent to drive your work forward automatically. Automations run on a schedule or in response to supported events on issues, projects, initiatives, cycles, releases, and pull requests. Automations can also run when a new top-level message is posted or a selected emoji reaction is added to a top-level message in selected public or private Slack channels.

Use automations to handle routine tasks and free up your attention. You can send weekly digests of your team’s work to Slack, populate project documents with customer feedback from customer requests, or direct Linear to open a coding session when well-scoped bugs hit Triage.

Automations work in your Slack workspace through Linear’s Slack integration, and you can extend their capabilities by adding other optional MCP connectors.

Example automations⁠

Here are some basic automations that are useful for most workspaces. Create custom automations for your team by prompting Linear, or get started with one of these examples.

Investigate and delegate bug reports⁠

When new bugs arrive in Triage, check the codebase for a root cause. Delegate the issue to Linear to fix if the cause is found. (Build this automation ↗)

Summarize weekly accomplishments⁠

Every week, summarize the week’s accomplishments for a person or team and share the highlights. (Build this automation ↗)

Send the pre-filled request to start setting up this custom automation.

Create platform-specific versions of incoming requests⁠

When a new incoming issue is created, determine if new issues also need to be created for multiple platforms. (Build this automation ↗)

Create user-facing messaging after issues close⁠

After an issue closes, check the PR that closed it and generate user-facing messaging that Support can share with customers. (Build this automation ↗)

How Linear uses automations⁠

Teams at Linear use automations to handle recurring work. Learn more about some of our own use cases:

Create automations with Linear Agent⁠

The best approach is to first achieve the outcome you want in a Linear Agent chat, then refine it into an automation. For example, you might be leading a project that has check-in meetings every Thursday morning. You’re about to write the agenda, but realize you could automate this instead.

  • Press ⌘/Ctrl + J to open a Linear Agent chat
  • Give Linear Agent a prompt such as:

Review the project’s Slack channel, the open questions in the latest project update, and any relevant issue threads. Add Open questions, Relevant issue threads, and Next steps sections to the Meetings project document. Summarize your findings under each heading and include links to the relevant messages or issues.

  • Review the result to make sure it looks right. If it doesn’t, continue prompting Linear until the agenda looks complete, and in the desired format.
  • Then, ask Linear to create the automation. You’ll be prompted to add any missing details.

Create automations manually⁠

Create an automation from a template, describe what you want Linear to automate, or start from scratch.

  1. Open Automations in the workspace sidebar, or open a team and select its Automations tab
  2. Select New automation
  3. Choose a template, enter a prompt, or select Start from scratch
  4. Choose where the automation belongs if prompted

To configure an automation from scratch:

  1. Choose a trigger and configure its schedule, conditions, repositories, or Slack channels
  2. Add instructions describing the outcome you want
  3. Add any required connectors
  4. Under Capabilities & access, review the automation’s scope, reasoning level, and permissions
  5. Select Create automation

Create from a prompt⁠

In the new automation dialog, describe what you want to automate. Linear prepares a draft with instructions and a suggested trigger. Review the draft, adjust its configuration, and select Create automation when it is ready.

Start from a template⁠

Select a template to start with a predefined workflow. Answer Linear’s setup questions to adapt it to your workspace, and review the instructions, trigger, and permissions as part of setup.

Workspace templates⁠

Save an automation as a workspace template so your team can reuse its workflow without starting from scratch.

  1. Open an eligible automation
  2. Open the more menu and select Save as template
  3. Set a name, icon, and optional description
  4. Select Save template

To use a workspace template, open New automation and select its card. Linear creates a separate draft and helps adapt it to the destination. Review the configuration and permissions before creating the automation.

Templates reuse instructions, supported trigger configuration, schedules, and compatible settings. They do not copy the source automation’s owner, enabled state, team access, trusted external sources, or connector authorizations. Review references in the instructions and configure the access and connections required by the new automation.

Only eligible automations can be saved as templates. Slack/chat, pull request, and webhook triggers are not supported. Triage templates require a destination team with triage enabled.

Workspace owners can control who manages workspace templates in Settings → Administration → Permissions → Workspace management → Manage workspace templates. Saving an automation as a template also requires permission to edit that automation.

To manage a saved template, open the more menu on its card in the new automation chooser. Select Edit details to change its name, icon, or description, or Delete to remove it. Edit details does not change the saved workflow configuration. To save different instructions or settings, create another template from a configured automation.

Pull request triggers⁠

Pull request triggers run an automation when selected activity occurs in connected GitHub repositories.

Pull request triggers require a connected GitHub repository that your workspace allows automations to access. Enable code-reading access for the automation and select at least one repository. Personal GitHub access alone does not grant an automation access to a repository.

  1. In the automation editor, open Trigger → Pull request and choose an event
  2. Select the repositories to monitor
  3. Add filters to narrow the pull requests that can trigger the automation
  4. Add instructions and review the automation’s access before creating it

Supported events include pull request creation, ready for review, status changes, reviewers added or removed, GitHub team reviewers added or removed, GitHub labels added or removed, commits pushed, checks passed or failed, reviews submitted, new comments, and resolved comments.

To run an automation after a pull request is merged, choose Trigger → Pull request → Status → Merged. The automation runs when a pull request in the selected repositories changes to Merged and matches its filters.

Merged is a pull request status transition, not a deployment event. Later updates to an already merged pull request do not re-trigger it, and checks passing does not mean every individual successful check produces a run.

For example, run an automation when the GitHub label QA Test is added, and have it review the pull request’s changes and draft a QA checklist.

Choose Trigger → Pull request → Labels → Added, then select QA Test. This matches the label being added. A separate Labels filter checks which labels are on the pull request after the change—use it to narrow the workflow further, such as requiring a mobile label.

For a removal trigger, select the label under Labels → Removed. Don’t also require that same label in a Labels filter, because it is no longer on the pull request.

If the required repository is unavailable, ask a workspace admin to configure the GitHub integration and repository code access. Workspace repository access for automations is controlled in Settings → Features → Automations → Allow automations to access code. In the automation editor, review Capabilities & access → Access code and allow Read or Read & write as appropriate.

Automations that use a pull request trigger cannot be saved as workspace templates.

Webhook triggers⁠

Run an automation when an external service sends a webhook to its URL. Use webhook triggers to connect monitoring alerts, application events, or other external workflows to Linear.

  • Go to Automations → New automation → Start from scratch
  • Under Trigger, select Webhook.
  • Copy the webhook URL and secret. Use Copy example request for a ready-to-use request.
  • Add instructions describing how the automation should interpret the payload and what actions to take, then review its access and create the automation

Send an HTTP POST request to the webhook URL with these headers:

Authorization: Bearer <secret>
Content-Type: application/json
Webhook-Id: <unique-event-id>

Include the event details in the request body:

{
  "event": "order.created",
  "orderId": "1042"
}

The automation receives the request body as context automatically. Include any information it needs to carry out your instructions.

Use a unique Webhook-Id for each event and reuse that ID when retrying the same event with the same secret to avoid duplicate runs. A successful request returns 202 Accepted; this confirms receipt, not completion of the automation.

Webhook triggers also support Standard Webhooks signatures as an alternative to providing the secret via the Authorization header. Manage secrets through Webhook details…. Keep secrets private; rotating or removing a secret invalidates its previous value immediately.

Update automations⁠

Open the automation and make your changes. Select Save in the bar at the bottom of the editor. Only people with permission to edit the automation can save changes.

Review an automation’s runs⁠

Each automation has a run history to let you audit its behavior.

Open an automation’s Run history to ask Linear Agent follow-up questions or request additional actions using the run’s context.

  1. Open Automations from the workspace or team that contains the automation
  2. Open the automation you want to review
  3. Select Run history
  4. Review recent runs to see when the automation executed and what actions it took

Restore a previous version⁠

All published versions of an automation are saved and can be restored. Removed connectors must be added and authenticated again.

Restoring a version replaces your current unpublished changes.

  1. Open the automation for editing
  2. Select Published versions
  3. Choose the version to restore
  4. Select Restore version
  5. Review the restored configuration, then select Save to apply it

Slack triggers⁠

To use a private channel as a trigger, first invite Linear to it in Slack with /invite @Linear. You must also belong to the channel. Then select the channel in the automation’s trigger settings.

Message posted⁠

Run an automation when a new top-level message is posted in selected public or private Slack channels.

  1. In the automation editor, choose Trigger → Slack → Message posted
  2. Select the Slack workspace and channels to monitor
  3. Add instructions describing when the automation should act and what it should do
  4. Review its connectors and Capabilities & access, then create the automation

A workspace admin must turn on Enable Linear Agent and Allow Automations access in Settings → Integrations → Slack → workspace → Automations. You must also connect your Slack account and be a full member of that Slack workspace.

Slack message triggers do not support externally shared channels, direct messages, thread replies, or message edits. Messages from guests, posts from Linear or Linear Asks, and messages mentioning Linear’s bots do not trigger runs.

Message-history access must be enabled. If automatic channel joining is disabled, invite Linear to each selected channel before creating the automation.

Reaction added⁠

Run an automation when someone adds a selected emoji reaction to a top-level message in a selected Slack channel.

  1. In the automation editor, select Trigger → Slack → Reaction added
  2. Select the Slack workspace and channels
  3. Choose Select reactions…, then select standard emoji or enter a custom Slack emoji name
  4. Add instructions describing what the automation should do
  5. Review the automation’s connectors and Capabilities & access before enabling it

Each automation runs at most once per message, even if multiple selected reactions are added. Reactions on thread replies do not start runs.

Use Slack with automations⁠

Connect an automation to your workspace’s Slack integration to let it work in Slack as Linear. An automation can use one connected Slack workspace. You must link your Slack account to Linear and be a full member of the workspace to connect.

To connect Slack to an automation:

  1. A workspace admin must first turn on Enable Linear Agent and Allow Automations access in Settings → Integrations → Slack → workspace → Automations
  2. In the automation draft, open the connector menu and select Slack
  3. Select the appropriate Slack workspace

The Slack integration uses your workspace’s shared Slack connection, rather than a personal Slack MCP connection. It is intended for shared automation with defined Slack access. You should use a personal Slack MCP connector when an automation needs access based on an individual’s Slack authorization or broader Slack tools.

What automations can do in Slack⁠

  • Automations can find public channels by name, including Slack Connect channels, and read their message history. They can also read messages from Slack links, post new messages, and add or remove emoji reactions. Messages posted to Slack by an automation are identifiable by a direct link to its run.
  • Automations can send direct messages to full members in Slack, and those messages are one-way
  • In a thread started by an automation, anyone with access to the automation run can reply to continue the conversation
  • Automations can send broadcast mentions such as @here and @channel in Slack messages

Slack access and limitations⁠

  • An automation triggered in a private channel can use its Slack connector to read and reply in the triggering thread. The trigger does not grant access to other messages in that channel. Automations cannot read direct-message history or group direct messages.
  • Automations cannot search messages across the workspace, create channels, edit or delete messages, upload files, or manage Slack canvas documents
  • Replies in Slack Connect channels, direct messages, or unrelated threads do not continue the automation conversation
  • When automatic channel joining is disabled in Slack, automations can use a public channel only after Linear has joined it. If message history is unavailable, automations can send messages into those channels but cannot read their history, or continue conversations through replies.

MCP connectors⁠

MCP connectors extend what Linear Agent can do during an automation run. When a connected MCP is available to an automation, Linear can use it to gather context or take supported actions in other services. For example:

  • Search or retrieve content from connected sources such as GitHub, Notion, or Sentry
  • Post comments or updates to external services like Slack
  • Fetch documentation, pull request details, or error reports to enrich an issue

An MCP connector can only access data and perform actions that are permitted by the available MCP’s configuration and the automation’s data scope. When a user connects an MCP to an automation, they authorize that automation to act in the other service, so connector access should be granted thoughtfully.

Manage available connectors⁠

Workspace owners (Enterprise) or admins (Business) can elect to let users connect any MCP connector, or only allowlisted servers.

When access is limited to Only connectors in directory, a workspace admin must add a connector to the allowlist before it can be used in an automation.

Workspace admins and owners can manage allowed MCP connectors in Settings → Administration → MCP connectors. Once an MCP server has been added, users can add it when creating or updating an automation. Adding one directly to an automation requires the configuring user to authenticate with the connector, and it will use their personal account’s connection.

For available connectors and connection instructions, see Connect MCP servers.

MCP approvals⁠

To choose which tools an automation can use, edit the automation, open the MCP connector’s ⋯ menu, and select Manage tools…. Select the tools you want to make available to the automation.

Enable Automatically approve all tool calls to skip approval requests from that connector. To automatically approve individual tools instead, leave this setting off and enable Always approved for each tool you want to approve automatically.

Tool selection controls which tools the automation can use. Automatic approval controls whether tool calls require approval; it does not grant additional access in the connected service. Enable automatic approval only for tools you trust the automation to use without individual review.

Setup⁠

Enable the Automations feature by navigating to Settings → Features → Automations.

On Enterprise plans, you can restrict Automations to specific teams by selecting Enabled for teams… Use this to trial automations with a smaller group or manage spending on automation runs.

Permissions⁠

Capabilities & access⁠

Configure the automation’s scope, reasoning level, and permissions under Capabilities & access. Enable only the access it needs, and consider the impact before allowing changes or connecting external services.

Team access⁠

Controls which teams the automation can access. It can read and write data only in those teams. Workspace-level automations and automations owned by public teams default to all public teams. Automations owned by private teams, or teams beneath a private parent, default to the enclosing private team and its non-private descendants. Nested private teams are excluded.

Automations that can access all public teams can also access workspace-level objects like Initiatives and Customers.

Reasoning level⁠

Choose how deeply the automation should analyze information under Capabilities & access → Reasoning level.

  • Auto lets Linear select the reasoning level
  • Low prioritizes speed and lower cost for simple tasks
  • Medium balances speed and depth for everyday tasks
  • High provides more thorough reasoning for complex tasks and costs more

Web access⁠

If enabled, the automation can query any website. You can use this to set up automations that can take actions like researching competitor announcements, or checking the documentation of services your product integrates with.

Use caution when enabling web access. Web access can send workspace content to external services. Do not enable it for automations that may process sensitive data unless you are comfortable with that data leaving Linear.

Access code⁠

Under Capabilities & access → Access code, choose how the automation can use configured repositories:

A workspace admin must configure repository access in Settings → Features → Automations → Allow automations to access code. Coding sessions must also be enabled to use Read & write.

Externally synced issues and comments⁠

If enabled, the automation will be able to write data on issues or comment threads that are synced with external applications, like issues created from Slack with bidirectionally synced threads.

Enable this with care, as some synced threads may be visible outside your workspace. For example, if you use GitHub sync in a public repository, the automation can post comments to that repository’s GitHub Issues.

External sources⁠

Issues can be created from sources outside Linear, such as Slack messages or emails received at a particular address. Whether an issue can trigger an automation depends on its source and who submitted or reviewed its content, not simply whether it was created inside Linear.

To run an issue-triggered automation on issues created from external sources, enable the relevant sources for that automation. Workspace owners can configure the allowed external sources in Settings → Features → Automations → Capabilities → Trusted trigger sources, also reachable from Security settings, then enable them for individual automations.

Slack message triggers are configured separately.

Allow changes outside of triggering entity⁠

If enabled, the automation can write data to other entities within its Team access scope. If disabled, it can change only the entity that triggered the run. This setting does not apply to scheduled, Slack-triggered, or webhook-triggered automations.

AI credits⁠

Automations use AI credits, which workspace admins can purchase and manage in Settings. Purchased credits expire 12 months after the purchase date. If a workspace runs out of credits, Automations pause unless an admin purchases more credits or enables auto top-ups. Workspaces are charged automatically only when auto top-ups are enabled.

Promotional Automations AI credits

Some workspaces may receive promotional AI credits for Automations. These credits have separate expiration terms. Eligible workspaces will be notified by email.

FAQ⁠

Clearly describe the intended outcome and any actions Linear Agent should avoid.

For example:

Investigate the issue using the available context. Add a comment summarizing the likely cause and recommend the next action. Do not change the issue’s assignee or status.

For best results:

  • Use Linear Agent chat to help build your instructions. See Create automations with Linear Agent for guidance.
  • Describe the outcome, not only an action
  • Specify which context or connected tools Linear Agent should use
  • State which changes are permitted

An automation can only use MCP connectors that are connected to your workspace, enabled for Linear Agent, and allowed by your workspace admins. Access also depends on the automation’s scope and permissions.

Enable web access only when an automation needs information from external websites.

A good fit is research on public information, like competitor announcements, documentation, or API references, where the automation does not need to send sensitive workspace content to external services.

Enable this intentionally, since allowing external web access can increase the risk of exposing workspace data outside Linear.

A workspace admin must configure repository access in Settings → Features → Automations → Allow automations to access code. In the automation editor, select Capabilities & access → Access code → Read. Read & write also includes code-reading access.

A workspace admin must enable coding sessions and allow the required repositories in Settings → Features → Automations → Allow automations to access code. In the automation editor, select Capabilities & access → Access code → Read & write.

Open Settings → Usage & limits to review AI credit usage. Automation spend includes the automation’s own work and any coding sessions it starts. Learn more about usage and spend limits.

If your workspace runs out of AI credits, automations stop running until more credits are added.

To troubleshoot, open the automation’s Run history to check recent runs and any visible failures.

Common causes an automation run might fail include missing permissions, untrusted external sources, or your workspace running out of AI credits.

To get a more detailed description of what went wrong, you can also ask Linear. Press ⌘/Ctrl + J while looking at the run history and ask for a detailed description of why the automation run failed.

Use Run now to start an enabled automation with a supported schedule, issue, project, initiative, or cycle trigger. For entity-triggered automations, choose the item to use for the run.

Triggers that require the original event, such as a new comment or posted update, cannot run manually.

Run now is not available for pull request triggers. These automations run when a matching pull request event occurs.

Scheduled automations can run hourly, daily, weekly, monthly, or yearly. Choose the starting date, recurrence, and time in the schedule editor. New manually configured schedules use your device’s detected timezone. To use another timezone, specify it when asking Linear Agent to create or update the automation.

Weekly schedules can run on one or more days of the week. The first run date cannot be in the past.

Right-click on the automation from either the workspace or team automations view and select Enable or Disable.

Triage automations are created for a specific team and require triage to be enabled for that team. They run when an issue enters the team’s triage queue and begins matching the configured conditions.

Triage automations do not support schedules or non-issue triggers.

Teams can create up to 100 automations, and workspaces can create up to 500 workspace-level automations. Each person can keep up to 100 unpublished automation drafts.

Automation names can be up to 64 characters, and descriptions can be up to 255 characters. An automation can include up to eight conditions.

Deleting an automation moves it to recently deleted items and stops ongoing runs. You can undo the deletion. For team automations, open the team’s Archive → Recently deleted automations and select Restore.

An automation triggered when conditions start matching runs when an item begins matching those conditions. Further updates do not trigger another run while the same conditions remain matched.

Event-triggered automations run whenever the selected event occurs and any configured filters match. For example, adding the QA Test label can trigger a run even if other labels on the pull request have not changed.