AutomationFlowsAI & RAG › Generate Platform-specific Social Media Posts with Chatgpt, Tavily & G-sheets

Generate Platform-specific Social Media Posts with Chatgpt, Tavily & G-sheets

ByMirai @mirai on n8n.io

Automated Social Media Content Generator with ChatGPT & Tavily Research

Event trigger★★★★☆ complexityAI-powered16 nodesGoogle SheetsGoogle Sheets TriggerAgentOpenAI Chat@Tavily/N8N Nodes Tavily
AI & RAG Trigger: Event Nodes: 16 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #9998 — we link there as the canonical source.

This workflow follows the Agent → Google Sheets recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "X3yVgNHnUZFVK7sb",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "content machine",
  "tags": [],
  "nodes": [
    {
      "id": "ee5c9b9b-00d4-4a79-8f82-eaff4917358d",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        960,
        -176
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7ee94a6c-2257-415d-8e6a-5f322a8dff05",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        800,
        -176
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "466c01b3-6637-41eb-a025-b0c3c4d8bc90",
      "name": "Update Campaign",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        832,
        368
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "532cb8e8-02a7-4c65-bdca-a2978e876f03",
      "name": "Google Sheets Trigger",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "position": [
        -128,
        -176
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1ca759da-017a-471a-8589-2ed65f64a7ed",
      "name": "Set Search Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        32,
        -176
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "8c413109-accb-4d06-94ed-2a266e4a3021",
      "name": "LinkedIn",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -160,
        368
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "161b7fda-8196-48e0-8a79-71703fbd9f4c",
      "name": "X",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        160,
        368
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "100d799b-af23-4f88-9332-f06081698585",
      "name": "IG",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        496,
        368
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "f254475f-5fed-4897-9128-81660c988866",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -272,
        -400
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9b20a83c-694d-49eb-ba4b-11955bf4b17f",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        -32
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c9013319-8bca-4dd2-830d-43992cb8a5c5",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        -400
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "0b49c809-de21-4d44-91bf-2287689b9bf8",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -176,
        160
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "610667f8-ae29-449a-b8b2-029fc5ec43ea",
      "name": "ChatGPT Model for LinkedIn",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -144,
        528
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7510b673-dded-44c4-ac51-1f094a82ec08",
      "name": "ChatGPT Model for X (Twitter)",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        192,
        528
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8fbcd27f-9bc5-42c8-bac0-eaeb7f2cec87",
      "name": "ChatGPT Model for Instagram",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        512,
        528
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d55b6c4b-45a7-40cc-b084-dbb89f0e112a",
      "name": "Search",
      "type": "@tavily/n8n-nodes-tavily.tavily",
      "position": [
        560,
        -176
      ],
      "parameters": {},
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "5bcf38ba-2548-4d13-9205-f45db8a623b8",
  "connections": {
    "X": {
      "main": [
        [
          {
            "node": "IG",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IG": {
      "main": [
        [
          {
            "node": "Update Campaign",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LinkedIn": {
      "main": [
        [
          {
            "node": "X",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "LinkedIn",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Search Fields": {
      "main": [
        [
          {
            "node": "Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets Trigger": {
      "main": [
        [
          {
            "node": "Set Search Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ChatGPT Model for LinkedIn": {
      "ai_languageModel": [
        [
          {
            "node": "LinkedIn",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "ChatGPT Model for Instagram": {
      "ai_languageModel": [
        [
          {
            "node": "IG",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "ChatGPT Model for X (Twitter)": {
      "ai_languageModel": [
        [
          {
            "node": "X",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Automated Social Media Content Generator with ChatGPT & Tavily Research

Source: https://n8n.io/workflows/9998/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

This automation is designed to help you generate AI-powered music tracks, cover art, and fully rendered music videos — all triggered from a simple Telegram chat and managed via Google Sheets.

OpenAI Chat, Memory Buffer Window, Output Parser Structured +11
AI & RAG

This workflow is designed for marketers, content creators, agencies, and solo founders who want to publish long‑form posts with visuals on autopilot using n8n and AI agents. ​

Tool Http Request, Agent, HTTP Request +27
AI & RAG

This template enables natural-language-driven automation using Bright Data's MCP tools, triggered directly by new leads in HubSpot. It dynamically extracts and executes the right tool based on lead co

Google Sheets Trigger, Output Parser Structured, Output Parser Autofixing +7
AI & RAG

Automated Book Generation System. Uses googleSheetsTrigger, gmail, lmChatOpenAi, outputParserStructured. Event-driven trigger; 43 nodes.

Google Sheets Trigger, Gmail, OpenAI Chat +6
AI & RAG

Stop manually sending follow-ups. This workflow automates your entire cold email outreach with AI-powered personalization, smart scheduling, and automatic reply detection.

OpenAI Chat, Gmail Tool, Google Sheets +5