n8n + OpenAI AI Content Writer Built in 20 Minutes

n8n + OpenAI: KI-Content-Autor in 20 Minuten bauen

🇬🇧 English

This article contains affiliate links. If you buy through them, we may earn a commission at no extra cost to you.

n8n + OpenAI: Build Your AI Content Writer in 20 Minutes

Writing content at scale is one of the biggest bottlenecks for marketers, solopreneurs and small teams. You need blog posts, social captions, email intros and product descriptions — all consistently, all regularly. The good news: you can wire up a fully functional AI content writer using n8n — an open-source workflow automation tool with 400+ integrations that you can self-host for free or run on n8n Cloud — and OpenAI's API in under 20 minutes.

This guide walks you through every node, every prompt and every connection you need. No prior coding experience required.

What You Will Build

By the end of this tutorial you will have a workflow that:

  • Accepts a topic or keyword as input (manually, via form or from a Google Sheet)
  • Sends a structured prompt to OpenAI's Chat Completions API
  • Returns a formatted blog post draft or social media copy
  • Optionally saves the output to Google Docs, Notion or Airtable

What You Need Before You Start

  • n8n instance: a free self-hosted install or an n8n Cloud account
  • OpenAI API key: available from platform.openai.com
  • 5 minutes of setup time for credentials — the rest is drag and drop

Step 1 — Create a New Workflow and Add a Trigger

Open your n8n editor and click New Workflow. For a quick test, use the Manual Trigger node. Once you are happy with the output, swap it for a Schedule Trigger (to run daily) or a Webhook node (to trigger from a form or external app).

If you want to pull topics from a spreadsheet, add a Google Sheets node right after the trigger and connect it to a sheet that lists your content topics in column A.

Step 2 — Add the OpenAI Node

Search for OpenAI in the node panel and drag it onto the canvas. Connect it to your trigger. Configure it as follows:

  • Resource: Chat
  • Operation: Create a Completion
  • Model: gpt-4o (or gpt-3.5-turbo for lower cost)
  • System Message: You are an expert content writer. Write in a clear, engaging and SEO-friendly style. Use short paragraphs and active voice.
  • User Message: Write a 600-word blog post introduction about: {{ $json["topic"] }}. Include a compelling hook, three key points and a call to action.

The {{ $json["topic"] }} expression pulls the topic dynamically from the previous node — whether that is a manual input field or a row from Google Sheets.

Step 3 — Extract and Format the Output

The OpenAI node returns a JSON object. The actual text lives at choices[0].message.content. Add a Set node after OpenAI and create a new field called content with the value:

{{ $json.choices[0].message.content }}

This keeps your downstream nodes clean and readable.

Step 4 — Save or Publish the Content

Now connect the output to wherever your content needs to go. Common destinations:

  • Google Docs: use the Google Docs node to create a new document and paste the content field into the body
  • Notion: use the Notion node to create a new page in a database
  • Airtable: append a new record with the topic and generated content
  • Email: send the draft straight to your inbox with the Gmail or SMTP node

Bonus: Add a Placid Node for Social Images

If you also need a matching social media image for each post, add Placid after the content node. Placid can generate on-brand social images and PDFs from templates via the n8n integration, so your visual and written content are produced in the same workflow run.

Step 5 — Test, Iterate and Activate

Click Execute Workflow with a sample topic. Review the output in the OpenAI node panel. Tweak the system message and user prompt until the tone, length and structure match your brand voice. When you are satisfied, toggle the workflow to Active.

Prompt Engineering Tips That Make a Big Difference

  • Be specific about format: ask for H2 headings, bullet points or a word count limit directly in the prompt
  • Set the audience: add Write for a non-technical small business owner to the system message
  • Chain prompts: run a second OpenAI node to generate a Twitter thread or LinkedIn post from the same blog draft
  • Add a review step: route the output to a human-review form before it goes live, using n8n's Wait node and a simple approval webhook

How to Scale This Workflow

Once the basic flow works, extend it:

  • Loop through 20 topics from a Google Sheet in one run using the Loop Over Items node
  • Add a Filter node to skip topics already marked as done in your sheet
  • Connect to WordPress via the HTTP Request node and the WordPress REST API to publish drafts automatically
  • Schedule the workflow to run every Monday morning so your content pipeline never runs dry

