Want a fresh video every time you publish a blog post, add a product, or close a deal in your CRM? You can build that today. Wire Wavemaker's REST API into a n8n workflow, and an AI agent will research, script, and render a finished video whenever a trigger fires, no timeline editor, no manual export, no human in the loop. This tutorial walks through the automation pattern: what to trigger on, how to call the API, how to wait for the finished video, and where to send it once it's done.

About automated video: most tools stop at a clip or a stock-footage slideshow, so you still have to assemble the pieces yourself. Wavemaker runs the whole pipeline (script, generated visuals, voiceover, music, and an AI vision QC pass) behind a single API call. That's what makes it worth automating. One request in, one finished video out.

What you can automate

Automated video creation shines anywhere you already have a repeatable event and a data source. If something happens on a schedule or fires a webhook, it can trigger a video. A few patterns worth building:

Automation Trigger to Video Output
Trigger (the event) Video output Where it goes
New blog post published (CMS webhook / RSS) 30-60s summary video of the article YouTube, LinkedIn, embedded in the post
New product added (Shopify, catalog DB) Product promo built from the listing URL Product page, Instagram, TikTok
CRM stage change (deal won, new signup) Personalized welcome or onboarding video Email, customer portal
Scheduled cron (daily / weekly) News roundup or recap from a topic feed TikTok, Shorts, Reels
New review or testimonial submitted Short social proof clip Social channels, ad creative
Spreadsheet / Airtable row added Batch of personalized videos at scale Wherever the row points

The common thread: you're turning a structured event into a creative brief, then letting the AI production team take it from there. That's the priority.

automate-video-creation-n8n-api - Body1

The Wavemaker API in one minute

A few facts to build against:

  • Endpoint: the session API on `https://api.wavemaker.io`. You create a session (`POST /v1/sessions`, free), then post your brief as a turn (`POST /v1/sessions/{id}/turns`) and get back a turn you can track.

  • Inputs: a plain-language brief, such as a prompt, a topic or a page URL, plus up to 40 attachments (logo, photos, references) you upload first. You list the files you want back as deliverables, for example one 9:16 video of 30 seconds.

  • Progress: the session's events (`GET /v1/sessions/{id}/events`) come as a long poll or an SSE (server-sent events) stream, so you can watch the turn start, call tools, and deliver files in real time.

  • Completion: HMAC-signed webhooks fire when the turn is done. You register your URL once, and the signature lets you verify the payload really came from Wavemaker before you act on it.

  • Rate limit: no fixed requests-per-minute number is published. If you go too fast, the API answers 429 with a `retry_after_s` value, and up to 24 agent turns run at once per workspace. For a large batch, add a short delay between requests.

Generation takes 2 to 5 minutes for most videos, which is why the webhook pattern matters. You don't want your workflow sitting there polling. You want to fire the request, let it go, and pick the job back up when the "done" event arrives.

For the full request and response shapes, see the video generation API guide. This tutorial focuses on the automation wiring.

The workflow pattern

An automated video workflow typically follows these five steps:

1. Trigger. Something happens: a webhook fires, an RSS item appears, a cron timer hits, a new row lands. In n8n, this is your trigger node (Webhook, RSS Feed Trigger, Schedule, or an app node like Shopify or HubSpot).

2. Build the prompt. Take the event data and shape it into a creative brief. For a blog post, that might be the title, a URL, and the aspect ratio you want. A Set or Function node is enough. This is where you decide what the video should say and how it should look.

3. Call the API. Create a session, then post your brief and deliverables to it as a turn. Use n8n's HTTP Request node with your API key in the Authorization header. The response hands back a turn ID.

4. Wait on the webhook. Instead of blocking, split the flow. A second n8n workflow listens for Wavemaker's HMAC-signed `turn.completed` event. Verify the signature, then read the turn and check that its outcome says the video was delivered before you look for the download link.

5. Post the finished video. Do something with it. Upload to YouTube, post to social via your scheduler, attach it to an email, drop the URL back into your CMS, or hand it to the next automation.

