AutomatedReality, home

Build a Free Local n8n LinkedIn Post Generator

Overview & Architecture

Staring at a blank LinkedIn page is slow, and a post written from memory is easy to get wrong. This workflow takes a topic from a simple form, researches it on the web through your own search engine, and has a local language model draft the post from what it found.

An n8n Form Trigger collects the topic plus audience, tone, length and any required points. A private SearXNG instance returns search results, a Code node boils them down to a short research brief, and Ollama writes the post using only that brief. Every finished post is saved with its source links in a database table you can review and reuse.

The Pipeline

  1. Topic Form: An n8n Form Trigger asks for a topic (required), audience, tone, length and required points.
  2. Search SearXNG: An HTTP Request node calls your SearXNG instance’s JSON search interface with the topic.
  3. Build Research Brief: A Code node removes duplicate URLs and keeps the top five results as numbered titles, short snippets and links.
  4. Draft Post with Ollama: An HTTP Request node sends the form answers and brief to Ollama’s chat endpoint with the model qwen2.5:14b-instruct-q5_K_M. The prompt allows only facts from the notes and asks for plain text with no sources in the post.
  5. Clean Draft: A Code node strips think tags, preambles, markdown and any trailing sources block, and keeps the raw model response for reference.
  6. Create Posts Table / Save Post to Postgres: Two Postgres nodes create a linkedin_posts table if needed and insert the topic, post text, source links, raw response and timestamp.
  7. Confirmation: A final node returns the saved post to the form.

In the test run, a form submission about local AI models for small businesses produced a short post and saved it as the first row of the table.

What You Need

Key Deployment Hurdles & Solutions

Download the Workflow (.json)

Import-ready n8n workflow with all 8 working nodes, grouped and labeled. In n8n choose Import from file, select your own Postgres credential on the two Postgres nodes, and adjust the SearXNG address and Ollama model if yours differ.

Download the n8n workflow (.json)

Download the Companion System Prompt (.md)

Enter your first name to personalize the LinkedIn post generator assistant prompt so your AI helper can walk you through the SearXNG, Ollama, Postgres and n8n setup step by step. Add your email optionally to get notified when new home lab blueprints drop.