Publish LinkedIn text, image, or video posts from a webhook
Ready for 3.0What this workflow does
This workflow has 21 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls api.linkedin.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Set LinkedIn Settings (Edit Fields (Set)): sets 2 fields: author_id, linkedin_version
- Validate and Normalize Input (Code): runs custom JavaScript code
- Is Video? (If): checks a condition and branches into true / false
- Build Error Message (Code): runs custom JavaScript code
- Register Video Upload (HTTP Request): calls api.linkedin.com (POST)
- Has Images? (If): checks a condition and branches into true / false
- Respond with Error (Respond to Webhook): sends the response back to the webhook caller
- Download Video (HTTP Request): calls an HTTP API (GET)
- Split Images (Code): runs custom JavaScript code
- Build Text Post (Code): runs custom JavaScript code
…plus 10 more steps. See the full node list below.
HTTP calls to: api.linkedin.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (6)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick Overview This workflow receives a webhook request and publishes a LinkedIn post as text-only, with up to 20 images, or with a native video by downloading media from provided URLs and posting via the LinkedIn REST/UGC APIs, then returning the created…