Self-Hosting vs n8n Cloud

If you prefer to keep your data local or want zero monthly SaaS fees, self-hosting n8n on a VPS is straightforward. The Docker install takes about five minutes. If you would rather skip server management entirely, n8n Cloud handles updates and infrastructure for you. Either way, all the nodes and features shown in this tutorial are available on both options.

Final Thoughts

An AI content writer built on n8n and OpenAI is not a replacement for your editorial judgement — it is a first-draft engine that removes the blank-page problem and keeps your content calendar moving. The workflow you built today can be cloned, extended and connected to any tool in your existing stack.

If you want to automate your content production without writing code, you can get started via n8n — including open-source workflow automation with 400+ integrations and a free self-hosting option — to build your AI content writer and keep your pipeline running automatically.

🇩🇪 Deutsch

Dieser Artikel enthält Affiliate-Links (Werbung). Kaufst du darüber, erhalten wir ggf. eine Provision – für dich ohne Mehrkosten.

n8n + OpenAI: KI-Content-Autor in 20 Minuten bauen

Regelmäßig hochwertigen Content zu produzieren ist für viele Teams und Solopreneure eine der größten Zeitfallen. Blogartikel, Social-Media-Texte, E-Mail-Intros, Produktbeschreibungen — all das will kontinuierlich geliefert werden. Die Lösung: ein automatisierter KI-Content-Autor, den du mit n8n — einem Open-Source-Workflow-Tool mit über 400 Integrationen, kostenlos selbst hostbar oder als n8n Cloud — und der OpenAI-API in unter 20 Minuten aufbaust.

Diese Schritt-für-Schritt-Anleitung zeigt dir jeden Node, jeden Prompt und jede Verbindung. Vorkenntnisse im Programmieren sind nicht erforderlich.

Was du am Ende haben wirst

Nach diesem Tutorial läuft ein Workflow, der:

  • ein Thema oder Keyword als Eingabe entgegennimmt (manuell, per Formular oder aus Google Sheets)
  • einen strukturierten Prompt an die OpenAI Chat-Completions-API sendet
  • einen fertigen Blogartikel-Entwurf oder Social-Media-Text zurückgibt
  • das Ergebnis optional in Google Docs, Notion oder Airtable speichert

Was du vorher brauchst

  • n8n-Instanz: kostenlose Self-Hosted-Installation oder ein n8n-Cloud-Konto
  • OpenAI-API-Key: erhältlich unter platform.openai.com
  • 5 Minuten für die Einrichtung der Zugangsdaten — der Rest ist Drag-and-Drop

Schritt 1 — Neuen Workflow anlegen und Trigger wählen

Öffne den n8n-Editor und klicke auf New Workflow. Für den ersten Test nutzt du den Manual Trigger. Wenn der Output stimmt, tauschst du ihn gegen einen Schedule Trigger (täglich automatisch) oder einen Webhook-Node (Auslösung per Formular oder externer App) aus.

Willst du Themen aus einer Tabelle ziehen, füge direkt nach dem Trigger einen Google Sheets-Node ein, der deine Content-Themen aus Spalte A liest.

Schritt 2 — OpenAI-Node hinzufügen

Suche im Node-Panel nach OpenAI und ziehe ihn auf die Arbeitsfläche. Verbinde ihn mit dem Trigger und konfiguriere ihn so:

  • Resource: Chat
  • Operation: Create a Completion
  • Model: gpt-4o (oder gpt-3.5-turbo für geringere Kosten)
  • System Message: Du bist ein erfahrener Content-Autor. Schreibe klar, ansprechend und SEO-freundlich. Nutze kurze Absätze und aktive Formulierungen.
  • User Message: Schreibe eine 600-Wörter-Blogartikel-Einleitung zum Thema: {{ $json["topic"] }}. Beginne mit einem starken Hook, nenne drei Kernpunkte und schließe mit einem Call to Action.

Der Ausdruck {{ $json["topic"] }} zieht das Thema dynamisch aus dem vorherigen Node — egal ob aus einem manuellen Eingabefeld oder einer Google-Sheets-Zeile.

