{
  "name": "AI-optimized content posting to X, Discord & LinkedIn with OpenRouter",
  "nodes": [
    {
      "id": "fd9460dc-62b8-42c2-b18f-5a37ef3cd2c3",
      "name": "Sticky - Chat Trigger",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -760,
        -340
      ],
      "parameters": {
        "width": 300,
        "height": null,
        "content": "Receives the initial chat message that triggers the workflow. This node captures user input from a configured chat platform, which is then passed to the AI for optimization."
      }
    },
    {
      "id": "2b5337cc-d674-49ea-8581-73acf70f3e87",
      "name": "Sticky - AI Optimizer",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        -340
      ],
      "parameters": {
        "width": 300,
        "height": null,
        "content": "Uses OpenRouter's AI to optimize the input message for virality across X, Discord, and LinkedIn. Detects the input language and generates platform-specific content in the same language."
      }
    },
    {
      "id": "f50c4cf5-ea73-428b-90ea-d4a3c195bf3a",
      "name": "Sticky - OpenRouter",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -520,
        80
      ],
      "parameters": {
        "width": 280,
        "height": 180,
        "content": "\n\n\n\n\nConfigures the OpenRouter AI model (LLaMA-4) to process the chat input and generate optimized content for each social media platform."
      }
    },
    {
      "id": "d842efaf-291b-4c1a-8bc2-8434b6cfe9b0",
      "name": "Sticky - Parser",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        80
      ],
      "parameters": {
        "width": 280,
        "height": 180,
        "content": "\n\n\n\n\nParses the AI-generated output into a structured JSON format, separating content for each platform (X, Discord, LinkedIn)."
      }
    },
    {
      "id": "e3ae43d2-1dab-473a-bbf9-1bd35c6944ed",
      "name": "Sticky - Split",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -40,
        -340
      ],
      "parameters": {
        "width": 220,
        "height": null,
        "content": "Splits the structured JSON output into individual items for each platform, enabling routing to the appropriate social media node."
      }
    },
    {
      "id": "f8e2ab9d-f96a-4748-8bcb-d9dfa8a24ef1",
      "name": "Sticky - Switch",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        -340
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Routes the optimized content to the correct platform (X, Discord, or LinkedIn) based on the 'platform' field in the JSON output."
      }
    },
    {
      "id": "024b6c38-65fd-4f1d-8dd6-31045c97088f",
      "name": "Sticky - Post to X",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        660,
        -540
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Posts the AI-optimized content to X, using the input message and the output tailored for X's character limits and style."
      }
    },
    {
      "id": "7e24ed1a-4a6f-4f51-8afb-8239cb832bde",
      "name": "Sticky - Post to Discord",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        660,
        40
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Sends the AI-optimized content to a Discord server via a webhook, formatted for community engagement."
      }
    },
    {
      "id": "3184d4bd-3f42-4284-918a-5344431ae9ae",
      "name": "Sticky - Post to LinkedIn",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        660,
        -260
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Shares the AI-optimized content on LinkedIn, formatted for professional tone and audience engagement."
      }
    },
    {
      "id": "f56606cf-4fee-4037-8096-0083e6118f3e",
      "name": "Generate Content",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        -360,
        0
      ]
    },
    {
      "id": "158d2322-527c-402a-a26d-87f74004ba7a",
      "name": "Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -200,
        0
      ]
    },
    {
      "id": "ff1097b0-b0cd-4c62-aa10-54fc2890b3f2",
      "name": "Sticky - Parser1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        80
      ],
      "parameters": {
        "width": 280,
        "height": 180,
        "content": "**Enjoy BuzzBlast for free!** Got ideas, feedback, or just wanna chat? Hit me up at [khmuhtadin.com](https://khmuhtadin.com).  \n\nFeeling generous? Buy me a coffee at [buymeacoffee.com/khmuhtadin](http"
      }
    },
    {
      "id": "eee77d13-62cc-43b7-be0b-6fccc9f82647",
      "name": "Split Platform Content",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        20,
        -200
      ]
    },
    {
      "id": "f418837e-a963-437b-9f11-7184b90c661a",
      "name": "Route to Platform",
      "type": "n8n-nodes-base.switch",
      "position": [
        260,
        -220
      ]
    },
    {
      "id": "88b9267d-f9a7-4cd1-98a5-1c61ca803996",
      "name": "Post to X",
      "type": "n8n-nodes-base.twitter",
      "position": [
        660,
        -440
      ]
    },
    {
      "id": "dc5f941f-5236-4aca-97ab-f619a3cb1a48",
      "name": "Post to LinkedIn",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        660,
        -160
      ]
    },
    {
      "id": "4f7e82f3-003c-4fdc-8ed6-6adaab7e9a13",
      "name": "Post to Discord",
      "type": "n8n-nodes-base.discord",
      "position": [
        660,
        140
      ]
    },
    {
      "id": "4aaec093-6d34-4810-b297-6f1204bf7b4f",
      "name": "Chat Input Trigger",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -580,
        -200
      ]
    },
    {
      "id": "d1f3a884-bcbb-4035-a52f-36b167bf9fd8",
      "name": "AI Content Optimizer",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        -360,
        -200
      ]
    }
  ],
  "connections": {
    "Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Content Optimizer",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Generate Content": {
      "ai_languageModel": [
        [
          {
            "node": "AI Content Optimizer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Route to Platform": {
      "main": [
        [
          {
            "node": "Post to X",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Post to Discord",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Post to LinkedIn",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Post to LinkedIn",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Chat Input Trigger": {
      "main": [
        [
          {
            "node": "AI Content Optimizer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Content Optimizer": {
      "main": [
        [
          {
            "node": "Split Platform Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Platform Content": {
      "main": [
        [
          {
            "node": "Route to Platform",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}