{
  "name": "Generate & schedule social posts with Gemini/OpenAI for X and LinkedIn",
  "nodes": [
    {
      "id": "5b1cc120-3c02-46b4-bfc7-bdc9e9ae363d",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -980,
        80
      ]
    },
    {
      "id": "b7447847-28bc-4ee3-9518-46dc3210268b",
      "name": "Receive Post Title",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1180,
        -140
      ]
    },
    {
      "id": "9b52651d-ab43-429a-9176-56ed29afee35",
      "name": "Generate AI Content",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -980,
        -140
      ]
    },
    {
      "id": "f363dad1-532e-423d-b0ff-1f4ffa48dd9e",
      "name": "Format AI Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -820,
        120
      ]
    },
    {
      "id": "e8fd6a4f-9448-4c76-96b0-895d6fc0b30c",
      "name": "Post to X",
      "type": "n8n-nodes-base.twitter",
      "position": [
        -600,
        -240
      ]
    },
    {
      "id": "2f73b732-c9db-4ee8-8d58-38c4cbb562ec",
      "name": "Post to LinkedIn",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        -600,
        -20
      ]
    },
    {
      "id": "14220250-98e1-4c4e-84d8-8dedc9dc3532",
      "name": "Append Linkedin And X Publishing Responses",
      "type": "n8n-nodes-base.merge",
      "position": [
        -320,
        -120
      ]
    },
    {
      "id": "351351dd-da19-421c-8a94-dc7687a05097",
      "name": "Show Confirmation",
      "type": "n8n-nodes-base.form",
      "position": [
        -100,
        -120
      ]
    },
    {
      "id": "2a1b857a-cc59-4662-806b-d74d0416d2e5",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1120,
        520
      ]
    },
    {
      "id": "38e09681-ab07-4479-b5fb-b66af78f72d8",
      "name": "Fetch LinkedIn Posts",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -880,
        520
      ]
    },
    {
      "id": "9d9af28f-82d8-484d-a4da-b24076861b90",
      "name": "Filter High Engagement Posts",
      "type": "n8n-nodes-base.function",
      "position": [
        -660,
        520
      ]
    },
    {
      "id": "108bf9c2-cbed-4d38-b9ce-8a88bab7f782",
      "name": "Generate Post Ideas (OpenAI)",
      "type": "n8n-nodes-base.openAi",
      "position": [
        -460,
        520
      ]
    },
    {
      "id": "9acab2bf-974f-432c-8dd0-3fcd78bd5f31",
      "name": "Save Drafts to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -260,
        520
      ]
    },
    {
      "id": "9326e33a-24d1-4b49-bb60-fa40fefaf0b9",
      "name": "Notify Reviewer (Slack)",
      "type": "n8n-nodes-base.slack",
      "position": [
        -60,
        520
      ]
    }
  ],
  "connections": {
    "Post to X": {
      "main": [
        [
          {
            "node": "Append Linkedin And X Publishing Responses",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format AI Output": {
      "ai_outputParser": [
        [
          {
            "node": "Generate AI Content",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Post to LinkedIn": {
      "main": [
        [
          {
            "node": "Append Linkedin And X Publishing Responses",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Fetch LinkedIn Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Post Title": {
      "main": [
        [
          {
            "node": "Generate AI Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate AI Content": {
      "main": [
        [
          {
            "node": "Post to X",
            "type": "main",
            "index": 0
          },
          {
            "node": "Post to LinkedIn",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch LinkedIn Posts": {
      "main": [
        [
          {
            "node": "Filter High Engagement Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate AI Content",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Filter High Engagement Posts": {
      "main": [
        [
          {
            "node": "Generate Post Ideas (OpenAI)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Post Ideas (OpenAI)": {
      "main": [
        [
          {
            "node": "Save Drafts to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Drafts to Google Sheets": {
      "main": [
        [
          {
            "node": "Notify Reviewer (Slack)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append Linkedin And X Publishing Responses": {
      "main": [
        [
          {
            "node": "Show Confirmation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}