Templates / Classify new bugs in Linear with OpenAI's GPT-4 and move them to the right team

Classify new bugs in Linear with OpenAI's GPT-4 and move them to the right team

Ready for 3.0

by Niklas Hatje ✓ · 2,183 views · created 2024-02-29 · Ticket Management, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 10 nodes and runs on Linear events. Along the way it connects Linear, Slack and OpenAI. It also calls api.linear.app over HTTP.

How it runs

Trigger: On Linear events.

  1. Set me up (Edit Fields (Set)): sets 2 fields: teams, slackChannel
  2. Only tickets that need to be classified (Filter): keeps only the items that match a condition
  3. OpenAI: uses OpenAI
  4. Get all linear teams (HTTP Request): calls api.linear.app (POST)
  5. Merge: merges the data from its input branches
  6. Check if AI was able to find a team (If): checks a condition and branches into true / false
  7. Set team ID (Edit Fields (Set)): sets 1 field: teamId
  8. Notify in Slack (Slack): uses Slack
  9. Update team (Linear): update

Services it uses

LinearSlackOpenAI

HTTP calls to: api.linear.app

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

Use case When working with multiple teams, bugs must get in front of the right team as quickly as possible to be resolved. Normally this includes a manual grooming of new bugs that have arrived in your ticketing system (in our case Linear). We found this way…

Excerpt from Niklas Hatje's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.