Automate LinkedIn Posts from Notion with n8n

Streamline your daily LinkedIn posts by automating content retrieval from your Notion database using n8n workflow. Save time and avoid manual errors by automating post formatting, image downloading, and publication on LinkedIn.
scheduleTrigger
notion
aggregate
+4
Workflow Identifier: 1014
NODES in Use: scheduleTrigger, notion, aggregate, code, httpRequest, merge, linkedIn

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Automation Does

This workflow runs every day at 3 PM to post your scheduled content from Notion to LinkedIn automatically.
It stops you from doing repetitive copying, formatting, and image downloading.
After running, it posts correctly formatted text and an image to LinkedIn and marks the post as published in Notion.


Who Should Use This Workflow

This automation fits people who manage social media posts stored in a Notion database.
It helps if you post daily and want to avoid mistakes and save time.


Tools and Services Used

  • n8n: Runs the automation workflow.
  • Notion API: Fetches posts and content blocks from your database.
  • LinkedIn OAuth2: Authorizes posting on LinkedIn profiles or company pages.
  • HTTP Request in n8n: Downloads images for LinkedIn posts.

Workflow Inputs, Processing Steps, and Output

Inputs

  • Your Notion database with posts having a “Date” and “Status” property.
  • LinkedIn OAuth2 account with posting rights.
  • Scheduled time set in the workflow (3 PM by default).

Processing Steps

  • The Schedule Trigger fires daily at 3 PM.
  • Notion node queries posts with today’s date.
  • Fetch content blocks and image URLs from the selected post.
  • Aggregate node collects all text and images into arrays.
  • Code node formats the text for LinkedIn.
  • HTTP Request downloads the first image.
  • Merge node joins text and image data.
  • LinkedIn node posts the content with the image.
  • Notion node updates the status to “Published”.

Output

  • A published LinkedIn post with formatted text and image.
  • Updated Notion database marking the post as completed.

Beginner Step-by-Step: How to Use This Workflow in n8n

Importing the Workflow

  1. Click the Download button on this page to save the workflow file.
  2. Open the n8n editor where the automation will run.
  3. Go to the menu and select “Import from File.”
  4. Choose the downloaded workflow file and import it.

Setting Up Credentials

  1. In n8n, open the Credentials section.
  2. Add your Notion API Key under Notion credentials.
  3. Add LinkedIn OAuth2 credentials with necessary posting permissions.

Adjusting Workflow Settings

  1. Check nodes for IDs or URLs that may need changing for your workspace or LinkedIn company page.
  2. Make sure the Date filter matches your Notion date format.
  3. Review the Code node if you want to tweak post formatting.

Testing and Activating

  1. Run the workflow once manually to check it fetches, formats, and posts correctly.
  2. If all works, turn on the workflow by toggling the Active switch.
  3. The workflow will now post automatically daily at the set time.
  4. Consider self-host n8n for reliable, always-on running.

Customizations

  • Change the posting time by updating the hour in the Schedule Trigger node.
  • Switch from posting to a personal profile to a company page by updating the LinkedIn node’s “person” field.
  • Edit the JavaScript in the Code node to add hashtags, mentions, or change text styling.
  • Add support for multiple images by expanding the image download and merge steps.
  • Insert logging nodes before and after posting to keep records of all actions.

Troubleshooting

  • No posts fetched for today: Check if the date format in Notion matches the filter expression
    {{$today.format("yyyy/mM/dd")}}

    Adjust format if needed.

  • LinkedIn post permission error: Confirm LinkedIn OAuth2 credentials have post rights and company admin access.
  • Image download issues: Verify image URLs in Notion are accessible and public.

Pre-Production Checklist

  • Check Notion API Key has access to the correct database.
  • Confirm LinkedIn OAuth2 credentials are authorized properly.
  • Ensure Notion database has “Date” and “Status” properties setup.
  • Run manual test of workflow to confirm it works end-to-end.
  • Backup Notion content before testing to prevent accidental change.

Deployment Guide

After testing succeeds, activate the workflow to run daily.
Watch execution logs for early error detection.
Using self-host n8n helps keep the workflow running without interruption.


Summary

✓ Saves time by automating daily LinkedIn posting.
✓ Removes manual copying and formatting work.
✓ Ensures posts go out on schedule every day.
✓ Updates Notion to track published posts automatically.
✓ Supports text formatting and image attachments.
✓ Easy to import and configure inside n8n.


Frequently Asked Questions

Download the workflow file from the page. In n8n editor, use “Import from File” to add the workflow. Add Notion API and LinkedIn OAuth2 credentials. Adjust IDs or URLs if needed. Run a manual test and activate the workflow.
The date filter format may not match your Notion database date format. Check the expression {{$today.format(“yyyy/mM/dd”)}} and adjust it to match the exact Notion date format.
Re-authorize LinkedIn OAuth2 credentials ensuring your account has posting rights and admin rights on the company page if posting there.
The current workflow supports only one image. To add more images, extend the HTTP Request and Merge nodes to download and attach multiple images.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free