n8n + Kling AI Automated Video Pipeline in 20 Minutes

n8n + Kling AI: Automatische Video-Pipeline in 20 Minuten

🇬🇧 English

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

n8n + Kling AI: Build Your Automated Video Pipeline in 20 Minutes

AI video generation has crossed a threshold. The quality is good enough to publish, and the APIs are stable enough to automate. What has been missing for most creators and marketers is the glue — a reliable workflow that triggers video creation, waits for rendering, and delivers the finished file without anyone clicking a button. That is exactly what this guide builds.

You will connect n8n — open-source workflow automation with 400+ integrations, free to self-host or available as n8n Cloud — to Kling AI to generate AI videos from text prompts on a fully automated schedule. The whole setup takes about 20 minutes.

What You Need Before You Start

  • n8n instance — self-hosted or n8n Cloud account
  • Kling AI API key — available from the Kling AI developer portal
  • A trigger source — a Google Sheet, an Airtable base, a webhook, or a simple schedule node
  • A delivery destination — Google Drive, Dropbox, S3, or a Slack channel

No coding experience is required. Every step uses n8n's visual node editor.

Step 1 — Set Up Your Trigger

Open n8n and create a new workflow. Add your first node. Choose the trigger that fits your use case:

  • Schedule Trigger — runs the pipeline daily, hourly, or on any cron schedule
  • Webhook Trigger — fires when an external tool (CMS, form, Zapier) sends a POST request
  • Google Sheets Trigger — watches for new rows containing video prompts

For this walkthrough, use a Google Sheets Trigger. Each new row in a sheet called Video Queue contains three columns: prompt, aspect_ratio, and duration. When a row is added, the workflow fires.

Step 2 — Call the Kling AI API

Add an HTTP Request node directly after your trigger. Configure it as follows:

  • Method: POST
  • URL: https://api.klingai.com/v1/videos/text2video
  • Authentication: Header Auth — key Authorization, value Bearer YOUR_API_KEY
  • Body (JSON):
{
 "model": "kling-v1",
 "prompt": "{{ $json.prompt }}",
 "aspect_ratio": "{{ $json.aspect_ratio }}",
 "duration": {{ $json.duration }}
}

This node submits the generation job. Kling AI returns a task_id immediately. The video is not ready yet — it renders asynchronously, typically in 2–4 minutes.

Tip: Map Sheet Columns Cleanly

Use the Set node between your trigger and the HTTP Request to rename and validate fields. This keeps your JSON body predictable and makes debugging much easier later.

Step 3 — Poll for Completion

Because Kling AI renders asynchronously, you need a polling loop. Here is the pattern:

  1. Add a Wait node set to 60 seconds.
  2. Add a second HTTP Request node to check job status:
  • Method: GET
  • URL: https://api.klingai.com/v1/videos/text2video/{{ $json.task_id }}

The response includes a status field. Add an IF node that checks whether status equals succeed. If yes, the workflow continues. If no, it loops back to the Wait node. Add a counter using a Set node to avoid infinite loops — stop after 10 attempts and send yourself a Slack alert.

Step 4 — Download and Deliver the Video

When the IF node passes, the response contains a video_url. Add a third HTTP Request node in binary mode to download the file:

  • Method: GET
  • URL: {{ $json.video_url }}
  • Response Format: File

Then add your delivery node. Common options:

  • Google Drive — upload to a shared folder for review
  • Amazon S3 — store for CDN delivery
  • Slack — post a message with the download link to a team channel
  • Email (Gmail / SMTP) — notify a client automatically

Step 5 — Update Your Queue and Close the Loop

Add a final Google Sheets node to write the video URL and a done status back into the row that triggered the workflow. This prevents duplicate processing on the next run and gives you a live log of every video generated.

Full Workflow Overview

Here is the complete node sequence at a glance:

  • Google Sheets Trigger → Set (clean fields) → HTTP Request (submit job)
  • → Wait (60 s) → HTTP Request (poll status) → IF (done?)
  • → HTTP Request (download file) → Google Drive (upload)
  • → Google Sheets (update row) → Slack (notify team)

Every node is configurable without writing a single line of code. The workflow handles error states, retries, and delivery automatically.

Tips to Get Better Results from Kling AI

  • Be specific in prompts. Include camera movement, lighting mood, and subject action. Example: "Aerial drone shot over a sunlit city skyline at golden hour, slow pan left, cinematic."
  • Use 16:9 for YouTube, 9:16 for Reels and Shorts. Set aspect_ratio in your sheet accordingly.
  • 5-second clips are fastest. Use 10-second clips only when motion complexity requires it.
  • Batch at night. Queue 20 prompts before bed; wake up to 20 finished videos in your Drive folder.

