{
  "name": "ApexApi \u2014 LinkedIn Auto-Post",
  "nodes": [
    {
      "parameters": {
        "content": "## \ud83d\udcdd LinkedIn Auto-Post (ApexApi)\n\nTurn a topic into a polished LinkedIn post and publish it \u2014 using **any AI model through one key**.\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-linkedin-autopost\n3. **Add the credential:** open the *Write LinkedIn Post* node \u2192 create an **ApexApi account** credential \u2192 paste your `ak-` key (turns green when connected).\n4. **Connect LinkedIn:** open the *Post to LinkedIn* node \u2192 add your LinkedIn OAuth2 credential.\n5. **Edit your topic** in the *Your Topic* node.\n6. Click **Test workflow** \u25b6 \u2014 it writes the post and publishes it.\n\n### Make it automatic\nSwap the Manual Trigger for a **Schedule Trigger** (e.g. daily 9am) to post on autopilot.\n\n### Customize\n- Switch the **model** in the dropdown \u2014 14 providers, one key.\n- Change **Response Style** (Precise / Balanced / Creative).\n- Tweak the system prompt to match your voice.\n\nPowered by ApexApi \u00b7 https://apexapi.dev",
        "height": 540,
        "width": 420,
        "color": 4
      },
      "id": "00000000-0000-0000-0000-000000000000",
      "name": "Instructions",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        180,
        -280
      ]
    },
    {
      "parameters": {},
      "id": "11111111-1111-1111-1111-111111111111",
      "name": "When clicked",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        260,
        320
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "topic-1",
              "name": "topic",
              "value": "The biggest lesson I learned shipping a startup this year",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "22222222-2222-2222-2222-222222222222",
      "name": "Your Topic",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        480,
        320
      ]
    },
    {
      "parameters": {
        "resource": "chat",
        "operation": "message",
        "model": "openai/gpt-4o",
        "prompt": "=Write a LinkedIn post about: {{ $json.topic }}",
        "options": {
          "systemPrompt": "You are a LinkedIn ghostwriter. Write a single engaging post (max ~150 words) with a strong first-line hook, short punchy lines, one concrete insight, and a light call-to-question at the end. No hashtags spam (max 3). Sound human, not corporate. Return only the post text.",
          "responseStyle": "creative"
        }
      },
      "id": "33333333-3333-3333-3333-333333333333",
      "name": "Write LinkedIn Post",
      "type": "n8n-nodes-apexapi.apexApi",
      "typeVersion": 1,
      "position": [
        700,
        320
      ],
      "credentials": {
        "apexApiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "postAs": "person",
        "text": "={{ $json.content }}",
        "additionalFields": {}
      },
      "id": "44444444-4444-4444-4444-444444444444",
      "name": "Post to LinkedIn",
      "type": "n8n-nodes-base.linkedIn",
      "typeVersion": 1,
      "position": [
        920,
        320
      ],
      "credentials": {
        "linkedInOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "content": "## \ud83d\udcf2 Post everywhere with Blotato (optional)\n\nThis template posts to **LinkedIn** directly. To publish the same AI-written post to **X/Twitter, Instagram, TikTok, Facebook, Threads, YouTube\u2026** in one step, replace the *Post to LinkedIn* node with an HTTP Request to **Blotato**:\n\n1. Get Blotato + API key \u2192 **https://tolt.link/automatelikecrazy**\n2. `POST https://backend.blotato.com/v2/posts` \u2014 header `blotato-api-key`, body:\n```\n{ \"post\": { \"accountId\": \"\u2026\", \"target\": {\"targetType\":\"linkedin\"},\n  \"content\": { \"text\": {{ $json.content }}, \"platform\": \"linkedin\" } } }\n```\n\nTemplates **01** and **02** ship a ready-made *Publish to Blotato* node you can copy. Get Blotato \u2192 **https://tolt.link/automatelikecrazy**",
        "height": 320,
        "width": 420,
        "color": 5
      },
      "id": "55555555-5555-5555-5555-555555555555",
      "name": "Social posting with Blotato",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        920,
        -40
      ]
    }
  ],
  "connections": {
    "When clicked": {
      "main": [
        [
          {
            "node": "Your Topic",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Your Topic": {
      "main": [
        [
          {
            "node": "Write LinkedIn Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write LinkedIn Post": {
      "main": [
        [
          {
            "node": "Post to LinkedIn",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {},
  "active": false
}