That's the pattern. Trigger, build, call, wait, post. Everything else is detail.

automate-video-creation-n8n-api - Body2

Wiring it in n8n

Here's how the nodes map to real n8n building blocks. Treat the config below as illustrative, adjust field names to match the current API guide.

Register the webhook once. Before the first run, send `POST https://api.wavemaker.io/v1/webhooks/endpoints` with your n8n webhook URL (for example `https://your-n8n.example.com/webhook/wavemaker-done`) and the event `turn.completed`. The reply holds the signing secret, shown once, so store it in n8n's credentials.

The trigger node. Say you want a video for every new blog post. Point an RSS Feed Trigger at your blog's feed, or have your CMS POST to a n8n Webhook node on publish. Either way, you get the new post's title and URL into the workflow.

The request ID node. Every session and turn request needs a `request_id` made of letters, digits and `. _ : -` (up to 200 characters), and it should stay the same for the same post, so a retried run can't make the same video twice. An RSS `guid` is usually a URL, which the API refuses, so don't use it as is. Add a Crypto node named `Hash guid` that hashes the post's `guid` with SHA256 into a field called `key`.

The session node. An HTTP Request node sends `POST https://api.wavemaker.io/v1/sessions` with `Authorization: Bearer YOUR_API_KEY` and `Content-Type: application/json` in the headers, and this body:

{
  "request_id": "blog-{{ $('Hash guid').item.json.key }}:session",
  "title": "Recap: {{ $('RSS Feed Trigger').item.json.title }}"
}

Every reply comes in one envelope, `{ok, data, error, ...}`, so the session itself is under `data`. You need two values from it: `data.id`, the session's ID, and `data.controller.token`, the controller token that lets you post turns. The token only exists once this call returns, so the turn has to come after it.

The turn node. A second HTTP Request node, with the same headers, sends `POST https://api.wavemaker.io/v1/sessions/{{ $json.data.id }}/turns` with the brief and the video you want back. For a blog recap, put the article URL in the brief:

{
  "request_id": "blog-{{ $('Hash guid').item.json.key }}:video-v1",
  "controller": "{{ $json.data.controller.token }}",
  "text": "A 45-second summary video of this blog post for LinkedIn: {{ $('RSS Feed Trigger').item.json.link }}",
  "deliverables": [{"id": "recap", "kind": "video", "aspect": "16:9", "duration_s": 45}]
}

Here `$json` is the session node's reply, and the feed fields come from the trigger node by name. The reply holds the turn's ID in `data.id`; log it with the session ID.

The completion listener. Create a second workflow with a Webhook node at the path you registered (`/webhook/wavemaker-done`), and turn on the node's Raw Body option: the signature covers the exact bytes Wavemaker sent, so you can't check it against parsed JSON. Add a Code node that recomputes the HMAC-SHA256 of `{t}.{raw body}` from the `Wavemaker-Signature` header and your signing secret, so you only trust genuine callbacks. A `turn.completed` event doesn't by itself mean a video exists. Read the turn with `GET https://api.wavemaker.io/v1/sessions/{session_id}/turns/{turn_id}` (both IDs are in the event) and go on only if `data.outcome.status` is `delivered`. Anything else, such as `partial` or `needs_input`, should go to an alert instead of the publish step. The video's download link is in `data.outcome.deliveries`.

The publish node. A delivery's download link expires after an hour, so don't post the link itself. Download the file in an HTTP Request node, then upload it where it belongs: a YouTube node, a social scheduler, a Gmail attachment, or your CMS's media library. If you need the link again later, read the turn again: each read returns a fresh one.

If you'd rather watch progress live instead of waiting on a webhook, you can read the session's event stream, but for hands-off automation the webhook split is simpler and more reliable. Let the trigger fire and forget; let the callback do the rest.

Going agentic with the MCP server

The API is perfect for deterministic "when X, make Y" flows. But if you want an AI agent to decide what video to make, reach for the MCP server.

