{
  "name": "Multi-brand article distribution to AckPost drafts",
  "nodes": [
    {
      "parameters": {},
      "id": "manual-trigger",
      "name": "Run manually",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [0, 0]
    },
    {
      "parameters": {
        "content": "Use this as a starter for article repurposing. Replace the Set node with Article Studio, RSS, Notion, WordPress, or CMS content, then fan out into platform-specific AckPost drafts."
      },
      "id": "workflow-note",
      "name": "Workflow note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [0, -220]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "brand",
              "name": "brandId",
              "type": "string",
              "value": "replace-with-ackpost-brand-id"
            },
            {
              "id": "article",
              "name": "articleTitle",
              "type": "string",
              "value": "How teams prevent silent social media failures"
            },
            {
              "id": "linkedin",
              "name": "linkedinContent",
              "type": "string",
              "value": "LinkedIn draft: Three ways teams prevent silent social media failures. Start with approvals, check provider health, and keep proof after publishing."
            },
            {
              "id": "facebook",
              "name": "facebookContent",
              "type": "string",
              "value": "Facebook draft: If your team manages several brands, silent publish failures are expensive. Approval gates and proof logs make the workflow calmer."
            },
            {
              "id": "x",
              "name": "xContent",
              "type": "string",
              "value": "X draft: Scheduling is table stakes. Proof is what protects teams when posts fail, clients ask questions, or approvals matter."
            }
          ]
        }
      },
      "id": "article-content",
      "name": "Article content",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [260, 0]
    },
    {
      "parameters": {
        "fieldToSplitOut": "linkedinContent, facebookContent, xContent",
        "options": {}
      },
      "id": "split-platform-drafts",
      "name": "Split platform drafts",
      "type": "n8n-nodes-base.splitOut",
      "typeVersion": 1,
      "position": [520, 0]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://ackpost.com/api/ackpost/mcp",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"n8n-multi-brand-draft\",\n  \"method\": \"tools/call\",\n  \"params\": {\n    \"name\": \"ackpost_create_draft\",\n    \"arguments\": {\n      \"brandId\": \"{{ $('Article content').item.json.brandId }}\",\n      \"content\": \"{{ $json.linkedinContent || $json.facebookContent || $json.xContent }}\",\n      \"platform\": \"linkedin\",\n      \"source\": \"n8n-multi-brand-distribution\"\n    }\n  }\n}"
      },
      "id": "create-drafts",
      "name": "Create AckPost drafts",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [800, 0],
      "credentials": {
        "httpHeaderAuth": {
          "id": "replace-with-credential-id",
          "name": "AckPost API Key"
        }
      }
    }
  ],
  "connections": {
    "Run manually": {
      "main": [
        [
          {
            "node": "Article content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Article content": {
      "main": [
        [
          {
            "node": "Split platform drafts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split platform drafts": {
      "main": [
        [
          {
            "node": "Create AckPost drafts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}
