{
  "name": "Automate LinkedIn comment replies with GPT-3.5 & track in Google Sheets",
  "nodes": [
    {
      "id": "9760b272-ad71-47ec-aab8-51eb8b937bb7",
      "name": "📥 Fetch LinkedIn Comments",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        900,
        320
      ]
    },
    {
      "id": "3a82041d-b02f-4431-97f2-c6760a96324e",
      "name": "📊 Set Last Timestamp",
      "type": "n8n-nodes-base.set",
      "position": [
        1120,
        220
      ]
    },
    {
      "id": "6d88d258-ff26-41df-814d-e237f1061dbc",
      "name": "🔍 Filter New Comments",
      "type": "n8n-nodes-base.if",
      "position": [
        1340,
        220
      ]
    },
    {
      "id": "1e19adac-640f-4583-bc80-e9a4e4c8210a",
      "name": "🤖 Generate AI Reply",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1560,
        220
      ]
    },
    {
      "id": "abe4892d-9908-4794-ae53-befbdaaacf75",
      "name": "💬 Post LinkedIn Reply",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1940,
        220
      ]
    },
    {
      "id": "dcaef8a6-4d04-4eac-b01b-f03984556e34",
      "name": "📋 Workflow Notes2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        620,
        -200
      ],
      "parameters": {
        "width": 440,
        "height": 740,
        "content": "## Nodes Covered: LinkedIn API, Scheduling, Google Sheet\n\n📅 Note:\n\nAUTOMATED LINKEDIN COMMENT MONITORING\n\n*Fetches comments from a specific LinkedIn post every 10 minutes using LinkedIn's API. It auth"
      }
    },
    {
      "id": "226eb70b-6529-48fe-9c60-872eb15a59e4",
      "name": "⏰ Runs Every 10 Mins",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        680,
        220
      ]
    },
    {
      "id": "65caa63a-15c2-4ff1-9917-ff5e6f0789d2",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1080,
        -200
      ],
      "parameters": {
        "width": 420,
        "height": 740,
        "content": "## Nodes Covered: Data Filtering\n\n📊 Note:\n\nDYNAMIC COMMENT FILTERING\n\n*Retrieves the timestamp of the last processed comment from a Google Sheet, and filters out already-handled entries to focus only "
      }
    },
    {
      "id": "d30d1fda-a75d-4017-bec8-8eb02541be05",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1520,
        -200
      ],
      "parameters": {
        "width": 340,
        "height": 740,
        "content": "## Nodes Covered: OpenAI Analysis\n\n🧠 Note:\n\nAI-GENERATED LINKEDIN ENGAGEMENT\n\n*Uses OpenAI (GPT-3.5 Turbo) to generate friendly and professional replies to new LinkedIn comments. Prompts are structure"
      }
    },
    {
      "id": "5885c2a3-43db-4184-af9b-759ba9d7cc99",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1880,
        -200
      ],
      "parameters": {
        "width": 220,
        "height": 740,
        "content": "## Nodes Covered: LinkedIn API, AI Output Delivery\n\n💬 Note:\n\nAUTOMATED COMMENT REPLY POSTING\n\n*Takes AI-generated replies and posts them back to LinkedIn as responses under the original comment thread"
      }
    },
    {
      "id": "c50f65cb-00d1-40e4-b5a0-5640c25edb79",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2120,
        -200
      ],
      "parameters": {
        "width": 220,
        "height": 740,
        "content": "## Nodes Covered: Google Sheets (Write)\n\n💾 Note:\n\nCOMMENT DATA ARCHIVAL\n\n*Appends processed LinkedIn comments and associated metadata into a structured Google Sheet for tracking, review, or future ana"
      }
    },
    {
      "id": "6c6ccc12-0678-4cec-9257-97a9b1c67022",
      "name": "📊 Get Last Comment Timestamp",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        900,
        140
      ]
    },
    {
      "id": "93407535-d411-4407-800c-df6930304cb3",
      "name": "💾 Store Comment Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2160,
        220
      ]
    }
  ],
  "connections": {
    "⏰ Runs Every 10 Mins": {
      "main": [
        [
          {
            "node": "📥 Fetch LinkedIn Comments",
            "type": "main",
            "index": 0
          },
          {
            "node": "📊 Get Last Comment Timestamp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🤖 Generate AI Reply": {
      "main": [
        [
          {
            "node": "💬 Post LinkedIn Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📊 Set Last Timestamp": {
      "main": [
        [
          {
            "node": "🔍 Filter New Comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "💬 Post LinkedIn Reply": {
      "main": [
        [
          {
            "node": "💾 Store Comment Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔍 Filter New Comments": {
      "main": [
        [
          {
            "node": "🤖 Generate AI Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📥 Fetch LinkedIn Comments": {
      "main": [
        [
          {
            "node": "📊 Set Last Timestamp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📊 Get Last Comment Timestamp": {
      "main": [
        [
          {
            "node": "📊 Set Last Timestamp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}