{
  "name": "ChatGPT Automatic Code Review in Gitlab MR",
  "nodes": [
    {
      "id": "2a5a96c9-926c-447d-8244-db760e48a45f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -180,
        -140
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## Edit your own prompt ⬇️\n"
      }
    },
    {
      "id": "4c3a6b0b-2771-441d-8cb2-e17c07a92156",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1440,
        -100
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## Filter comments and customize your trigger words ⬇️"
      }
    },
    {
      "id": "4f42b776-cc24-486c-889f-7c09522503ed",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1180,
        -120
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## Replace your gitlab URL and token ⬇️"
      }
    },
    {
      "id": "b8859219-ce90-4940-8d9e-338c742def5e",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        140,
        -140
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## Replace your gitlab URL and token ⬇️"
      }
    },
    {
      "id": "6be296f3-bd61-4644-825f-d96d591f229e",
      "name": "Need Review",
      "type": "n8n-nodes-base.if",
      "position": [
        -1440,
        100
      ]
    },
    {
      "id": "fe59eeab-03a1-4b36-97f2-bf04bf6e4b8d",
      "name": "Get Changes",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1180,
        80
      ]
    },
    {
      "id": "4fe2800c-1eb5-44c6-93bb-25285a015b1d",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -1000,
        80
      ]
    },
    {
      "id": "1838ffe7-a846-473b-9716-2714d527c727",
      "name": "Skip File Changes",
      "type": "n8n-nodes-base.if",
      "position": [
        -820,
        80
      ]
    },
    {
      "id": "6215ecd2-55ad-4652-8c1f-f08713fdc237",
      "name": "Parse Last Diff Line",
      "type": "n8n-nodes-base.code",
      "position": [
        -560,
        -120
      ]
    },
    {
      "id": "bb3d6be0-7e85-4c2e-840a-090a36b48236",
      "name": "Basic LLM Chain",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        -180,
        60
      ]
    },
    {
      "id": "f3a6e8c6-eda1-4af1-bdd5-f3b56ef8c23b",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -180,
        220
      ]
    },
    {
      "id": "796b0d0f-320f-43ff-943a-0d15b73878c7",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1680,
        100
      ]
    },
    {
      "id": "74a7dd0c-fc01-411c-8ea9-e43b45c376c2",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        -360,
        -120
      ]
    },
    {
      "id": "d55f0b8f-aac5-49e3-a5f1-9dd1a7c46254",
      "name": "Post Discussions",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        240,
        60
      ]
    }
  ],
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Need Review",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Skip File Changes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Changes": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Need Review": {
      "main": [
        [
          {
            "node": "Get Changes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Basic LLM Chain": {
      "main": [
        [
          {
            "node": "Post Discussions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Skip File Changes": {
      "main": [
        [
          {
            "node": "Parse Last Diff Line",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Last Diff Line": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}