{
  "name": "ApexApi \u2014 News \u2192 Analyze \u2192 Post",
  "nodes": [
    {
      "parameters": {
        "content": "## \ud83d\udcf0 News \u2192 caption \u2192 post (ApexApi)\n\nReads an RSS feed, writes a caption with **any AI model through one key**, posts it via Blotato.\n\n### Setup (2 min)\n1. **Install the node:** Settings \u2192 Community Nodes \u2192 Install \u2192 `n8n-nodes-apexapi`\n2. **Get a free API key:** https://apexapi.dev/?ref=n8n-news-analyze-post\n3. **Add the credential:** open the *ApexApi \u2014 Write Caption* node \u2192 create an **ApexApi account** credential \u2192 paste your `ak-` key (turns green when connected).\n4. **Posting:** see the *Social posting with Blotato* sticky.\n\nPowered by ApexApi \u00b7 https://apexapi.dev",
        "height": 420,
        "width": 360
      },
      "id": "aaaa0001-aaaa-aaaa-aaaa-aaaaaaaaaa01",
      "name": "ApexApi setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -780,
        -80
      ]
    },
    {
      "parameters": {
        "url": "https://hnrss.org/frontpage",
        "options": {}
      },
      "id": "11111111-1111-1111-1111-111111111111",
      "name": "Read News Feed",
      "type": "n8n-nodes-base.rssFeedRead",
      "typeVersion": 1,
      "position": [
        260,
        300
      ]
    },
    {
      "parameters": {
        "resource": "chat",
        "operation": "message",
        "model": "openai/gpt-5",
        "prompt": "=Write a short, punchy social post about this headline: {{ $json.title }} \u2014 {{ $json.contentSnippet }}",
        "options": {
          "systemPrompt": "You are a concise social media writer.",
          "maxTokens": 200
        }
      },
      "id": "22222222-2222-2222-2222-222222222222",
      "name": "ApexApi \u2014 Write Caption",
      "type": "n8n-nodes-apexapi.apexApi",
      "typeVersion": 1,
      "position": [
        520,
        300
      ],
      "credentials": {
        "apexApiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://backend.blotato.com/v2/posts",
        "sendHeaders": true,
        "specifyHeaders": "keypair",
        "headerParameters": {
          "parameters": [
            {
              "name": "blotato-api-key",
              "value": "YOUR_BLOTATO_API_KEY"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"post\": {\n    \"accountId\": \"YOUR_BLOTATO_ACCOUNT_ID\",\n    \"target\": { \"targetType\": \"twitter\" },\n    \"content\": { \"text\": {{ JSON.stringify($json.content) }}, \"platform\": \"twitter\", \"mediaUrls\": [] }\n  }\n}",
        "options": {}
      },
      "id": "33333333-3333-3333-3333-333333333333",
      "name": "Publish to Blotato",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        780,
        300
      ],
      "retryOnFail": true,
      "maxTries": 3,
      "waitBetweenTries": 2000
    },
    {
      "parameters": {
        "content": "## \ud83d\udcf2 Social posting with Blotato\n\nThis template publishes through **Blotato** \u2014 one API that posts to X/Twitter, LinkedIn, Instagram, TikTok, Facebook, Threads, YouTube & more.\n\n### Setup\n1. Create a Blotato account + API key \u2192 **https://tolt.link/automatelikecrazy**\n2. Settings \u2192 API keys \u2192 copy your key into the **blotato-api-key** header on the *Publish to Blotato* node.\n3. Set `accountId` and `targetType` (e.g. `twitter`, `linkedin`, `instagram`) in the request body.\n\nDocs: help.blotato.com/api \u00b7 Get Blotato \u2192 **https://tolt.link/automatelikecrazy**",
        "height": 300,
        "width": 420,
        "color": 4
      },
      "id": "sticky-blotato",
      "name": "Social posting with Blotato",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        720,
        0
      ]
    }
  ],
  "connections": {
    "Read News Feed": {
      "main": [
        [
          {
            "node": "ApexApi \u2014 Write Caption",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ApexApi \u2014 Write Caption": {
      "main": [
        [
          {
            "node": "Publish to Blotato",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {},
  "active": false
}