Learn · No-Code

How to make AI product videos from Google Sheets with n8n

Contents

Put a product photo, a name and a price in a Google Sheet, and a vertical video ad lands in your Google Drive. The photo moves, a voice reads a line about the product, and the name, the price and a “Shop now” button come in on top. The link to the MP4 goes back into the sheet.

This guide shows how to make AI product videos in n8n with a free workflow template made by Shotstack. It covers the setup, what each ad costs, and the one setup step that is easy to miss. This ad came from one row: a photo of a face serum, its name, $34 and one line of voiceover.

What one row becomes

Every ad the workflow makes has the same five parts:

PartWhat you get
Moving clipThe product photo, animated by an AI image-to-video model into a 6-second shot with a slow push-in
NameThe product name at the top of the frame
PriceThe price in a red badge under the name
VoiceoverAn AI voice that reads the row’s voiceover line, or the name and the price when the line is empty
ButtonA white “Shop now” button at the bottom, from 3.5 seconds

The file is an MP4, 720 x 1280, in the 9:16 shape of Reels, TikTok and Shorts.

Meta’s advice for Reels ads is the same shape with sound: “vertical video (9:16) with audio”. In research Meta commissioned with GWI in 2023, 61% of the people surveyed said Reels ads had led them to further consider a brand, product or service they were already aware of.

These three ads came from the workflow as published, one for each row of our test sheet:

Three vertical product ads side by side: white leather sneakers at $120, a brightening face serum at $34 and a waxed canvas weekender bag at $145, each with its name at the top, a red price badge and a white Shop now button

The animation, the voice and the render all run on your Shotstack account. You don’t connect a separate video model or voice tool.

What you need and what an ad costs

  • n8n, on n8n Cloud or on your own server.
  • A Shotstack account. Create a free account if you don’t have one; new accounts include credits.
  • A Google account for the product sheet and the Drive folder.

Shotstack charges credits for what each ad generates, and the animation is most of it. These are the API’s own price quotes at the time of writing:

WhatCredits
A 6-second animation at 720p, the template’s setting11.38
A 6-second animation at 480p5.63
An 8-second animation at 720p15.17
The voiceoverabout 0.02
The renderby the length of the video

Current rates are on the pricing page and in the AI generation pricing guide. The workflow also guards your credits on its own: it gets a free quote before each animation and skips any product above the limit you set.

Set up the workflow

1. Install the Shotstack node

In n8n, open the nodes panel with the plus button and type “Shotstack”. Select the node under More from the community and click Install. You need to be an owner or admin of the n8n instance.

n8n nodes panel with Shotstack typed in the search box and the verified Shotstack node in the results

2. Add the template

Open the product video ads template on n8n and click Use for free. The workflow opens on your canvas as “Turn product photos in Google Sheets into AI video ads with Shotstack”, in four parts: pick the products, write the copy and check the price, build the ad and keep it, and mark what was skipped.

The product ads workflow on the n8n canvas: the schedule, Ad settings and the product rows, then the quote, budget check and animation, then the ad build, Drive upload and sheet update, and two steps below that mark skipped products

3. Make the product sheet

Create a Google Sheet and put these nine column names in row 1, exactly as written:

Text
sku  name  price  image_url  voiceover  status  note  ad_url  credits

Then add one row per product. You fill in the first five columns, and the workflow writes the last four. These were two of our rows:

skunamepriceimage_urlvoiceover
SKU-1001White leather sneakers$120link to the photo
SKU-1002Brightening face serum$34link to the photoA few drops every night. Our brightening face serum, just $34.
  • sku is different on every row. The workflow finds the row again by its sku when it writes the result back.
  • price is shown and read as you write it. Write $34, not 34.
  • image_url opens as just the image. Paste the link into a new browser tab. If you see only the photo, it’s the right kind of link. A link to a product page won’t work.
  • voiceover is optional. Leave it empty and the voice reads the name, then “Now just” and the price.
  • status stays empty. The workflow only picks up rows that have a photo and no status.

4. Connect Google and pick your sheet

Four steps use the sheet: Get the product rows, Save the ad to the sheet, Note it is over budget and Note what went wrong.

  1. Open Get the product rows. In Credential, choose Create new credential and sign in with Google. On self-hosted n8n, create a Google OAuth client first.
  2. In Document, pick your sheet from the list. In Sheet, pick the tab.
  3. Do the same in the other three steps, with the same credential.

Then open Save it to Google Drive, connect Google Drive the same way, and pick a folder in Parent Folder. Each ad is saved under its sku and name, for example SKU-1002 - Brightening face serum.mp4.

The Save it to Google Drive step: a Google Drive account, Operation set to Upload, the file name built from the sku and the headline, Parent Drive set to My Drive and Parent Folder set to Product ads

5. Put back what the three sheet steps write

