{
  "name": "Publish WordPress posts to social media X, Facebook, LinkedIn, Instagram with AI",
  "nodes": [
    {
      "id": "f5bb7898-44eb-45bf-b199-2146c8e901f6",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -220,
        -80
      ]
    },
    {
      "id": "b1977304-fbbf-4bb5-924a-e5db036bca91",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        0,
        -80
      ]
    },
    {
      "id": "1451692d-8e8d-4da7-be3e-b4dd20319c7a",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        400,
        140
      ]
    },
    {
      "id": "6768f867-666d-4c41-b77a-1bfb389b0329",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        620,
        140
      ]
    },
    {
      "id": "05cf81ec-bb25-447a-9c54-183132b8804c",
      "name": "Image Instagram",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        940,
        280
      ]
    },
    {
      "id": "2ae8be2c-28a3-4f55-aee3-2fff3517b149",
      "name": "Image Facebook e Linkedin",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        940,
        -140
      ]
    },
    {
      "id": "583a8459-3574-44e6-85bf-a33b9a4bf9f4",
      "name": "Social Media Manager",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        440,
        -80
      ]
    },
    {
      "id": "634af127-cd08-4beb-99a8-daa626793736",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -60,
        -160
      ],
      "parameters": {
        "width": 420,
        "height": 260,
        "content": "Get the Post ID of the Wordpress article on which you want to generate the caption for social media"
      }
    },
    {
      "id": "dbdb39dc-02b2-4fe6-8b70-f38b86c9d9e3",
      "name": "Linkedin OK",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1480,
        -260
      ]
    },
    {
      "id": "07aba718-fb10-48d4-bedb-0c19315acfe1",
      "name": "Facebook Ok",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1480,
        0
      ]
    },
    {
      "id": "7fda8841-4b46-4f3b-9ba0-aa728ba7943f",
      "name": "Instagram OK",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1480,
        280
      ]
    },
    {
      "id": "fe599e8f-ff45-4aec-b70e-f0dc75b929d5",
      "name": "Get Post",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        220,
        -80
      ]
    },
    {
      "id": "09059725-47dd-44ff-bcbd-f83d3bb3941d",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        -160
      ],
      "parameters": {
        "width": 360,
        "height": 260,
        "content": "The SMM Chain analyses the content of the post and creates the most suitable caption based on the destination social network.\n"
      }
    },
    {
      "id": "89a0deab-b55a-4eb6-8251-538f5f216d56",
      "name": "Publish on X",
      "type": "n8n-nodes-base.twitter",
      "position": [
        1220,
        -500
      ]
    },
    {
      "id": "d0a618f3-48e0-4ba1-9525-e15663b38d9f",
      "name": "X OK",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1480,
        -500
      ]
    },
    {
      "id": "8f19c32b-ab02-4098-a165-a3c9c6ff05c4",
      "name": "Publish on LinkedIn",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        1220,
        -260
      ]
    },
    {
      "id": "69324bfa-ce6e-42e7-9598-13d8dbd13ae7",
      "name": "Publish on Facebook",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        1220,
        0
      ]
    },
    {
      "id": "ccc7bb23-2a26-42c6-9ac4-16a2cce77f66",
      "name": "Publish on Instagram",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1220,
        280
      ]
    },
    {
      "id": "687cf808-1355-4bec-aad3-2395efd5a41c",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        -680
      ],
      "parameters": {
        "width": 960,
        "height": 320,
        "content": "## STEP 1\n\nThis workflow automates the process of creating and publishing social media posts across multiple platforms (Twitter/X, Facebook, LinkedIn, and Instagram) based on content from a WordPress "
      }
    },
    {
      "id": "f74d071d-cb55-48f0-8cea-1cc24fa34061",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        -320
      ],
      "parameters": {
        "width": 960,
        "height": 100,
        "content": "## STEP 2\nClone [this Sheet](https://docs.google.com/spreadsheets/d/1suPQNdgoAzrklleN4ok2mZnsq0GK1dt59oIHv8JWX5U/edit?usp=sharing) and set ONLY the WordPress Post ID id in the right column\n"
      }
    }
  ],
  "connections": {
    "Get Post": {
      "main": [
        [
          {
            "node": "Social Media Manager",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish on X": {
      "main": [
        [
          {
            "node": "X OK",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets": {
      "main": [
        [
          {
            "node": "Get Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image Instagram": {
      "main": [
        [
          {
            "node": "Publish on Instagram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish on Facebook": {
      "main": [
        [
          {
            "node": "Facebook Ok",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish on LinkedIn": {
      "main": [
        [
          {
            "node": "Linkedin OK",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish on Instagram": {
      "main": [
        [
          {
            "node": "Instagram OK",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Social Media Manager": {
      "main": [
        [
          {
            "node": "Image Instagram",
            "type": "main",
            "index": 0
          },
          {
            "node": "Image Facebook e Linkedin",
            "type": "main",
            "index": 0
          },
          {
            "node": "Publish on X",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Social Media Manager",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Social Media Manager",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Image Facebook e Linkedin": {
      "main": [
        [
          {
            "node": "Publish on LinkedIn",
            "type": "main",
            "index": 0
          },
          {
            "node": "Publish on Facebook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}