{
  "name": "Automated Instagram comment response with DMs & Google Sheets tracking",
  "nodes": [
    {
      "id": "82aaa8f5-c2fc-49b4-9d69-2b439001c7dd",
      "name": "Start Monitoring",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1520,
        80
      ]
    },
    {
      "id": "c191f69e-4483-409a-b313-2e11e0250e47",
      "name": "Configure Post & Message",
      "type": "n8n-nodes-base.set",
      "position": [
        -1300,
        220
      ]
    },
    {
      "id": "66a72bd2-4f15-4c01-bbad-27d0ec3ce775",
      "name": "Read Contacted Users",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1100,
        220
      ]
    },
    {
      "id": "78881d28-aa34-408d-a6ed-d3578f92c394",
      "name": "Filter New Comments",
      "type": "n8n-nodes-base.code",
      "position": [
        -700,
        220
      ]
    },
    {
      "id": "13ad0cdd-7da6-4e57-98e8-28dae0916ed4",
      "name": "Check If Has New Comments",
      "type": "n8n-nodes-base.if",
      "position": [
        -540,
        220
      ]
    },
    {
      "id": "f20e9a90-f8db-4f42-acdb-1e99295a0a0c",
      "name": "Send Reply to Comment",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -340,
        120
      ]
    },
    {
      "id": "7e4c9bd5-973f-4a15-941d-239ae9581bd8",
      "name": "Check Reply Success",
      "type": "n8n-nodes-base.if",
      "position": [
        -180,
        20
      ]
    },
    {
      "id": "40146447-62b1-4c97-87f6-44db758b4c8d",
      "name": "Record Contacted User",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        40,
        -60
      ]
    },
    {
      "id": "730bb698-62e4-4944-83c3-982864140daf",
      "name": "Log Failed Reply",
      "type": "n8n-nodes-base.code",
      "position": [
        40,
        100
      ]
    },
    {
      "id": "c87fe62f-9024-4827-8c56-65075e00fb23",
      "name": "Generate Summary",
      "type": "n8n-nodes-base.code",
      "position": [
        260,
        240
      ]
    },
    {
      "id": "1ae9c8df-41b4-42e5-9df9-691fb9b6f2ad",
      "name": "Get Post Comments",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -920,
        220
      ]
    },
    {
      "id": "08822705-3afd-4ea4-8d9e-8874d989507c",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1520,
        340
      ]
    }
  ],
  "connections": {
    "Log Failed Reply": {
      "main": [
        [
          {
            "node": "Generate Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Configure Post & Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start Monitoring": {
      "main": [
        [
          {
            "node": "Configure Post & Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Post Comments": {
      "main": [
        [
          {
            "node": "Filter New Comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Reply Success": {
      "main": [
        [
          {
            "node": "Record Contacted User",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log Failed Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter New Comments": {
      "main": [
        [
          {
            "node": "Check If Has New Comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Contacted Users": {
      "main": [
        [
          {
            "node": "Get Post Comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Record Contacted User": {
      "main": [
        [
          {
            "node": "Generate Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Reply to Comment": {
      "main": [
        [
          {
            "node": "Check Reply Success",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Configure Post & Message": {
      "main": [
        [
          {
            "node": "Read Contacted Users",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check If Has New Comments": {
      "main": [
        [
          {
            "node": "Send Reply to Comment",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generate Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}