{
  "name": "RSS feed to AckPost draft ideas",
  "nodes": [
    {
      "parameters": {
        "url": "https://example.com/feed.xml"
      },
      "id": "rss-feed",
      "name": "Read RSS feed",
      "type": "n8n-nodes-base.rssFeedRead",
      "typeVersion": 1.1,
      "position": [0, 0]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "brand",
              "name": "brandId",
              "type": "string",
              "value": "replace-with-ackpost-brand-id"
            },
            {
              "id": "content",
              "name": "content",
              "type": "string",
              "value": "={{ `Draft idea from RSS: ${$json.title}\\n${$json.link}` }}"
            },
            {
              "id": "platform",
              "name": "platform",
              "type": "string",
              "value": "linkedin"
            },
            {
              "id": "source",
              "name": "source",
              "type": "string",
              "value": "n8n-rss"
            }
          ]
        }
      },
      "id": "format-draft",
      "name": "Format draft idea",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [280, 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-rss-draft\",\n  \"method\": \"tools/call\",\n  \"params\": {\n    \"name\": \"ackpost_create_draft\",\n    \"arguments\": {\n      \"brandId\": \"{{ $json.brandId }}\",\n      \"content\": \"{{ $json.content }}\",\n      \"platform\": \"{{ $json.platform }}\",\n      \"source\": \"{{ $json.source }}\"\n    }\n  }\n}"
      },
      "id": "create-draft",
      "name": "Create AckPost draft",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [560, 0],
      "credentials": {
        "httpHeaderAuth": {
          "id": "replace-with-credential-id",
          "name": "AckPost API Key"
        }
      }
    }
  ],
  "connections": {
    "Read RSS feed": {
      "main": [
        [
          {
            "node": "Format draft idea",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format draft idea": {
      "main": [
        [
          {
            "node": "Create AckPost draft",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}