Where to Take This Next

Once the base pipeline works, there are several natural extensions:

  • Add AI voiceover — pipe the finished video through ElevenLabs to add a narration track automatically.
  • Add image-to-video — swap the text2video endpoint for Kling AI's image2video endpoint and feed product images from your sheet.
  • Add auto-captioning — call a transcription API and burn in subtitles before delivery.
  • Add social scheduling — connect a social media management tool at the end to publish clips directly.

Each extension is just one more node in the same workflow. That is the power of building on n8n: the pipeline grows with your needs, and you never have to rebuild from scratch.

If you want to automate your entire video production workflow, you can get started via n8n — including 400+ integrations and a free self-hosting option — to generate, deliver, and log AI videos without touching a single button.

🇩🇪 Deutsch

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

n8n + Kling AI: Deine automatische Video-Pipeline in 20 Minuten bauen

KI-Videogenerierung hat eine neue Qualitätsstufe erreicht. Die Ergebnisse sind gut genug zum Veröffentlichen, die APIs stabil genug zum Automatisieren. Was bisher gefehlt hat: ein zuverlässiger Workflow, der die Videoproduktion auslöst, auf das Rendering wartet und die fertige Datei abliefert – ohne dass jemand einen Knopf drücken muss. Genau das baut diese Anleitung.

Du verbindest n8n — Open-Source-Workflow-Automatisierung mit 400+ Integrationen, kostenlos selbst hostbar oder als n8n Cloud — mit Kling AI, um KI-Videos aus Textprompts vollautomatisch zu generieren. Die gesamte Einrichtung dauert etwa 20 Minuten.

Was du vorher brauchst

  • n8n-Instanz — selbst gehostet oder als n8n-Cloud-Account
  • Kling AI API-Key — erhältlich im Kling-AI-Entwicklerportal
  • Eine Triggerquelle — ein Google Sheet, eine Airtable-Datenbank, ein Webhook oder ein einfacher Schedule-Node
  • Ein Lieferziel — Google Drive, Dropbox, S3 oder ein Slack-Kanal

Programmierkenntnisse sind nicht erforderlich. Jeder Schritt nutzt den visuellen Node-Editor von n8n.

Schritt 1 — Trigger einrichten

Öffne n8n und erstelle einen neuen Workflow. Füge deinen ersten Node hinzu und wähle den Trigger, der zu deinem Anwendungsfall passt:

  • Schedule Trigger — startet die Pipeline täglich, stündlich oder nach einem beliebigen Cron-Zeitplan
  • Webhook Trigger — wird ausgelöst, wenn ein externes Tool (CMS, Formular, Zapier) einen POST-Request sendet
  • Google Sheets Trigger — überwacht neue Zeilen mit Video-Prompts

Für diese Anleitung verwenden wir einen Google Sheets Trigger. Jede neue Zeile in einem Sheet namens Video Queue enthält drei Spalten: prompt, aspect_ratio und duration. Wenn eine Zeile hinzugefügt wird, startet der Workflow.

Schritt 2 — Kling AI API aufrufen

Füge direkt nach deinem Trigger einen HTTP Request-Node hinzu. Konfiguriere ihn wie folgt:

  • Methode: POST
  • URL: https://api.klingai.com/v1/videos/text2video
  • Authentifizierung: Header Auth — Key Authorization, Wert Bearer DEIN_API_KEY
  • Body (JSON):
{
 "model": "kling-v1",
 "prompt": "{{ $json.prompt }}",
 "aspect_ratio": "{{ $json.aspect_ratio }}",
 "duration": {{ $json.duration }}
}

Dieser Node übermittelt den Generierungsauftrag. Kling AI gibt sofort eine task_id zurück. Das Video ist noch nicht fertig — es wird asynchron gerendert, typischerweise in 2–4 Minuten.

Tipp: Sheet-Spalten sauber mappen

Füge zwischen Trigger und HTTP-Request-Node einen Set-Node ein, um Felder umzubenennen und zu validieren. Das macht deinen JSON-Body vorhersehbar und das spätere Debugging deutlich einfacher.

Schritt 3 — Auf Fertigstellung warten (Polling)

