← Back to blog

How to Create Personalized Videos at Scale with JSON Templates

How to Create Personalized Videos at Scale with JSON Templates

How to Create Personalized Videos at Scale with JSON Templates

Personalized video emails get 16x higher click-through rates than generic ones. Personalized product videos increase purchase intent by 73%. Every marketer knows this. Almost none of them do it — because creating 1,000 unique videos manually is insane.

JSON templates make it sane. Here's how.

What Personalized Video Actually Means

Let's be specific. "Personalized" doesn't mean slapping someone's name on a generic video. Real personalization means dynamic elements that change based on data:

  • Name and company — The baseline. Everyone expects this.
  • Product images — Showing the exact item a customer viewed or purchased.
  • Pricing — Their specific quote, discount, or plan tier.
  • Location — Local landmarks, weather, or references.
  • Usage data — "You've completed 47 workouts this month" type content.
  • Recommendations — "Based on your purchase of X, you might like Y."

The more data points you personalize, the higher the engagement. But the complexity also grows exponentially — unless you use templates.

How JSON Templates Work

A JSON video template is a blueprint that defines everything about a video except the dynamic content. Think of it like a mail merge, but for video instead of letters.

Here's a simplified example:

{
  "template_id": "product-showcase-v3",
  "variables": {
    "customer_name": "Sarah",
    "product_image": "https://cdn.example.com/products/blue-jacket.jpg",
    "product_name": "Azure Down Jacket",
    "price": "$189",
    "discount_code": "SARAH15",
    "store_location": "Amsterdam"
  },
  "output": {
    "format": "mp4",
    "aspect_ratio": "9:16",
    "resolution": "1080x1920"
  }
}

Send this payload to the SamAutomation JSON Video API, and you get back a fully rendered video with Sarah's name, her specific product, her discount code, and a reference to her city — all composited into a professional template with animations, transitions, and music.

Change the variables, get a completely different video. Same template, infinite variations.

Use Case 1: E-commerce Product Videos

An online retailer with 5,000 SKUs needs a video for each product. Shooting 5,000 videos? That would take months and cost tens of thousands. With JSON templates:

The template: - Product image zooms in from the left - Product name appears with a typewriter effect - Price slides in from the bottom - "Shop Now" CTA with brand colors - Background music from your approved library

The data source: A CSV export from Shopify, WooCommerce, or any e-commerce platform. Each row becomes a video.

The automation: An n8n workflow reads the CSV, loops through each row, calls the API, and saves the rendered videos to S3 or Google Drive.

Output: 5,000 unique product videos in under 24 hours. Cost: roughly €50-100 in API credits versus €25,000+ for manual production.

Check out our store videos page for WooCommerce and Shopify-specific integration guides.

Use Case 2: Sales Outreach

Your sales team sends 200 prospecting emails per week. Plain text gets ignored. Generic video gets a polite "interesting, thanks." A video that shows the prospect's company name, references their industry, and speaks to their specific pain point? That gets meetings.

The template: - Animated intro with the prospect's company logo (pulled from Clearbit or a similar API) - Text overlay: "Hi [NAME], here's how [COMPANY] can save 40% on [PAIN POINT]" - 3 slides showing relevant case study data - Calendar booking CTA with your Calendly link

The data source: Your CRM (HubSpot, Salesforce, Pipedrive). Export contacts or connect via API.

The automation: CRM trigger → n8n workflow → JSON Video API → email delivery with video thumbnail.

Results from teams using this approach: - Email open rates: 38% (vs. 21% industry average) - Reply rates: 12% (vs. 3% industry average) - Meeting booking rates: 5.4% (vs. 1.2% industry average)

Use Case 3: Real Estate Listings

Every property listing needs a video tour. Real estate agents spend 2-3 hours per listing creating videos. With JSON templates:

The template: - Property images cycle with Ken Burns effect - Address and price overlay - Key stats (bedrooms, bathrooms, square footage) animate in - Agent branding and contact info at the end - Background music matching property style (luxury = piano, family = upbeat)

The data source: MLS feed or property management system via API.

Output: New listing published at 2 PM, video ready by 2:05 PM. Automatically posted to the agency's social media accounts.

Building Your First Template

Step 1: Design the Structure

Map out your video scene-by-scene: - Scene 1: Hook (3 seconds) — What grabs attention? - Scene 2-4: Content (15-30 seconds) — What's the message? - Scene 5: CTA (5 seconds) — What should the viewer do?

Step 2: Identify Dynamic Variables

For each element in your design, decide: - Static: Same in every video (logo, music, brand colors, transitions) - Dynamic: Changes per recipient/product (names, images, prices, data)

Rule of thumb: keep templates 60-70% static, 30-40% dynamic. Too many dynamic elements make the output feel disconnected.

Step 3: Connect Your Data

The API accepts JSON payloads. Your data source can be: - Spreadsheet (Google Sheets, CSV) — Simplest for batch processing - CRM (HubSpot, Salesforce) — Best for sales outreach - E-commerce (Shopify, WooCommerce) — Best for product videos - Database (PostgreSQL, MongoDB) — Best for custom applications

Use n8n or Make.com to bridge your data source and the API.

Step 4: Render and Distribute

Submit your payloads to the JSON Video API. The API returns rendered videos via webhook or polling. For batch jobs:

  • Small batches (under 100): Synchronous rendering, results in minutes
  • Large batches (100-5,000): Async rendering with webhook notifications
  • Enterprise scale (5,000+): Contact us for dedicated rendering capacity

Step 5: Add Captions

Don't forget AutoCaptions. Personalized videos that play on social media feeds need burned-in subtitles. Our caption API integrates directly into the rendering pipeline — no extra step needed.

Scaling Tips

Tip 1: Version Your Templates

Create v1, v2, v3 of each template. A/B test which design drives better engagement. Track performance by template version in your analytics.

Tip 2: Cache Rendered Videos

If two customers bought the same product, their product videos are identical except for the name overlay. Cache the base render and only re-render the personalized overlay. This cuts rendering costs by 40-60% for large catalogs.

Tip 3: Pre-Render Off-Peak

API rendering is fastest during off-peak hours (nights, weekends). Schedule your batch renders with n8n's cron triggers for 2 AM to get the fastest turnaround and avoid queue delays.

Tip 4: Use Aspect Ratio Multipliers

Each template should render in at least two formats: - 9:16 for TikTok, Instagram Reels, YouTube Shorts - 1:1 for LinkedIn, email, and Facebook

The multi-aspect ratio feature renders both from a single template definition — one API call, two outputs.

ROI Calculator

Scenario Manual Cost Automated Cost Savings
100 product videos €2,500 €25 99%
500 sales outreach videos €5,000 €75 98.5%
50 real estate listings/month €7,500/mo €50/mo 99.3%
1,000 personalized email videos €10,000 €100 99%

The math is overwhelming. Personalized video at scale is not a luxury anymore — it's a competitive necessity that costs less than your monthly coffee budget.

Ready to start? Check our pricing plans or dive straight into the API documentation.

Related articles

Build your first automated video

One API key for deterministic JSON-to-video plus AI video & image generation. Documented and ready for your pipeline.