{
  "name": "Review GitHub pull requests with Gemini and post feedback automatically",
  "nodes": [
    {
      "id": "be776153-13cd-4ece-8e2b-32d3e45d7671",
      "name": "GitHub PR webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -96,
        64
      ]
    },
    {
      "id": "fcf3d77c-97fc-4a38-870c-a445a621a5e3",
      "name": "Parse PR data",
      "type": "n8n-nodes-base.code",
      "position": [
        80,
        64
      ]
    },
    {
      "id": "9fcdfed0-4475-4a37-a71f-c46c54acacf0",
      "name": "Get PR diff",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        320,
        64
      ]
    },
    {
      "id": "4891d361-a30d-410f-a0ce-493ce3283f70",
      "name": "Analyze diff",
      "type": "n8n-nodes-base.code",
      "position": [
        480,
        64
      ]
    },
    {
      "id": "6391e2d1-e52a-4c86-8f28-8ed20acbacd6",
      "name": "Code review",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        672,
        64
      ]
    },
    {
      "id": "9600490e-13b0-4859-af31-1c2e155ce793",
      "name": "Google Gemini AI",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        672,
        224
      ]
    },
    {
      "id": "97feb106-fb0a-4a1d-8a2f-7e642652329d",
      "name": "Format review",
      "type": "n8n-nodes-base.code",
      "position": [
        944,
        64
      ]
    },
    {
      "id": "5888b39d-17ff-40e3-bc0b-262f8af40aa4",
      "name": "Post GitHub review",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1136,
        64
      ]
    },
    {
      "id": "2a5e717f-01e0-46dd-bb35-be92880c5b92",
      "name": "Log to Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1296,
        64
      ]
    },
    {
      "id": "42d011aa-ce69-4662-a4b3-abd3cec1f953",
      "name": "Notify team",
      "type": "n8n-nodes-base.slack",
      "position": [
        1440,
        64
      ]
    },
    {
      "id": "018f1cfd-bd13-4174-b29c-255f84ed4244",
      "name": "Overview Sticky",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -512,
        -144
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "6051a632-9356-4ef2-be70-79bf2b82aba5",
      "name": "Webhook Setup Section",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -144
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "6802776e-ba62-4816-953f-e1626a748ed4",
      "name": "Data Analysis Section",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        256,
        -144
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "b5c2900a-1f2c-49fd-8836-7402f8fa5474",
      "name": "AI Review Section",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        -144
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "46f68c83-1037-4ce3-ba07-a666b10a74fe",
      "name": "Results Section",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1088,
        -144
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "Code review": {
      "main": [
        [
          {
            "node": "Format review",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get PR diff": {
      "main": [
        [
          {
            "node": "Analyze diff",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze diff": {
      "main": [
        [
          {
            "node": "Code review",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format review": {
      "main": [
        [
          {
            "node": "Post GitHub review",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log to Sheets": {
      "main": [
        [
          {
            "node": "Notify team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse PR data": {
      "main": [
        [
          {
            "node": "Get PR diff",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini AI": {
      "ai_languageModel": [
        [
          {
            "node": "Code review",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "GitHub PR webhook": {
      "main": [
        [
          {
            "node": "Parse PR data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post GitHub review": {
      "main": [
        [
          {
            "node": "Log to Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}