{
  "name": "Extract trends, auto-generate social content with AI, Reddit, Google & post",
  "nodes": [
    {
      "id": "556a0c9d-be45-4564-8931-89ed0f6345ec",
      "name": "Set Default Inputs",
      "type": "n8n-nodes-base.set",
      "position": [
        240,
        640
      ]
    },
    {
      "id": "fd0d2a66-1a89-4d48-9e6f-ffd2ce50f8d4",
      "name": "Fetch Twitter Trends",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1280,
        420
      ]
    },
    {
      "id": "52e6130c-9de0-44f1-ae57-a58f04969cb9",
      "name": "Fetch Twitter Mentions",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        400,
        460
      ]
    },
    {
      "id": "b52809d0-f7a8-4e0d-a188-dc678743ffb4",
      "name": "SERP-Google Trends",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        680,
        860
      ]
    },
    {
      "id": "efb03844-ca36-4753-9e3e-016610a2d1ff",
      "name": "Fetch Breaking News",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        680,
        620
      ]
    },
    {
      "id": "266ddb21-5061-43b4-b68e-13a1cfe56530",
      "name": "Analyze News Sentiment",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1240,
        620
      ]
    },
    {
      "id": "86a3478d-d122-4634-adbc-65ffdca7e447",
      "name": "Detect Audience Mood",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1220,
        280
      ]
    },
    {
      "id": "78da3e89-60e8-4a06-bd64-faf6c41dc423",
      "name": "Translate Tweets to English",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        560,
        360
      ]
    },
    {
      "id": "eb45e8e5-7191-4673-99da-4e28aa12a2d2",
      "name": "Combine All Data",
      "type": "n8n-nodes-base.merge",
      "position": [
        2000,
        580
      ]
    },
    {
      "id": "916f7c4d-0495-4d73-a416-7a1e1c7f7b05",
      "name": "Merge Items into Single Item",
      "type": "n8n-nodes-base.code",
      "position": [
        2160,
        380
      ]
    },
    {
      "id": "294ad3c2-bd20-481b-a78f-1be9bad3e5e5",
      "name": "Fix Translated Tweets Output",
      "type": "n8n-nodes-base.set",
      "position": [
        880,
        360
      ]
    },
    {
      "id": "64bc2120-5ec4-43fa-93b2-997ed7d48fbf",
      "name": "Fix Audience Mood Output",
      "type": "n8n-nodes-base.set",
      "position": [
        1560,
        280
      ]
    },
    {
      "id": "5426a1f7-f637-4f40-b5f9-dab4afaae45b",
      "name": "Fix News Sentiment Output",
      "type": "n8n-nodes-base.set",
      "position": [
        1560,
        620
      ]
    },
    {
      "id": "bf09cb84-f2a0-404c-9613-91a982b5ac6a",
      "name": "Trend Relevance Scoring (Wow Factor)",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2880,
        380
      ]
    },
    {
      "id": "8724453f-f3ca-4c86-bba7-0dea197b7829",
      "name": "Extract Google Trends",
      "type": "n8n-nodes-base.set",
      "position": [
        1560,
        860
      ]
    },
    {
      "id": "09ce4fad-3229-4b96-9917-2a9ddc476824",
      "name": "Extract News Headlines",
      "type": "n8n-nodes-base.set",
      "position": [
        880,
        620
      ]
    },
    {
      "id": "7f239d0c-f198-461d-b6f8-ba681db8bd9a",
      "name": "Log Reddit Response",
      "type": "n8n-nodes-base.code",
      "position": [
        1080,
        1100
      ]
    },
    {
      "id": "1c03ba94-7936-4be2-a113-d1b75e24a606",
      "name": "Posts from Reddit",
      "type": "n8n-nodes-base.reddit",
      "position": [
        680,
        1100
      ]
    },
    {
      "id": "bd8776f2-02da-4106-9b14-6a13bd318106",
      "name": "Exctract Reddit Trends",
      "type": "n8n-nodes-base.code",
      "position": [
        1560,
        1100
      ]
    },
    {
      "id": "f0fc7d05-f7a2-4823-a4c9-54a218b6dc62",
      "name": "Parse Trend Scores",
      "type": "n8n-nodes-base.code",
      "position": [
        3220,
        380
      ]
    },
    {
      "id": "d2d2dc15-7665-4d4c-b67d-3a789ae8fd28",
      "name": "Generate Social Media Content",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2060,
        1100
      ]
    },
    {
      "id": "8ec35365-ad7c-45b1-a2a6-c8dd0c09fbf4",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1900,
        20
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "aa9c4237-e10e-4167-9be3-e154bb449258",
      "name": "Parse Social Media Content",
      "type": "n8n-nodes-base.code",
      "position": [
        2580,
        1100
      ]
    },
    {
      "id": "23614f4c-0a4b-4d0a-871e-919475d3b90f",
      "name": "Retrieve Latest Trend Scores",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2720,
        620
      ]
    },
    {
      "id": "10feedb0-7e5a-45ee-bab4-b89d8b50c39c",
      "name": "Parse Retrieved Trend Scores",
      "type": "n8n-nodes-base.code",
      "position": [
        3220,
        620
      ]
    },
    {
      "id": "b0f81dc6-64d7-4abf-9d21-c2d325b9c978",
      "name": "Generate Images",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2740,
        1100
      ]
    },
    {
      "id": "834477fa-b323-43c1-84d1-47fffefcd187",
      "name": "Store Selected Trend",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2340,
        620
      ]
    },
    {
      "id": "1898dad7-ce81-447f-ad50-e200bf31bd74",
      "name": "Extract Google Trends2",
      "type": "n8n-nodes-base.code",
      "position": [
        1080,
        860
      ]
    },
    {
      "id": "0befadcb-9640-4f12-bd28-b515579db46c",
      "name": "If Fallback",
      "type": "n8n-nodes-base.if",
      "position": [
        860,
        880
      ]
    },
    {
      "id": "7f392c2b-80da-4d97-86e7-2d6a8bd4d901",
      "name": "Daily Trigger Idea",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        60,
        640
      ]
    },
    {
      "id": "c9437516-306a-4bca-8e40-1cdaf5a04d5c",
      "name": "Format Headlines",
      "type": "n8n-nodes-base.code",
      "position": [
        1080,
        620
      ]
    },
    {
      "id": "0087ba95-df20-4481-991c-3a235d377a04",
      "name": "Combine Trends and UGCc",
      "type": "n8n-nodes-base.code",
      "position": [
        2340,
        380
      ]
    },
    {
      "id": "a15e381d-75b3-41e8-a678-d9d7305a54b0",
      "name": "Filter English Trends",
      "type": "n8n-nodes-base.code",
      "position": [
        2520,
        380
      ]
    },
    {
      "id": "a6e6a239-d0f3-4885-99dc-f1aaec6fd21c",
      "name": "Prepare Trends Scoring Input",
      "type": "n8n-nodes-base.code",
      "position": [
        2700,
        380
      ]
    },
    {
      "id": "2bda966a-3c70-4e7b-abbe-b5e7ea906eae",
      "name": "Select Top 5 Trends",
      "type": "n8n-nodes-base.code",
      "position": [
        2180,
        620
      ]
    },
    {
      "id": "63dd5b80-43c3-473f-87dd-1c461283a9eb",
      "name": "Find Latest Timestamp",
      "type": "n8n-nodes-base.code",
      "position": [
        2540,
        620
      ]
    },
    {
      "id": "05d20b57-0ef9-4e5d-8666-bdbfec6e3932",
      "name": "Extract Latest Row",
      "type": "n8n-nodes-base.code",
      "position": [
        3000,
        620
      ]
    },
    {
      "id": "092cfcdd-d4a5-4d27-b65e-26c87244d4a9",
      "name": "Select Top Trend",
      "type": "n8n-nodes-base.code",
      "position": [
        3460,
        620
      ]
    },
    {
      "id": "5d693dcb-2c7e-410f-a716-06b9f19872c7",
      "name": "Send Approval Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        3480,
        920
      ]
    },
    {
      "id": "c5fd31c9-0be6-4ce4-9b9d-22ccb6de234e",
      "name": "Store Social Media Content",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        3260,
        920
      ]
    },
    {
      "id": "fe678444-eb46-4e14-b6cc-5c39299ae97c",
      "name": "Set Content Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        3080,
        920
      ]
    },
    {
      "id": "1801aedf-fa5a-4493-b414-416dcaf048b6",
      "name": "Debug Url",
      "type": "n8n-nodes-base.code",
      "position": [
        2940,
        1260
      ]
    },
    {
      "id": "33525419-c16e-4b75-a021-8af355ee9d8c",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        2900,
        920
      ]
    },
    {
      "id": "3a4772e4-5c77-4612-ba8f-da59356d4b8d",
      "name": "Wait3",
      "type": "n8n-nodes-base.wait",
      "position": [
        2400,
        1100
      ]
    },
    {
      "id": "a76bbdd6-b069-47ff-900c-c5c57fa77b99",
      "name": "Reddit",
      "type": "n8n-nodes-base.reddit",
      "position": [
        5040,
        1020
      ]
    },
    {
      "id": "c5985c58-00aa-4ffb-898a-0f3f554cd03e",
      "name": "Facebook Posts",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        5020,
        580
      ]
    },
    {
      "id": "ae265d3a-3809-4cf1-87c9-df9c59ecd2c5",
      "name": "Instagram Container",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        4780,
        420
      ]
    },
    {
      "id": "12a07dc6-9fb5-4df5-ab16-0fdfe29e74cc",
      "name": "Post to Instagram",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        5020,
        420
      ]
    },
    {
      "id": "b56b13f8-a880-4226-acef-3de2a192ba31",
      "name": "Google Sheets Trigger",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "position": [
        3820,
        920
      ]
    },
    {
      "id": "c0e0fc1f-e825-4237-af87-24a24bb5371d",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        4260,
        780
      ]
    },
    {
      "id": "ccde044a-975b-4720-9d04-2671b3815b06",
      "name": "Facebook Filter",
      "type": "n8n-nodes-base.set",
      "position": [
        4580,
        580
      ]
    },
    {
      "id": "1519bbd1-bbff-4c23-8daa-5d25ede05117",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        4580,
        420
      ]
    },
    {
      "id": "6f8d9a71-66d8-4581-99fc-34a223c40fc4",
      "name": "Set Reddit",
      "type": "n8n-nodes-base.set",
      "position": [
        4600,
        1020
      ]
    },
    {
      "id": "c0abf4ad-bb90-472a-a9cc-b4c63542b671",
      "name": "Set LinkedIn",
      "type": "n8n-nodes-base.set",
      "position": [
        4580,
        800
      ]
    },
    {
      "id": "2eed5618-1301-4b44-84bf-a332efe69a61",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3740,
        360
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "b24b2048-6f85-4df0-b2de-1cd26412a53b",
      "name": "Reverse Rows",
      "type": "n8n-nodes-base.code",
      "position": [
        3960,
        680
      ]
    },
    {
      "id": "816db4f4-3c93-4b5d-aa7a-9ff27da22455",
      "name": "Handle Approval/Rejection",
      "type": "n8n-nodes-base.webhook",
      "position": [
        3900,
        140
      ]
    },
    {
      "id": "d56be861-ea95-4d49-b523-e282b4e3f1da",
      "name": "Get Newest Row",
      "type": "n8n-nodes-base.code",
      "position": [
        4120,
        580
      ]
    },
    {
      "id": "bf84bed9-cf4c-47aa-ac20-d85c7f6cce70",
      "name": "LinkedIn",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        5040,
        800
      ]
    },
    {
      "id": "50a870a9-6770-48e1-97c7-ea804d72563f",
      "name": "Social Media Content Update",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        4120,
        140
      ]
    },
    {
      "id": "039a63f7-58e4-4c76-9465-d4bc0e45136a",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3740,
        20
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "bd583a6a-67b1-4490-8f83-0366a9da52fc",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          },
          {
            "node": "Facebook Filter",
            "type": "main",
            "index": 0
          },
          {
            "node": "Set LinkedIn",
            "type": "main",
            "index": 0
          },
          {
            "node": "Set Reddit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Set Content Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait3": {
      "main": [
        [
          {
            "node": "Parse Social Media Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Reddit": {
      "main": [
        [
          {
            "node": "Reddit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Instagram Container",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Fallback": {
      "main": [
        [
          {
            "node": "Extract Google Trends2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reverse Rows": {
      "main": [
        [
          {
            "node": "Get Newest Row",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set LinkedIn": {
      "main": [
        [
          {
            "node": "LinkedIn",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Newest Row": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Facebook Filter": {
      "main": [
        [
          {
            "node": "Facebook Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Images": {
      "main": [
        [
          {
            "node": "Debug Url",
            "type": "main",
            "index": 0
          },
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine All Data": {
      "main": [
        [
          {
            "node": "Merge Items into Single Item",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Headlines": {
      "main": [
        [
          {
            "node": "Analyze News Sentiment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Select Top Trend": {
      "main": [
        [
          {
            "node": "Generate Social Media Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Posts from Reddit": {
      "main": [
        [
          {
            "node": "Log Reddit Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Trigger Idea": {
      "main": [
        [
          {
            "node": "Set Default Inputs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Latest Row": {
      "main": [
        [
          {
            "node": "Parse Retrieved Trend Scores",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Trend Scores": {
      "main": [
        [
          {
            "node": "Select Top 5 Trends",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SERP-Google Trends": {
      "main": [
        [
          {
            "node": "If Fallback",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Content Fields": {
      "main": [
        [
          {
            "node": "Store Social Media Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Default Inputs": {
      "main": [
        [
          {
            "node": "Fetch Breaking News",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Twitter Mentions",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Twitter Trends",
            "type": "main",
            "index": 0
          },
          {
            "node": "SERP-Google Trends",
            "type": "main",
            "index": 0
          },
          {
            "node": "Posts from Reddit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Breaking News": {
      "main": [
        [
          {
            "node": "Extract News Headlines",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Instagram Container": {
      "main": [
        [
          {
            "node": "Post to Instagram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Reddit Response": {
      "main": [
        [
          {
            "node": "Exctract Reddit Trends",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Select Top 5 Trends": {
      "main": [
        [
          {
            "node": "Store Selected Trend",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Detect Audience Mood": {
      "main": [
        [
          {
            "node": "Fix Audience Mood Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Twitter Trends": {
      "main": [
        [
          {
            "node": "Combine All Data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Store Selected Trend": {
      "main": [
        [
          {
            "node": "Find Latest Timestamp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Google Trends": {
      "main": [
        [
          {
            "node": "Combine All Data",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "Filter English Trends": {
      "main": [
        [
          {
            "node": "Prepare Trends Scoring Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find Latest Timestamp": {
      "main": [
        [
          {
            "node": "Retrieve Latest Trend Scores",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets Trigger": {
      "main": [
        [
          {
            "node": "Reverse Rows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze News Sentiment": {
      "main": [
        [
          {
            "node": "Fix News Sentiment Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Exctract Reddit Trends": {
      "main": [
        [
          {
            "node": "Combine All Data",
            "type": "main",
            "index": 4
          }
        ]
      ]
    },
    "Extract Google Trends2": {
      "main": [
        [
          {
            "node": "Extract Google Trends",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract News Headlines": {
      "main": [
        [
          {
            "node": "Format Headlines",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Twitter Mentions": {
      "main": [
        [
          {
            "node": "Translate Tweets to English",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine Trends and UGCc": {
      "main": [
        [
          {
            "node": "Filter English Trends",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fix Audience Mood Output": {
      "main": [
        [
          {
            "node": "Combine All Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fix News Sentiment Output": {
      "main": [
        [
          {
            "node": "Combine All Data",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Handle Approval/Rejection": {
      "main": [
        [
          {
            "node": "Social Media Content Update",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Social Media Content": {
      "main": [
        [
          {
            "node": "Generate Images",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Social Media Content": {
      "main": [
        [
          {
            "node": "Send Approval Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Translate Tweets to English": {
      "main": [
        [
          {
            "node": "Fix Translated Tweets Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fix Translated Tweets Output": {
      "main": [
        [
          {
            "node": "Detect Audience Mood",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Items into Single Item": {
      "main": [
        [
          {
            "node": "Combine Trends and UGCc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Retrieved Trend Scores": {
      "main": [
        [
          {
            "node": "Select Top Trend",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Trends Scoring Input": {
      "main": [
        [
          {
            "node": "Trend Relevance Scoring (Wow Factor)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retrieve Latest Trend Scores": {
      "main": [
        [
          {
            "node": "Extract Latest Row",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Social Media Content": {
      "main": [
        [
          {
            "node": "Wait3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trend Relevance Scoring (Wow Factor)": {
      "main": [
        [
          {
            "node": "Parse Trend Scores",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}