{
  "name": "Automate Instagram content discovery & repurposing w/ Apify, GPT-4o & Perplexity",
  "nodes": [
    {
      "id": "sticky-note-1",
      "name": null,
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        -280
      ],
      "parameters": {
        "width": 350,
        "height": 200,
        "content": "## 🎯 STEP 1: Instagram Content Discovery\n\nThis node uses Apify to scrape Instagram reels from competitor accounts. Replace <your-apify-api-key-here> with your actual API key.\n\n**Key Setup:**\n- Add you"
      }
    },
    {
      "id": "sticky-note-2",
      "name": null,
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        600,
        -320
      ],
      "parameters": {
        "width": 380,
        "height": 180,
        "content": "## 🔍 STEP 2: Smart Duplicate Prevention\n\nThis section prevents processing the same content twice:\n\n1. **Search for Entries**: Checks if reel ID already exists in database\n2. **Drop Duplicates**: Remov"
      }
    },
    {
      "id": "sticky-note-3",
      "name": null,
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1400,
        -320
      ],
      "parameters": {
        "width": 400,
        "height": 200,
        "content": "## 🧠 STEP 3: AI-Powered Content Analysis\n\nThe AI pipeline processes each reel:\n\n1. **Transcribe Video**: Uses OpenAI Whisper to extract text from videos\n2. **Filter & Generate**: GPT-4o identifies too"
      }
    },
    {
      "id": "sticky-note-4",
      "name": null,
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2400,
        -280
      ],
      "parameters": {
        "width": 350,
        "height": 160,
        "content": "## 📋 STEP 4: Database Updates\n\nFinal step saves everything back to Google Sheets:\n\n**Update Entries**: Adds the original transcript and newly generated script to your database for future reference and"
      }
    },
    {
      "id": "c55c87f0-868c-4d3a-a0ca-43cc7191cb32",
      "name": "Run Actor Synchronously",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        220,
        0
      ]
    },
    {
      "id": "df030281-6513-45a2-9c72-b1e59ee4c4b6",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        440,
        0
      ]
    },
    {
      "id": "8a0ea140-f361-4208-be52-c1dcb91270a7",
      "name": "Filter & Generate Suggestions",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1620,
        0
      ]
    },
    {
      "id": "8dbcc1b2-2bc7-4d4f-bc38-8f2b6384abcf",
      "name": "Search for Entries",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        640,
        -160
      ]
    },
    {
      "id": "e2b81a84-6724-4757-8991-a62610943ea0",
      "name": "Drop Duplicates",
      "type": "n8n-nodes-base.merge",
      "position": [
        820,
        0
      ]
    },
    {
      "id": "a2650df2-9375-40ec-9ede-115cd692c9ca",
      "name": "Add Entries",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1020,
        0
      ]
    },
    {
      "id": "d5f3e37e-af9f-4eee-b184-67104708539b",
      "name": "Download Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1240,
        0
      ]
    },
    {
      "id": "be8bc4fc-de39-41e4-bdda-fa6988b4db71",
      "name": "Transcribe Video",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1440,
        0
      ]
    },
    {
      "id": "71217539-540a-447d-9890-76b2b6b32986",
      "name": "Search Perplexity",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1980,
        0
      ]
    },
    {
      "id": "3c8706bb-6796-4b02-83a8-b8e39e6e91dd",
      "name": "Write New Script",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2180,
        0
      ]
    },
    {
      "id": "c2e95c8b-cd40-45fd-9b4a-3c7a3c2c35c0",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        20,
        0
      ]
    },
    {
      "id": "c91557c0-1051-42bd-bdbb-484995bdda84",
      "name": "Update Entries",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2540,
        0
      ]
    }
  ],
  "connections": {
    "Limit": {
      "main": [
        [
          {
            "node": "Search for Entries",
            "type": "main",
            "index": 0
          },
          {
            "node": "Drop Duplicates",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Add Entries": {
      "main": [
        [
          {
            "node": "Download Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Video": {
      "main": [
        [
          {
            "node": "Transcribe Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Drop Duplicates": {
      "main": [
        [
          {
            "node": "Add Entries",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Run Actor Synchronously",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe Video": {
      "main": [
        [
          {
            "node": "Filter & Generate Suggestions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write New Script": {
      "main": [
        [
          {
            "node": "Update Entries",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search Perplexity": {
      "main": [
        [
          {
            "node": "Write New Script",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search for Entries": {
      "main": [
        [
          {
            "node": "Drop Duplicates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run Actor Synchronously": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter & Generate Suggestions": {
      "main": [
        [
          {
            "node": "Search Perplexity",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}