n8n

How to Automate Linear Bug Team Routing?

New bug reports should not sit in the wrong queue. This workflow reads new Linear issues, picks the right team with AI, and moves the ticket for you. If it cannot decide, it posts in Slack so someone can help fast.

Here is how it works. A Linear event starts the flow when a new issue arrives in a chosen team. A filter checks that the ticket is a bug with a filled description and the right label. OpenAI reads the ticket and the team responsibilities you provide, then suggests the best team. At the same time, the flow pulls all team names and IDs from Linear through a GraphQL call. The results are merged and checked. If the AI choice matches a real team, the issue is reassigned in Linear. If not, a Slack message alerts your channel.

You only need accounts for Linear, Slack, and OpenAI. Add your credentials, list your teams and their areas in the setup node, and set your Slack channel. Expect big time savings on triage, fewer misrouted bugs, and faster handoffs between product groups. This is great for busy engineering or support teams that receive many bug reports.

What are the key features?

  • Linear trigger listens for new issues in a selected team.
  • Filter checks that the issue is a bug with a label and a description before classifying.
  • Configurable team catalog in a Set node with names and areas of responsibility.
  • OpenAI analyzes the ticket text and recommends the best team.
  • GraphQL request fetches all Linear teams and their IDs for reliable mapping.
  • Merge step pairs the AI pick with the real team list to find an exact match.
  • If a match is found, the issue is reassigned to that team in Linear.
  • Slack alert is sent when no match is found so someone can review quickly.

What are the benefits?

  • Reduce manual triage from 5 minutes per ticket to under 30 seconds
  • Automate up to 90% of bug routing with clear team rules
  • Improve assignment accuracy by about 40% with AI suggestions
  • Connect Linear, OpenAI, and Slack in one flow
  • Handle 5 times more bug volume without adding staff

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Linear, Slack and OpenAI. See the Tools Required section above for links to create accounts with these services.
  3. Open the Linear Trigger node and create a new Linear OAuth2 credential. In the credential dropdown, click Create new credential and follow the on screen steps. Select the team that receives new issues.
  4. Open the Update team node and create a Linear API Key credential if prompted. If you use an API key, create it in your Linear account settings and paste it into n8n. Name your credentials clearly so teammates can recognize them.
  5. Open the OpenAI node, create a new OpenAI API Key credential, and paste your key from the OpenAI API page. Pick the model you prefer.
  6. Open the Slack node, click Create new credential, and follow the on screen steps to connect your Slack workspace. Make sure the bot is invited to the channel you plan to use.
  7. Edit the Set me up node. List your teams using the format [Teamname][Description or areas]. Use the exact team names from Linear. Set the slackChannel field to your desired channel name.
  8. Review the filter node named Only tickets that need to be classified. Adjust the label and description checks to match your bug intake rules.
  9. Keep the Get all linear teams node as is. It pulls the current team list and IDs via GraphQL to map the AI result to a real team.
  10. Run a test by creating a sample bug in Linear with the right label and a clear description. Check the OpenAI node output to see the chosen team and verify the If node path.
  11. Confirm in Linear that the issue was moved to the correct team. If you get a Slack message saying no team was found, refine your team descriptions or labels and test again.
  12. When satisfied, turn on the workflow in n8n so it runs on new issues automatically.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Linear

Sign up

Free: $0 / mo, includes API access (2 teams, 250 issues)

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

Slack

Sign up

Free plan: $0 / mo; limited to 10 apps (third-party or custom) and usable via Slack API

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.