# E-commerce bestseller video generator with Algolia: n8n workflow

> Started by a clock, and works across Gmail. 21 steps, 4 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

Source: https://millionrounds.com/workflow/e-commerce-bestseller-video-generator-with-algolia (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [E-commerce](https://millionrounds.com/workflows?category=E-commerce#library)

# E-commerce bestseller video generator with Algolia

Started by a clock, and works across Gmail. 21 steps, 4 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fe-commerce-bestseller-video-generator-with-algolia)

**21 steps** Large: read it before trusting it with anything live

**4** Branches: places the flow splits

**2** Loops or waits

**1** Service it connects to

## The flow

Starts it 2 Logic 9 Service 10

The steps in the order they run, from what starts it.

- 1 **Every week on monday morning** Schedule trigger *Starts it*
- 2 **Test Trigger while building the workflow** Manual trigger *Starts it*
- 3 **Get weekly bestseller from Algolia** Http Request *Service*
- 4 **If no video for that product** If *Logic*
- 5 **Image URL is present** If *Logic*
- 6 **No Operation, do nothing** No Op *Logic*
- 7 **Check image availability** Http Request *Service*
- 8 **Tell admin that bestseller has no image** Gmail *Service*
- 9 **Image is present and valid** If *Logic*
- 10 **Tell admin that bestseller has broken image** Gmail *Service*
- 11 **Convert image to base64 for VEO 3** Extract From File *Service*
- 12 **Generate video with Google VEO 3** Http Request *Service*
- 13 **Wait for video generation** Wait *Logic*
- 14 **Checking if we're done** Http Request *Service*
- 15 **Finished?** If *Logic*
- 16 **Get video name and storage bucket** Set *Logic*
- 17 **Wait more** Wait *Logic*
- 18 **Aggregate** Aggregate *Logic*
- 19 **Downloading the MP4 file** Http Request *Service*
- 20 **Drop video in Supabase Bucket** Http Request *Service*
- 21 **Index in Algolia** Http Request *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 21, with 4 branches, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Gmail account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 21 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 21 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fe-commerce-bestseller-video-generator-with-algolia)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)

## Workflows like it

Also e-commerce, with the same services where possible, closest in size first.

- [**AI agent for transportation orders management with OpenAI** 21 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/ai-agent-for-transportation-orders-management-with-openai)
- [**AI-powered customer email support for e-commerce with Pinecone** 21 steps · calls a model · Gmail](https://millionrounds.com/workflow/ai-powered-customer-email-support-for-e-commerce-with-pineco)
- [**Monitor e-commerce price changes with Decodo Scraper** 21 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/monitor-e-commerce-price-changes-with-decodo-scraper)
- [**3D Product Video Generator from 2D Image for E-Commerce Stores** 20 steps · Gmail, Google Drive](https://millionrounds.com/workflow/3d-product-video-generator-from-2d-image-for-e-commerce-stor)
- [**Automate inventory reordering and vendor bill approvals** 20 steps · Gmail, Slack](https://millionrounds.com/workflow/automate-inventory-reordering-and-vendor-bill-approvals)
- [**Manage inventory reorders with Google Sheets and Slack** 22 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/manage-inventory-reorders-with-google-sheets-and-slack)