This is the step that is easy to miss. When you pick your sheet in Save the ad to the sheet, Note it is over budget or Note what went wrong, n8n loads your columns and clears the step.

After that, Column to match on is blank and every box under Values to Send is empty. Run it like that and the first product is animated and rendered, then the run stops at the sheet.

In each of the three steps, set Column to match on to sku and fill in the values below. Leave the other boxes empty, because n8n only writes the ones you fill in.

A value with {{ }} in it is an expression. Hover the box, click Expression, then paste the value. If you type it into a plain box, the braces go into your sheet as text.

Save the ad to the sheet:

Text
sku       {{ $('Write the ad copy').first().json.sku }}
status    done
ad_url    https://drive.google.com/file/d/{{ $json.id }}/view
credits   {{ $('Quote the animation').first().json.credits }}

The Save the ad to the sheet step after setup: Column to match on set to sku, and Values to Send with the sku expression, status done, the ad_url built from the Drive file id and the credits from the quote

Note it is over budget:

Text
sku       {{ $('Write the ad copy').first().json.sku }}
status    over budget
note      Quoted {{ $json.credits }} credits, above the limit of {{ $('Ad settings').first().json.max_credits }} in Ad settings.

Note what went wrong:

Text
sku       {{ $('Write the ad copy').first().json.sku }}
status    failed
note      {{ ($json.error && $json.error.message) || $json.error || 'Shotstack could not finish this video. Open the execution for the reason.' }}

6. Connect Shotstack

Open Quote the animation. In the credential dropdown choose Create new credential, paste your production API key, set Environment to Production and save. The key is under API Keys in the Shotstack dashboard.

Shotstack API credential in n8n with Environment set to Production and a green Connection tested successfully banner

Pick the same credential in Animate the product photo, Shotstack: build the ad and Wait for the finished ad.

7. Check Ad settings

Ad settings holds everything you would change between campaigns:

SettingAs publishedWhat it does
max_credits15The most one animation may cost. A product quoted above it is skipped.
products_per_run5How many new products one run makes
video_modelseedance-2.0-image-to-videoThe model that animates the photo, Seedance 2.0
motion_promptSlow cinematic push-in on the product…How the photo moves
clip_seconds6How long the animation is
voice_modelelevenlabs-turbo-v2.5The model that reads the voiceover
ctaShop nowThe words on the button

The Ad settings step with max_credits 15, products_per_run 5, video_model seedance-2.0-image-to-video, the motion prompt, clip_seconds 6, voice_model elevenlabs-turbo-v2.5 and cta Shop now

8. Run it

Click Execute at the bottom of the canvas. The products go through one at a time.

What you should see: one MP4 per product in your Drive folder, and the last four columns filled in on each row:

skustatusnotead_urlcredits
SKU-1001donehttps://drive.google.com/file/d/…/view11.3772
SKU-1002donehttps://drive.google.com/file/d/…/view11.3772

How the budget check works

Before each animation, Quote the animation asks Shotstack what it will cost. A quote is free and reserves nothing. Within budget? compares the quote with max_credits:

  • At or under the limit, the product is animated.
  • Over the limit, nothing is made. The row gets over budget and a note like Quoted 11.3772 credits, above the limit of 5 in Ad settings.

The quote depends on the model, the clip length and the resolution, not on the photo. With the template’s settings every product is quoted the same 11.3772 credits. Set max_credits just above the quote for the settings you use.

If you raise clip_seconds to 8, for example, the quote goes up to 15.17 and every product is skipped until you raise the limit too.

The Quote the animation step: Operation set to Quote Generation, the prompt and model taken from Ad settings, Model Options with startSrc, aspectRatio 9:16, resolution 720p and generateAudio false, and the clip length from Ad settings

Keep the voiceover shorter than the clip

The ad is as long as its longest part. When the voice runs past the 6-second clip, the picture stops and the ad carries on over black, with only the name, the price and the button on screen. This line for the weekender bag ran to 7.1 seconds:

Text
Packed for the weekend, built for years. The waxed canvas weekender, $145.

Two frames from the weekender bag ad: at 4.5 seconds the bag is on screen under its name and price; at 6.6 seconds the clip has ended and the name, price and Shop now button sit on black

The voice starts half a second in, so a 6-second clip leaves about 5.5 seconds of speech. Count the price as the words it takes to say it, not as one word. These two lines fit:

  • The default line, “White leather sneakers. Now just $120.”, ends at 3.7 seconds.
  • “A few drops every night. Our brightening face serum, just $34.” ends at 5.4 seconds.

For a longer line, raise clip_seconds and max_credits together.

Choose photos that animate well

  • A plain backdrop. The motion is a slow push-in, so the product fills more of the frame as the ad plays. A product on its own, on a plain background like the three here, keeps the whole shot on the product.
  • Space above the product. The name and the price sit in the top third of the frame. As the camera moves in, a tall product moves up behind them, like the dropper of the serum above.
  • Square photos are fine. All three photos in this guide were square. The model is asked for 9:16 and makes a vertical shot from them.

