Quick Overview
This workflow collects video requests via an n8n Form, validates and rewrites briefs with EmpirioLabs AI, queues jobs in an n8n Data Table, renders videos with EmpirioLabs AI, then saves finished files to Google Drive and emails the result (or follow-up questions and failures) via Gmail.
How it works
- Receives a new request from the n8n Form or runs every five minutes on a schedule.
- Ensures an n8n Data Table queue exists and loads shared settings like the Google Drive folder URL, render limits, and timeouts.
- For form submissions, uses EmpirioLabs AI (chat) to decide whether the brief is clear and either generates a short production prompt and title or produces a clarification question.
- Queues clear requests in the Data Table, or sends the requester an email via Gmail asking for the missing details.
- On scheduled runs, checks “rendering” items by fetching job status from EmpirioLabs AI and classifies each as completed, still running, or failed/timeout.
- For completed jobs, downloads the video from EmpirioLabs AI, uploads it to Google Drive, updates the queue row as delivered, and emails the Google Drive link to the requester via Gmail.
- For failed starts, failed renders, or failed downloads, increments an attempt counter and either re-queues the request or marks it as failed and emails the requester after the maximum attempts.
- Starts new renders for the oldest queued requests (up to the per-run limit) by submitting prompts to the EmpirioLabs AI video model and recording the returned job ID.
Setup
- Install the EmpirioLabs AI community node (n8n-nodes-empiriolabs) and add an EmpirioLabs AI API key credential.
- Add Google credentials for Gmail (sending) and Google Drive (uploading).
- Create a Google Drive folder for finished videos and replace the drive folder URL in the workflow settings with your folder link.
- In the EmpirioLabs AI nodes, select a chat model that supports JSON output for brief checking and a video generation model for rendering.
- Activate the workflow and share the n8n Form URL from the “Video request form” trigger with your requesters.