{
  "name": "Generate content ideas from social trends with Apify, Gemini, and Google Sheets",
  "nodes": [
    {
      "id": "3a3ed6ce-37c5-4740-aa5d-ebab919a0f81",
      "name": "X Scraper",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        304,
        640
      ]
    },
    {
      "id": "be68d745-7889-4108-a007-4647a95f091d",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        512,
        640
      ]
    },
    {
      "id": "e78e0453-9dd0-44db-8465-bbe2df5cb05e",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        960,
        640
      ]
    },
    {
      "id": "f68bf125-869d-44a9-87f2-5ebde4d9389a",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        752,
        640
      ]
    },
    {
      "id": "4fa7a24f-1d97-4750-9b2a-0923ada503fc",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1104,
        848
      ]
    },
    {
      "id": "0b406805-3599-448f-8c15-6850cbcbc5cb",
      "name": "Append row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1600,
        640
      ]
    },
    {
      "id": "c05c39fb-72d4-4a51-9dc5-0eed0c453f2c",
      "name": "Code in JavaScript",
      "type": "n8n-nodes-base.code",
      "position": [
        1392,
        640
      ]
    },
    {
      "id": "d5212c4b-1bc4-42c0-8f49-0845fdfd0d3f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -800,
        448
      ],
      "parameters": {
        "width": 848,
        "height": 1120,
        "content": "# Trend2Content\n\nThis n8n workflow (named **Trend2Content**) takes a short topic input from a small web form, scrapes recent/top social content for that topic (via an Apify act), aggregates the raw te"
      }
    },
    {
      "id": "e384a58b-1cd0-4b7a-8b2f-e7fed22b0305",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        128,
        640
      ]
    },
    {
      "id": "38b03646-6912-4d0f-b19a-aecad5dd88bb",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        960,
        848
      ]
    },
    {
      "id": "06e213fc-bb73-481b-b14c-abcc701182c9",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        64,
        448
      ],
      "parameters": {
        "width": 608,
        "height": 560,
        "content": "# Input & Ingest (Trigger → Scrape → Normalize)"
      }
    },
    {
      "id": "598c02eb-88cb-4fab-8a82-3510d73d5fb5",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        688,
        448
      ],
      "parameters": {
        "width": 608,
        "height": 560,
        "content": "# Aggregate & Generate (Combine → LangChain Agent → Parser)"
      }
    },
    {
      "id": "78ccdd22-980f-40f1-8492-72525ad24e82",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1312,
        448
      ],
      "parameters": {
        "width": 608,
        "height": 560,
        "content": "# Format, Store & Observe (JS Format → Google Sheets → Notes)"
      }
    }
  ],
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "X Scraper": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "Append row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "X Scraper",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}