{
  "name": "Triage GitHub issues with Gemini AI, auto-label them, and send Slack alerts",
  "nodes": [
    {
      "id": "82242ae4-4639-484b-8e48-c5f9e7fc56f1",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        528
      ],
      "parameters": {
        "width": 500,
        "height": 644,
        "content": "### GitHub issue triage with Gemini AI\nAutomatically classifies new issues, adds labels, and routes alerts by priority.\n\n### How it works\n1. A **webhook** fires when a new issue is opened on your repo"
      }
    },
    {
      "id": "44b185f3-6481-4b5e-8e4a-434cfb73dd58",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        112,
        528
      ],
      "parameters": {
        "width": 480,
        "height": 480,
        "content": "## Capture new issues\nWebhook receives the GitHub event payload. The Set node picks out the fields we actually need for classification."
      }
    },
    {
      "id": "9cedae3f-f26f-4ff6-9665-edc6f42ef497",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        624,
        528
      ],
      "parameters": {
        "width": 480,
        "height": 480,
        "content": "## AI classification\nGemini reads the issue and returns type, priority, and a one-line summary as JSON. The next node parses the response."
      }
    },
    {
      "id": "23b154fe-a09a-4999-be47-91e8f261a8a4",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1136,
        528
      ],
      "parameters": {
        "width": 480,
        "height": 480,
        "content": "## Update the issue\nPOSTs labels and an AI analysis comment back to GitHub via the REST API."
      }
    },
    {
      "id": "3f1e5df5-a57e-42b6-9ecb-1c8ee53959e2",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1632,
        528
      ],
      "parameters": {
        "width": 784,
        "height": 480,
        "content": "## Route alerts & log\nCritical/High → #urgent-issues, Medium/Low → #issue-tracker. Everything gets appended to Sheets for analytics."
      }
    },
    {
      "id": "14c49277-33b1-49d0-8d7d-51fab0f4da98",
      "name": "GitHub Issue Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        176,
        704
      ]
    },
    {
      "id": "cd56005c-66c3-4926-b4bb-f7337c548e16",
      "name": "Extract Issue Data",
      "type": "n8n-nodes-base.set",
      "position": [
        416,
        704
      ]
    },
    {
      "id": "12c0d793-057d-4a50-a206-f96ca89eb865",
      "name": "Classify with Gemini AI",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        704,
        704
      ]
    },
    {
      "id": "b7877b46-2d2b-4e76-ad27-294df27845dd",
      "name": "Parse AI Response",
      "type": "n8n-nodes-base.set",
      "position": [
        944,
        704
      ]
    },
    {
      "id": "7eb88821-1f42-499a-a92a-4e525e509824",
      "name": "Add Labels to Issue",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1216,
        704
      ]
    },
    {
      "id": "ba10d179-0e6f-44d2-b4fa-d9d10e998296",
      "name": "Post AI Comment",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1456,
        704
      ]
    },
    {
      "id": "5f35a814-66d9-4e83-927a-ba173d620177",
      "name": "Is Critical or High?",
      "type": "n8n-nodes-base.if",
      "position": [
        1744,
        704
      ]
    },
    {
      "id": "8fc8e6c9-ed0b-4cae-a11b-ba9336fcfa85",
      "name": "Alert Urgent Issues",
      "type": "n8n-nodes-base.slack",
      "position": [
        1984,
        608
      ]
    },
    {
      "id": "42f4e44f-5c7d-4411-a765-588bd563ceea",
      "name": "Log to Issue Tracker",
      "type": "n8n-nodes-base.slack",
      "position": [
        1984,
        816
      ]
    },
    {
      "id": "60306f05-211d-46f8-b5b3-1a81b9f43eef",
      "name": "Log to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2192,
        704
      ]
    }
  ],
  "connections": {
    "Post AI Comment": {
      "main": [
        [
          {
            "node": "Is Critical or High?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse AI Response": {
      "main": [
        [
          {
            "node": "Add Labels to Issue",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Issue Data": {
      "main": [
        [
          {
            "node": "Classify with Gemini AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Labels to Issue": {
      "main": [
        [
          {
            "node": "Post AI Comment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GitHub Issue Webhook": {
      "main": [
        [
          {
            "node": "Extract Issue Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Critical or High?": {
      "main": [
        [
          {
            "node": "Alert Urgent Issues",
            "type": "main",
            "index": 0
          },
          {
            "node": "Log to Google Sheets",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log to Issue Tracker",
            "type": "main",
            "index": 0
          },
          {
            "node": "Log to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Classify with Gemini AI": {
      "main": [
        [
          {
            "node": "Parse AI Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}