Quick overview
This workflow collects a video topic via an n8n form, uses Groq to generate a short-form video idea and Veo 3 prompt, logs the content to Google Sheets, generates the video through Vertex AI (Veo 3), uploads it to Google Drive, and writes the Drive URL to the sheet.
How it works
- Receives a submission from an n8n form with a topic, desired vibe, and target audience.
- Uses Groq (llama-3.3-70b-versatile) to generate a structured video concept (caption, idea, environment, status) and then expands it into a detailed cinematic prompt for Google Veo 3.
- Appends the generated idea, caption, environment, status, and prompt to a Google Sheets content log.
- Submits the prompt to Google Veo 3 via the Vertex AI REST API and polls the long-running operation until the generation reports it is done.
- If the Veo 3 response returns an API error, waits and retries the full generation up to five times before stopping.
- Converts the returned base64 video into an MP4 file, uploads it to Google Drive, and updates Google Sheets with the Drive webViewLink matched by the prompt.
Setup
- Add Groq API credential and select it in the Groq Chat Model used by the idea and prompt generation steps.
- Create a Google Sheet with columns like
Idea, Captions, Environment, Status, Prompt, and Video URL, then replace YOUR_GOOGLE_SHEET_ID and set the target sheet name.
- Add a Google Service Account credential with Vertex AI access, enable the Veo API in your GCP project, and replace
YOUR_GCP_PROJECT_ID in both Vertex AI HTTP request URLs.
- Add a Google Drive OAuth2 credential and replace
YOUR_DRIVE_FOLDER_ID with the folder where the generated MP4s should be uploaded.
- Publish the n8n form (or use the test URL) and share it with users who should be able to submit video requests.