{
  "name": "ApexApi — News → Analyze → Post",
  "nodes": [
    {
      "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 }} — {{ $json.contentSnippet }}",
        "options": { "systemPrompt": "You are a concise social media writer.", "maxTokens": 200 }
      },
      "id": "22222222-2222-2222-2222-222222222222",
      "name": "ApexApi — Write Caption",
      "type": "n8n-nodes-apexapi.apexApi",
      "typeVersion": 1,
      "position": [520, 300],
      "credentials": { "apexApiApi": { "id": "REPLACE_ME", "name": "ApexApi account" } }
    },
    {
      "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": "## 📲 Social posting with Blotato\n\nThis template publishes through **Blotato** — one API that posts to X/Twitter, LinkedIn, Instagram, TikTok, Facebook, Threads, YouTube & more.\n\n### Setup\n1. Create a Blotato account + API key → **https://tolt.link/automatelikecrazy**\n2. Settings → API keys → 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 · Get Blotato → **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 — Write Caption", "type": "main", "index": 0 }]] },
    "ApexApi — Write Caption": { "main": [[{ "node": "Publish to Blotato", "type": "main", "index": 0 }]] }
  },
  "settings": {},
  "active": false
}
