{
  "name": "Discover viral social media trends with Gemini Flash & Apify scraping",
  "nodes": [
    {
      "id": "ec98a813-e04e-4810-a1ee-e4ddc50ba3a2",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        96,
        -16
      ]
    },
    {
      "id": "6fa661ea-5d2a-4edb-93c0-b66ecc002b06",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        304,
        -16
      ]
    },
    {
      "id": "2fc88d37-787a-4df6-8aa2-69a6be7463d1",
      "name": "Fetch Google Trends RSS",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        480,
        -16
      ]
    },
    {
      "id": "d1ea6748-15a4-4e4f-968a-dc82d9da72fd",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1696,
        128
      ]
    },
    {
      "id": "2a7e81bf-6e9d-4047-8e7e-eed3151a23eb",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1696,
        288
      ]
    },
    {
      "id": "c714b370-5636-47c6-becc-bf1f037d5590",
      "name": "Format Google Output",
      "type": "n8n-nodes-base.code",
      "position": [
        688,
        -16
      ]
    },
    {
      "id": "972c9900-dc9b-4bfe-bcc1-75c74a95ec05",
      "name": "TikTok Scrapper",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        880,
        -16
      ]
    },
    {
      "id": "797ed501-27c0-43eb-a79c-9314e6b38eb1",
      "name": "Instagram Scrapper",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        880,
        128
      ]
    },
    {
      "id": "fd790b27-abad-4ea8-b452-29dfa22a8c02",
      "name": "X Scrapper",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        880,
        288
      ]
    },
    {
      "id": "9ff898ae-44bf-4676-9fda-5bba9e9152e7",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        1328,
        112
      ]
    },
    {
      "id": "0d7a5b7f-1b62-4538-a355-aa7105a0f55a",
      "name": "Tiktok Output",
      "type": "n8n-nodes-base.code",
      "position": [
        1088,
        -16
      ]
    },
    {
      "id": "ac0e890f-a454-4b69-89fc-8e2c7cc83822",
      "name": "Instagram Output",
      "type": "n8n-nodes-base.code",
      "position": [
        1088,
        128
      ]
    },
    {
      "id": "73133474-f236-4b87-b444-e802b7edaf91",
      "name": "X Output",
      "type": "n8n-nodes-base.code",
      "position": [
        1088,
        288
      ]
    },
    {
      "id": "d26ee8fc-b935-4193-84b7-52885a86544f",
      "name": "Code in JavaScript",
      "type": "n8n-nodes-base.code",
      "position": [
        1504,
        128
      ]
    },
    {
      "id": "5012e2c2-2dde-4868-a3d0-6cf45a8b78aa",
      "name": "Parse Output",
      "type": "n8n-nodes-base.code",
      "position": [
        2000,
        128
      ]
    },
    {
      "id": "89162d92-4494-451a-a489-b2124fdae483",
      "name": "Discord",
      "type": "n8n-nodes-base.discord",
      "position": [
        2416,
        128
      ]
    },
    {
      "id": "6cbea001-c525-45f1-bad5-e277bb1c9326",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        2208,
        128
      ]
    },
    {
      "id": "66f760bb-2f05-442f-9bbc-ba59befefd69",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -464,
        -272
      ],
      "parameters": {
        "width": 512,
        "height": 800,
        "content": "### **AI-Driven Social Intelligence Agent**\n\nThis workflow is a professional-grade market intelligence tool that automatically synchronizes search trends with real-world social media activity to ident"
      }
    },
    {
      "id": "c817048b-3f56-4a6e-b5b4-ddc3f20a0a29",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        464,
        -128
      ],
      "parameters": {
        "width": 576,
        "height": 576,
        "content": "## **1. Multi-Platform Data Fetching**\nExtracts raw trending data from Google Search (via RSS) and deep-scrapes TikTok, Instagram, and X using Apify's robust industrial actors."
      }
    },
    {
      "id": "a166ac4c-8d19-4e73-a4fb-6f7706f59157",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1488,
        16
      ],
      "parameters": {
        "width": 624,
        "height": 400,
        "content": "## **2. AI Synthesis & Trend Intelligence**\nAggregates all raw social data and uses LLMs (Gemini) to cross-reference topics, removing noise and identifying the \"why\" behind the trend."
      }
    },
    {
      "id": "d8f91f70-4aca-478a-ba9f-a4cb4886daf3",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2176,
        0
      ],
      "parameters": {
        "width": 416,
        "height": 304,
        "content": "## **3. Granular Reporting & Alerting**\nConverts complex AI analysis into readable formats and sends instant, per-topic alerts to your team via Discord Webhooks."
      }
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Parse Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "X Output": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Discord",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "X Scrapper": {
      "main": [
        [
          {
            "node": "X Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Fetch Google Trends RSS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Output": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tiktok Output": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "TikTok Scrapper": {
      "main": [
        [
          {
            "node": "Tiktok Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Instagram Output": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Instagram Scrapper": {
      "main": [
        [
          {
            "node": "Instagram Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Google Output": {
      "main": [
        [
          {
            "node": "TikTok Scrapper",
            "type": "main",
            "index": 0
          },
          {
            "node": "Instagram Scrapper",
            "type": "main",
            "index": 0
          },
          {
            "node": "X Scrapper",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Google Trends RSS": {
      "main": [
        [
          {
            "node": "Format Google Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}