How To Generate AI Videos In N8N With Workflow Automation
If you’re ready to automate video production at scale—ads, UGC, explainers, even short films—pairing N8N with Scrptly’s AI Video-Agent is a game-changer. In this guide, you’ll build an end-to-end workflow that turns a simple prompt and optional reference images into a finished, consistent video you can post anywhere.
Scrptly transforms a single prompt into a fully produced video: scripting, character design, scene generation, narration, editing, and final cut. It’s especially strong at long-form consistency, where characters and environments remain coherent across scenes. And with the Scrptly node in N8N, you can spin this up on autopilot.

What you’ll learn
- How to install and configure the Scrptly node in N8N
- How to create a reusable prompt template for ads, explainers, and long-form content
- How to feed context images for on-screen consistency
- How to chain your workflow to storage, social scheduling, or email delivery
- Pro tips for reliability, cost control, and scaling
Why Scrptly + N8N for video automation?
- Fully autonomous video generation: From script to final edit—no manual stitching.
- Long-form consistency: Characters, products, and locations remain visually consistent across scenes.
- Developer-friendly: Use the Scrptly API and Video Development Kit, plus an MCP server and an N8N node for no-code automation.
- Ready for growth: Build workflows for e-commerce ads, educational explainers, research reels, and content channels.
Getting started (prerequisites)
- An N8N instance (cloud or self-hosted)
- A free or paid Scrptly account to obtain an API key: https://scrptly.com/
- Optional: URLs to product or brand images to enforce consistent visuals
Step 1 — Install the Scrptly Node in N8N
- In N8N, go to Settings > Community Nodes > Install New.
- Search for: n8n-nodes-scrptly and click Install.
- Verify installation and refresh the editor if prompted.
Step 2 — Add credentials
- In the N8N editor, open the Credentials tab.
- Create New Credential > select Scrptly API.
- Paste your Scrptly API key from your Scrptly account and Save.
Step 3 — Build your first automation
A simple pattern looks like this:
- Trigger (Webhook or Schedule)
- Scrptly (Generate AI Video)
- Storage/Delivery (e.g., Upload to S3/Drive, Send to Slack/Email, or schedule a social post)
Example prompts that perform well
- UGC product ad: “Create a 30–45s UGC-style video of someone unboxing a vegan leather tote bag. Warm daylight vibe, cozy desk textures, soft depth of field. Include 3 lifestyle b-roll shots, 2 close-up macro shots of stitching, and a call-to-action overlay at the end: ‘Try it today.’ Vertical format 1080x1920.”
- Explainer: “Produce a 60–90s animated explainer on how whales communicate through songs. Use clean vector-like visuals with gentle gradients, narration in a calm, educational tone, and simple lower-thirds. Horizontal 1920x1080.”
- Mini-doc: “Create a 2–3 minute documentary-style short on how the Silk Road shaped trade. Use cinematic transitions, maps, period-inspired illustrations, and archival-style overlays. Consistent narrator voice. Horizontal 1920x1080.”
Pro tip: Provide context images
Feed Scrptly one or more reference images to lock in product appearance, character faces, or environments. That’s how Scrptly maintains consistency across scenes, crucial for long-form storytelling and brand fidelity.
Prompt template you can reuse
Copy and adapt this template in your N8N Scrptly node.
Create a [length] [format] video about [topic or product].
Style: [cinematic/UGC/anime/animated explainer/minimalist].
Scenes: [list a sequence of 5–10 beats].
Voice & pacing: [friendly/authoritative/calm/energetic].
Visual consistency: Match the provided reference images for [product/character/environment].
Output: [1080x1920 vertical or 1920x1080 horizontal].
Include subtitles and tasteful lower-thirds. End with CTA: [your CTA].
Step 4 — Configure the Scrptly node
In the node panel:
- Prompt: Paste your detailed prompt.
- Context Images: Add URLs for reference photos (optional but recommended).
- Approve Up To: Set a sensible budget (default ~10,000 tokens). Increase for longer or more complex videos.
- Wait For Completion: On for simple flows (the node waits and returns the final asset). Off if you prefer to poll later with the Task ID.
Step 5 — Deliver the output automatically
After the Scrptly node, add your preferred delivery steps:
- Upload the video file to storage (S3, GCS, Drive)
- Send a notification to Slack/Email with a preview link
- Auto-post or schedule to social platforms (via your preferred N8N nodes)
Example workflow idea: weekly product promo
- Trigger: Cron, every Monday 9:00 AM
- Data: Pull latest SKU, price, and highlights from your CMS/Sheet
- Generate: Scrptly creates a 30s promo reel with two lifestyle scenes and macro product shots
- Post: Upload to Drive, then send a Slack message to the marketing channel with the link

Bonus: Using the Scrptly API in code-centric workflows
Prefer programmatic control alongside N8N? Install the SDK and call Scrptly from custom code nodes.
npm install scrptly
# or
yarn add scrptly
import Scrptly from 'scrptly';
Scrptly.setApiSettings({
apiKey: process.env.SCRPTLY_API_KEY,
});
async function makeVideo() {
const task = await Scrptly.video.create({
prompt: `Create a 45s vertical UGC ad about our eco-friendly sneakers. Include 3 lifestyle shots, macro sole close-ups, upbeat narration, and a final CTA overlay.`,
contextImages: [
'https://example.com/images/sneaker-front.jpg',
'https://example.com/images/sneaker-sole.jpg',
],
approveUpTo: 12000,
});
console.log('Task started:', task.id);
}
makeVideo();
Advanced automations you can build
- Faceless YouTube channel: Auto-generate 8–12 minute videos from a weekly topic list. Scrptly’s long-form consistency keeps characters and scenes coherent.
- E-commerce launch cadence: Trigger a fresh ad whenever a new product hits your CMS, then distribute across short-form platforms.
- Research explainers and docu-shorts: Convert outlines into narrated, visualized summaries—perfect for journalism or academic communication.
- Localization: Chain multiple Scrptly runs to generate voiceovers in different languages, then route to region-specific social accounts.
Best practices for reliable, high-quality output
- Be specific in your prompt: Define format (vertical/horizontal), length, tone, scene beats, and CTA.
- Provide context images: Reference product/character/environment to ensure visual continuity.
- Start simple, iterate: Begin with a 20–30s version; refine style and pacing; then extend length.
- Control budget: Use Approve Up To and enable Wait For Completion for predictable pipelines.
- Monitor results: Log Task IDs and outcomes; keep a Slack/Email notification step for QA.
Troubleshooting
- Output looks inconsistent: Add or improve context images; explicitly mention “maintain consistent [object/character/environment] across all scenes.”
- Style not matching: Include style anchors (cinematic, anime, minimalist, UGC) and camera cues (macro, handheld, dolly).
- Long queue times: Turn off Wait For Completion and poll later; or schedule generation off-peak.
- Budget exceeded: Lower the Approve Up To setting, reduce length/complexity, or simplify scene list.
Why choose Scrptly vs generic editors
Unlike basic editors that require manual stitching, Scrptly’s swarm of specialized AI sub-agents handles research, screenplay, scene design, narration, and editing for you—ideal for creators, marketers, educators, businesses, and developers. Explore what’s possible at
Scrptly.com.
Next steps
With Scrptly + N8N, you can generate professional, consistent AI videos on a schedule, from a webhook, or from any business event—no manual editing required. Build your workflow once, then let automation do the rest.