Wavemaker runs a Model Context Protocol server at `https://api.wavemaker.io/mcp` with OAuth sign-in (PKCE). It offers the same twelve tools the HTTP API serves, including `search`, `generate`, `edit`, `compose` and `review`. Connect it to Claude, ChatGPT, Cursor, Windsurf, or any MCP client, and the agent can plan and produce video as part of a larger reasoning loop.

The two approaches combine nicely. Use n8n for the plumbing (triggers, scheduling, retries, posting) and let an MCP-connected agent handle the creative judgment inside a step. An agent might read your analytics, pick the three posts worth promoting this week, price each video first with a `quote_only` call to stay on budget, then make them. For a full walkthrough of the agent side, see generating videos from Claude with the MCP server.

automate-video-creation-n8n-api - Body3

A few things to get right

Handle credits. Each request spends credits; the cost depends on the video's length, takes and models. Pro plans start at $49 a month for 850 credits and go up to $499 a month for 10,000 credits. If you're automating high volume, top up with credit packs (from $19.99 for 300), which never expire. Price a brief before big batches (`POST /v1/quotes`, which starts and holds nothing) so nothing surprises you.

Respect the rate limit. A batch job can send requests faster than the API accepts them. Add a small delay or queue node between calls when you're generating many videos at once, and when you get a 429, wait the `retry_after_s` it gives and resend with the same `request_id`.

Verify webhooks. Always check the HMAC signature before acting on a completion callback. It's a few lines of code and it keeps spoofed payloads out of your pipeline.

Start small. Build one trigger end to end (one blog post to one video to one post) before you scale it to your whole catalog. Automation multiplies both good workflows and bad ones.

From automated video to television

Once your pipeline is producing finished videos on autopilot, there's one more step most tools can't offer. A finished Wavemaker video can run as a real streaming TV commercial on 100+ networks through Adwave, starting from $30 a day, alongside Google, YouTube, Meta, Reddit, and display. So the same automation that fills your social calendar can also feed a paid distribution engine. The pipeline doesn't have to stop at an MP4.

Common questions answered

Do I need to know how to code to automate video with n8n? Not really. n8n is a visual, node-based tool, so most of the workflow is drag-and-drop. You'll write a little JSON for the API payload and a short function to verify the webhook signature, but you don't need to build an app from scratch. If you can follow a recipe, you can build this.

Which Wavemaker plan do I need for the API? Check the developer docs for current API access before you build. API requests spend credits from your balance. Pro plans start at $49 a month for 850 credits and go up to $499 a month for 10,000 credits, and credit packs (from $19.99 for 300) never expire. Starter credits work in the app and in sign-in connections like MCP. API-key requests need a paid pack or plan.

How long does each video take to generate? Most videos finish in 2 to 5 minutes. That's why the webhook pattern is the right design for automation: you fire the request, let the job run, and resume your workflow when Wavemaker's completion callback arrives, rather than making your automation sit and poll.

Can I use tools other than n8n? Yes. The pattern (trigger, build prompt, call API, wait on webhook, post) works in Make, Zapier, Pipedream, or your own backend code. n8n is a convenient, self-hostable choice, but the REST API and HMAC webhooks are standard, so any orchestration tool that can send an HTTP request and receive a webhook will work.

What's the difference between using the API and the MCP server? The API is for deterministic automation: a fixed trigger produces a fixed kind of video. The MCP server is for agentic flows where an AI decides what to make, using tools like `search`, `generate` and `review` inside a reasoning loop. Many pipelines use n8n for the plumbing and an MCP-connected agent for the creative decisions.

Can I generate personalized videos at scale? Yes. Point a trigger at a data source (a CRM, a spreadsheet, an Airtable base) and build the prompt from each record. Every new row or stage change fires its own API call, so you can produce one tailored video per customer, per deal, or per signup. Just pace your requests and watch your credit balance on large batches.

Ready to build your first automated pipeline? Make your first video on us (300 starter credits), then head to the developer docs to grab your API key and get wiring. Starter credits work in the app and in sign-in connections like MCP. API-key requests need a paid pack or plan.