Da Kling AI asynchron rendert, brauchst du eine Polling-Schleife. So funktioniert das Muster:

  1. Füge einen Wait-Node mit 60 Sekunden Wartezeit hinzu.
  2. Füge einen zweiten HTTP Request-Node hinzu, um den Jobstatus zu prüfen:
  • Methode: GET
  • URL: https://api.klingai.com/v1/videos/text2video/{{ $json.task_id }}

Die Antwort enthält ein status-Feld. Füge einen IF-Node hinzu, der prüft, ob status gleich succeed ist. Wenn ja, läuft der Workflow weiter. Wenn nein, springt er zurück zum Wait-Node. Baue mit einem Set-Node einen Zähler ein, um Endlosschleifen zu vermeiden — nach 10 Versuchen abbbrechen und eine Slack-Benachrichtigung senden.

Schritt 4 — Video herunterladen und ausliefern

Wenn der IF-Node durchläuft, enthält die Antwort eine video_url. Füge einen dritten HTTP Request-Node im Binärmodus hinzu, um die Datei herunterzuladen:

  • Methode: GET
  • URL: {{ $json.video_url }}
  • Antwortformat: Datei

Füge dann deinen Auslieferungsnode hinzu. Gängige Optionen:

  • Google Drive — in einen geteilten Ordner zur Überprüfung hochladen
  • Amazon S3 — für CDN-Auslieferung speichern
  • Slack — Nachricht mit Download-Link in einem Team-Kanal posten
  • E-Mail (Gmail / SMTP) — Kunden automatisch benachrichtigen

Schritt 5 — Queue aktualisieren und Schleife schließen

Füge einen abschließenden Google Sheets-Node hinzu, der die Video-URL und den Status done in die auslösende Zeile zurückschreibt. Das verhindert doppelte Verarbeitung beim nächsten Durchlauf und liefert dir ein Live-Protokoll aller generierten Videos.

Kompletter Workflow auf einen Blick

So sieht die vollständige Node-Sequenz aus:

  • Google Sheets Trigger → Set (Felder bereinigen) → HTTP Request (Job einreichen)
  • → Wait (60 s) → HTTP Request (Status prüfen) → IF (fertig?)
  • → HTTP Request (Datei herunterladen) → Google Drive (hochladen)
  • → Google Sheets (Zeile aktualisieren) → Slack (Team benachrichtigen)

Jeder Node ist ohne eine einzige Codezeile konfigurierbar. Der Workflow behandelt Fehlerzustände, Wiederholungen und die Auslieferung automatisch.

Tipps für bessere Ergebnisse mit Kling AI

  • Sei präzise bei Prompts. Beschreibe Kamerabewegung, Lichtstimmung und die Aktion des Motivs. Beispiel: „Drohnenaufnahme über einer sonnenbeschienenen Skyline bei goldenem Licht, langsamer Schwenk nach links, kinematisch."
  • 16:9 für YouTube, 9:16 für Reels und Shorts. Trage aspect_ratio entsprechend in dein Sheet ein.
  • 5-Sekunden-Clips werden am schnellsten gerendert. Nutze 10-Sekunden-Clips nur, wenn die Bewegungskomplexität es erfordert.
  • Batches nachts einreihen. 20 Prompts vor dem Schlafen eintragen — morgens warten 20 fertige Videos in deinem Drive-Ordner.

Wie du die Pipeline erweiterst

Sobald die Basis-Pipeline funktioniert, gibt es mehrere natürliche Erweiterungen:

  • KI-Vertonung hinzufügen — leite das fertige Video durch ElevenLabs, um automatisch einen Sprachkommentar hinzuzufügen.
  • Image-to-Video nutzen — tausche den text2video-Endpunkt gegen Kling AIs image2video-Endpunkt aus und speise Produktbilder aus deinem Sheet ein.
  • Automatische Untertitel ergänzen — rufe eine Transkriptions-API auf und brenne Untertitel ein, bevor das Video ausgeliefert wird.
  • Social Scheduling anschließen — verbinde am Ende ein Social-Media-Management-Tool, um Clips direkt zu veröffentlichen.

Jede Erweiterung ist nur ein weiterer Node im selben Workflow. Das ist die Stärke des Bauens auf n8n: Die Pipeline wächst mit deinen Anforderungen, und du musst nie von vorne anfangen.

Wenn du deine gesamte Videoproduktion automatisieren möchtest, kannst du über n8n loslegen — inklusive 400+ Integrationen und kostenloser Self-Hosting-Option — und KI-Videos generieren, ausliefern und protokollieren, ohne einen einzigen Knopf zu drücken.