Linear Bug 自动路由
高级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 17 个节点。主要使用 If, Linear, Switch, LinearTrigger, Agent 等节点。 使用 GPT-4-mini 分类实现 Linear 问题自动路由
前置要求
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"templateCredsSetupCompleted": false
},
"name": "Linear Bug 自动路由",
"nodes": [
{
"id": "8de2b34a-a4ff-4cdb-a028-3a5cf4583e63",
"name": "📋 仅筛选新问题",
"type": "n8n-nodes-base.if",
"position": [
-2384,
736
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 1,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "condition-1",
"operator": {
"type": "string",
"operation": "exists"
},
"leftValue": "={{ $json.data.title }}",
"rightValue": ""
}
]
}
},
"typeVersion": 2
},
{
"id": "ddc917d1-0513-49e0-a522-178210751b71",
"name": "🔔 Linear 触发器",
"type": "n8n-nodes-base.linearTrigger",
"position": [
-2608,
736
],
"parameters": {
"teamId": "YOUR_LINEAR_TEAM_ID",
"resources": [
"issue"
]
},
"credentials": {
"linearApi": "linear_api_credentials"
},
"typeVersion": 1
},
{
"id": "07c6b417-86b4-43a6-b8f5-0db4685b073a",
"name": "⚖️ 如果(创建或更新)",
"type": "n8n-nodes-base.if",
"position": [
-2160,
736
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "or",
"conditions": [
{
"id": "a395310f-475c-4726-b2ef-7db876471a36",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.action }}",
"rightValue": "create"
},
{
"id": "92ece19c-6765-4ed0-a5dc-4fd1ef190cb6",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.action }}",
"rightValue": "update"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "aab37c69-54c9-4a53-ae6a-780091c1915f",
"name": "🤖 AI Agent(Bug 分类器)",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-1936,
736
],
"parameters": {
"text": "=You are a bug classification expert. Based on the bug title and description, classify it into exactly one of these teams: Engineering, Product, Design, QA, DevOps, Support.\n\nRules:\n- If it belongs to Engineering, respond with: ENGINEERING_TEAM_ID\n- If it belongs to Product, respond with: PRODUCT_TEAM_ID\n- If it belongs to Design, respond with: DESIGN_TEAM_ID\n- If it belongs to Nothing(Default), respond with: DEFAULT_TEAM_ID\n\n\nRespond with ONLY the correct team ID as specified above. Do not include explanations, text, or formatting.\n\nTitle: {{ $json.data.title }}\nDescription: {{ $json.data.description }}",
"options": {},
"promptType": "define"
},
"typeVersion": 2.2
},
{
"id": "af0aef84-bb2a-4a6e-a35a-ce1002fb7907",
"name": "🔀 工程路由",
"type": "n8n-nodes-base.switch",
"position": [
-1584,
448
],
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"version": 1,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "cedcaf8e-894e-4598-9d82-8e6ad125449c",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.output }}",
"rightValue": "ENGINEERING_TEAM_ID"
}
]
}
}
]
},
"options": {}
},
"typeVersion": 3
},
{
"id": "8fd08de3-dc30-495d-9ac4-1939d60d5bee",
"name": "🔀 产品路由",
"type": "n8n-nodes-base.switch",
"position": [
-1584,
640
],
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"version": 1,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "1d753992-3f8f-4899-a6db-1394ad513af8",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.output }}",
"rightValue": "PRODUCT_TEAM_ID"
}
]
}
}
]
},
"options": {}
},
"typeVersion": 3
},
{
"id": "4ebcd42e-7a0b-4a6a-acf0-decf9b60c7ca",
"name": "🔀 设计路由",
"type": "n8n-nodes-base.switch",
"position": [
-1584,
832
],
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"version": 1,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "85fcf1da-00b7-4392-9421-23dd52c18258",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.output }}",
"rightValue": "DESIGN_TEAM_ID"
}
]
}
}
]
},
"options": {}
},
"typeVersion": 3
},
{
"id": "11e315a7-50e2-4789-ad38-4c9a33569ede",
"name": "🔀 默认路由",
"type": "n8n-nodes-base.switch",
"position": [
-1584,
1024
],
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"version": 1,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "85fcf1da-00b7-4392-9421-23dd52c18258",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.output }}",
"rightValue": "DEFAULT_TEAM_ID"
}
]
}
}
]
},
"options": {}
},
"typeVersion": 3
},
{
"id": "37ef1f41-1cb2-40d0-99d2-f10603253e8f",
"name": "🛠️ 分配给工程",
"type": "n8n-nodes-base.linear",
"position": [
-1360,
448
],
"parameters": {
"issueId": "={{ $('⚖️ If (Create or Update)').item.json.data.id }}",
"operation": "update",
"updateFields": {
"teamId": "={{ $json.output }}"
}
},
"credentials": {
"linearApi": "linear_api_credentials"
},
"typeVersion": 1.1
},
{
"id": "1ff305f6-6ad4-496e-8380-22e26f637c55",
"name": "📦 分配给产品",
"type": "n8n-nodes-base.linear",
"position": [
-1360,
640
],
"parameters": {
"issueId": "={{ $('⚖️ If (Create or Update)').item.json.data.id }}",
"operation": "update",
"updateFields": {
"teamId": "={{ $json.output }}"
}
},
"credentials": {
"linearApi": "linear_api_credentials"
},
"typeVersion": 1.1
},
{
"id": "5fb7fd8b-521e-4bf2-8e25-319e4a4bd961",
"name": "🎨 分配给设计",
"type": "n8n-nodes-base.linear",
"position": [
-1360,
832
],
"parameters": {
"issueId": "={{ $('⚖️ If (Create or Update)').item.json.data.id }}",
"operation": "update",
"updateFields": {
"teamId": "={{ $json.output }}"
}
},
"credentials": {
"linearApi": "linear_api_credentials"
},
"typeVersion": 1.1
},
{
"id": "998b5ad7-72b0-49d0-9e87-57bca44b5976",
"name": "📂 分配给默认",
"type": "n8n-nodes-base.linear",
"position": [
-1360,
1024
],
"parameters": {
"issueId": "={{ $('⚖️ If (Create or Update)').item.json.data.id }}",
"operation": "update",
"updateFields": {
"teamId": "={{ $json.output }}"
}
},
"credentials": {
"linearApi": "linear_api_credentials"
},
"typeVersion": 1.1
},
{
"id": "c8beeaf3-ca48-4d22-8889-5b0bac314700",
"name": "🧠 OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-1872,
960
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4-mini"
},
"options": {}
},
"credentials": {
"openAiApi": "openai_api_credentials"
},
"typeVersion": 1.2
},
{
"id": "e5ea3681-7a84-4582-b473-147ce69fb941",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2656,
144
],
"parameters": {
"color": 5,
"width": 640,
"height": 1040,
"content": "## 🔔 触发与筛选"
},
"typeVersion": 1
},
{
"id": "ad3eda57-3289-46f9-bb1a-7cacb0632206",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2000,
144
],
"parameters": {
"color": 4,
"width": 320,
"height": 1040,
"content": "## 🤖 AI 分类"
},
"typeVersion": 1
},
{
"id": "45ab34c6-9464-4d11-be27-297efa530029",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1408,
144
],
"parameters": {
"height": 1040,
"content": "## 🗂️ 分配操作"
},
"typeVersion": 1
},
{
"id": "9f3b5383-c215-4e33-ac47-93698cf186a4",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1664,
144
],
"parameters": {
"color": 3,
"height": 1040,
"content": "## 🔀 路由逻辑"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"connections": {
"🔀 Design Router": {
"main": [
[
{
"node": "🎨 Assign to Design",
"type": "main",
"index": 0
}
]
]
},
"🔀 Default Router": {
"main": [
[
{
"node": "📂 Assign to Default",
"type": "main",
"index": 0
}
]
]
},
"🔀 Product Router": {
"main": [
[
{
"node": "📦 Assign to Product",
"type": "main",
"index": 0
}
]
]
},
"🔔 Linear Trigger": {
"main": [
[
{
"node": "📋 Filter New Issues Only",
"type": "main",
"index": 0
}
]
]
},
"🧠 OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "🤖 AI Agent (Bug Classifier)",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"🔀 Engineering Router": {
"main": [
[
{
"node": "🛠️ Assign to Engineering",
"type": "main",
"index": 0
}
]
]
},
"📋 Filter New Issues Only": {
"main": [
[
{
"node": "⚖️ If (Create or Update)",
"type": "main",
"index": 0
}
]
]
},
"⚖️ If (Create or Update)": {
"main": [
[
{
"node": "🤖 AI Agent (Bug Classifier)",
"type": "main",
"index": 0
}
]
]
},
"🤖 AI Agent (Bug Classifier)": {
"main": [
[
{
"node": "🔀 Engineering Router",
"type": "main",
"index": 0
},
{
"node": "🔀 Product Router",
"type": "main",
"index": 0
},
{
"node": "🔀 Design Router",
"type": "main",
"index": 0
},
{
"node": "🔀 Default Router",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
LeadFusion - AI线索丰富工作流
基于GPT-4o的AI线索评分与丰富(从Mailchimp到HubSpot和Pipedrive)
If
Code
Hubspot
+5
13 节点Avkash Kakdiya
内容创作
AI驱动的WordPress内容工作流
使用OpenAI GPT自动化从PostgreSQL到WordPress的博客发布
If
Code
Postgres
+5
12 节点Avkash Kakdiya
内容创作
Notion想法收集器
使用GPT-4o-mini、Notion和Slack通知捕获和处理想法
Code
Slack
Notion
+4
9 节点Avkash Kakdiya
内容创作
37 - Productboard–Linear 集成
将 Productboard 功能同步至 Linear 问题,支持 Telegram 通知
If
Code
Linear
+4
10 节点Avkash Kakdiya
内容创作
12 - 智能潜在客户信息增强器
基于AI的潜在客户信息增强:从Typeform和Calendly到HubSpot CRM
If
Code
Merge
+6
13 节点Avkash Kakdiya
AI 摘要总结
✨🩷自动化社交媒体内容发布工厂 + 系统提示组合
基于动态系统提示和GPT-4o的AI驱动多平台社交媒体内容工厂
If
Set
Code
+20
100 节点Amit Mehta
内容创作
工作流信息
难度等级
高级
节点数量17
分类2
节点类型7
作者
Avkash Kakdiya
@itechnotion🚀 Founder of iTechNotion — we build custom AI-powered automation workflows for startups, agencies, and founders. 💡 Specializing in agentic AI systems, content automation, sales funnels, and digital workers. 🔧 14+ years in tech | Building scalable no-code/low-code solutions using n8n, OpenAI, and other API-first tools. 📬 Let’s automate what slows you down.
外部链接
在 n8n.io 查看 →
分享此工作流