Schritt 3 — Output extrahieren und aufbereiten

Der OpenAI-Node gibt ein JSON-Objekt zurück. Der eigentliche Text steckt unter choices[0].message.content. Füge nach dem OpenAI-Node einen Set-Node ein und erstelle ein neues Feld namens content mit dem Wert:

{{ $json.choices[0].message.content }}

Das hält alle nachfolgenden Nodes übersichtlich und sauber.

Schritt 4 — Content speichern oder veröffentlichen

Verbinde den Output jetzt mit dem Ziel, das du brauchst. Typische Optionen:

  • Google Docs: per Google-Docs-Node ein neues Dokument erstellen und das Content-Feld einfügen
  • Notion: per Notion-Node eine neue Seite in einer Datenbank anlegen
  • Airtable: einen neuen Datensatz mit Thema und generiertem Text anhängen
  • E-Mail: den Entwurf direkt mit dem Gmail- oder SMTP-Node ins Postfach senden

Bonus: Passende Social-Media-Bilder mit Placid generieren

Benötigst du zusätzlich zum Text ein passendes Bild für Social Media, füge Placid nach dem Content-Node ein. Placid erstellt on-brand Social-Images und PDFs aus Templates direkt über die n8n-Integration — Text und Grafik entstehen also in einem einzigen Workflow-Durchlauf.

Schritt 5 — Testen, verfeinern und aktivieren

Klicke auf Execute Workflow mit einem Beispiel-Thema. Überprüfe den Output im OpenAI-Node-Panel. Passe System Message und User Prompt so lange an, bis Ton, Länge und Struktur zu deiner Marke passen. Wenn alles stimmt, schalte den Workflow auf Active.

Prompt-Tipps, die den Unterschied machen

  • Format konkret angeben: frage direkt im Prompt nach H2-Überschriften, Aufzählungen oder einer bestimmten Wortanzahl
  • Zielgruppe definieren: ergänze in der System Message Schreibe für nicht-technische Kleinunternehmer
  • Prompts verketten: füge einen zweiten OpenAI-Node ein, der aus dem Blogartikel automatisch einen LinkedIn-Post oder Twitter-Thread erstellt
  • Review-Schritt einbauen: leite den Output vor der Veröffentlichung über einen Genehmigungsschritt, indem du n8ns Wait-Node und einen einfachen Approval-Webhook nutzt

Workflow skalieren

Sobald der Basis-Flow läuft, lässt er sich erweitern:

  • Mit dem Loop Over Items-Node 20 Themen aus einer Google-Tabelle in einem Durchlauf abarbeiten
  • Einen Filter-Node einbauen, der bereits erledigte Themen überspringt
  • Über den HTTP-Request-Node und die WordPress-REST-API fertige Entwürfe automatisch als Draft veröffentlichen
  • Den Workflow jeden Montagmorgen per Schedule starten, damit die Content-Pipeline nie leer läuft

Self-Hosting vs. n8n Cloud

Wer Daten lokal halten oder keine monatlichen SaaS-Gebühren zahlen möchte, installiert n8n auf einem VPS — die Docker-Installation dauert etwa fünf Minuten. Wer Server-Management lieber vermeidet, nutzt n8n Cloud: Updates und Infrastruktur werden übernommen. Alle Nodes und Funktionen aus diesem Tutorial sind in beiden Varianten verfügbar.

Fazit

Ein KI-Content-Autor auf Basis von n8n und OpenAI ersetzt nicht dein redaktionelles Urteilsvermögen — er liefert dir jederzeit einen soliden Erstentwurf und hält deinen Content-Kalender am Laufen. Der Workflow von heute lässt sich klonen, erweitern und mit jedem Tool in deinem bestehenden Stack verbinden.

Wenn du deine Content-Produktion automatisieren möchtest, ohne Code schreiben zu müssen, kannst du über n8n loslegen — inklusive Open-Source-Workflow-Automatisierung mit über 400 Integrationen und kostenloser Self-Hosting-Option — und deinen KI-Content-Autor direkt in Betrieb nehmen.