Spend less on each ad

The animation is almost all of the cost, and the resolution is the easiest saving. In Quote the animation and in Animate the product photo, open Model Options and change "resolution": "720p" to "resolution": "480p". Change both steps, so the quote is for the animation you get.

At 480p the quote is 5.63 credits instead of 11.38. The ad is still 720 x 1280, because Shotstack scales the clip up to fill the frame. On a phone the two are hard to tell apart:

The same frame of the sneakers ad made at 720p on the left and at 480p on the right, almost identical at this size

Close up, the 480p clip is softer. Stitching and fine texture blur first:

A close-up of the laces from the same two ads: sharp stitching at 720p on the left, softer stitching at 480p on the right

To use another image-to-video model, change video_model in Ad settings and check the model’s options in the AI model catalog. Models take different options, and Shotstack refuses an option a model doesn’t have: a model without aspectRatio fails the quote with “Unknown option”.

Make Model Options match the new model in both steps, and look at a quote before you run it on your catalog.

When a product fails

A product that fails doesn’t stop the run. Note what went wrong writes failed and the error message in its row, and the workflow moves on to the next product. The note is short, for example The generation failed. For the full reason, open Executions in n8n, open the run and click the red step.

Two things are worth checking before a run:

  • Every image_url opens as an image. The quote doesn’t open the photo, so a broken link gets through the budget check.
  • The three sheet steps have their values back (step 5). An error in a sheet step isn’t caught: the run stops there.

To make an ad again, clear the row’s status and note. The next run makes a new MP4 and saves it to the folder next to the old one, under the same name. The row links to the new file.

Make ads for a whole product catalog

The template is built to work through a catalog a few products at a time:

  • Every day at nine starts a run each morning once the workflow is on. Click Publish at the top right of the canvas to turn it on.
  • A few per run takes up to products_per_run new rows, 5 as published, and One product at a time makes them in order.
  • Only new rows are picked up. A row needs a photo and an empty status, so products you add to the sheet are made in the next run, and finished ones are never made twice.

At the template’s settings, five ads a day cost about 57 credits a day, plus the voices and renders. At 480p it’s about 28. To get through a large catalog faster, raise products_per_run, and the daily cost rises with it.

The same idea works outside n8n. Our guide to video automation with Make builds ads from a sheet of offers, and the Wan 3.0 guide animates product photos with a Python script. Our Google Sheets guide shows other ways to make a video for every row of a sheet: an Apps Script, a Python script or an AI assistant.

More n8n video workflows

Shotstack has more n8n workflows that you can use as they are:

  • n8n video automation: the main guide to the Shotstack node. Install it, make your first render and build a review form that turns customer quotes into testimonial videos.
  • Real estate videos with n8n: a row in Google Sheets becomes a narrated listing tour made from the listing’s photos, with an approval email for the agent.
  • Add subtitles to a video with n8n: drop a video into a Google Drive folder and get a copy with burned-in subtitles in your font and colors.
  • Faceless videos with n8n: paste a story and get a narrated Short with AI pictures, word-by-word captions and music.

Give every product in your sheet its own video ad

Install the node, add the template, make the sheet, connect Google and Shotstack, and put back the three sheet steps’ values. From then on, a product ad starts as a row: a photo, a name and a price.

The workflow quotes it, animates it, voices it and saves it to Drive, and the link is in the sheet the next morning.

Create a free Shotstack account to get your API key and starter credits, then open the product video ads template on n8n.

Frequently asked questions (FAQs)

Does it work on n8n Cloud?

Yes. The workflow saves the ads to Google Drive, not to the machine that runs n8n. On n8n Cloud you connect Google with a sign-in and don’t need to make an OAuth client.

Can I make ads from my Shopify products?

Yes. Export your products from Shopify as a CSV and copy the columns you need into the sheet. The export has an Image Src column with a direct link to each product’s image, which is what image_url needs. To make videos inside Shopify itself, see the Shotstack Shopify app.

Can the voiceover be in another language?

Yes. The voice model, ElevenLabs Turbo v2.5, covers 32 languages, so write the voiceover line in the language you want. Fill it in on every row: the line the workflow writes for an empty cell says “Now just” in English.

Can I choose a different voice?

The template doesn’t name a voice, so every ad uses the model’s default, Rachel. The model has 21 voices.

To pick one, open Shotstack: build the ad, find the "model" line of the audio clip, add a comma at the end of it, and add this line under it: "options": { "voice": "George" }. Use any of the voices on the model’s page.

Why is the credits column lower than what my account was charged?

The column holds the quote for the animation only. Each ad also has a voiceover, about 0.02 credits, and a render, which is charged by the length of the video. Your Shotstack dashboard shows the full usage.

Keep reading

Start free

  • Unlimited developer sandbox
  • No credit card required