Posted On December 8, 2025

Free Viral AI Video Automation Workflow (N8N + Veo3)

Anmol Chitransh 0 comments
Free Viral AI Video Automation Workflow (N8N + Veo3)

Imagine, You wake up Monday morning, open your Google Drive, and find 10 brand-new, professionally shot videos waiting for you.

You didnโ€™t film anything.

You didnโ€™t edit anything.

Even you didnโ€™t click a button over the weekend.

video generated by Veo3 automatically with this workflow

This isnโ€™t science fiction, Broโ€ฆ I built this exact system last month, and itโ€™s been generating cinematic AI videos while I sleep.

Today, Iโ€™m walking you through every single step so you can build your own viral AI video automation workflow, completely free.

By the end of this guide, youโ€™ll have a system that:

  • Generates creative video ideas automatically
  • Writes perfect prompts for AI video generation
  • Creates professional-looking videos
  • Organizes everything in Google Sheets and Drive
  • Runs on its own schedule without your involvement

Letโ€™s get started.

What Youโ€™re Actually Building

Before we jump into settings and buttons, hereโ€™s what this automation does:

Viral AI Automation Workflow (N8N + Veo3)
Viral AI Automation Workflow (N8N + Veo3)

The automated workflow runs in three stages:

  1. Idea Generation: An AI agent brainstorms viral video concepts based on your chosen theme
  2. Video Production: Google Veo 3 generates cinematic footage from detailed prompts
  3. Organization: Everything gets saved to Google Drive and tracked in Google Sheets

The entire process runs on a schedule you set. Daily, weekly, or custom intervals, your choice. Once itโ€™s live, you wake up to fresh videos without touching anything.

Phase 1: Setting Up n8n for Automation

n8n is the brain that connects everything. Think of it as a visual flowchart where each box performs one action, and you connect them to create an automated workflow.

Choosing Your n8n Setup

You have two options:

Option 1: n8n Cloud (Recommended for Beginners)

  • Go to n8n.io and create a free account
  • You get 5,000 workflow executions per month
  • Everything runs in your browser
  • No technical setup required

Option 2: Self-Hosted (For Advanced Users)

  • Install n8n on your own computer or server
  • Unlimited executions
  • Requires technical knowledge
  • Better control and customization

Start with n8n Cloud. You can always migrate to self-hosted later if you need more power.

Creating Your First Workflow

After logging into n8n, click New Workflow in the top right corner.

Youโ€™ll see a blank canvas with a plus (+) button in the center. This is your workflow builder.

Viral AI Automation Workflow (N8N + Veo3)
Viral AI Automation Workflow (N8N + Veo3)

Every workflow needs a trigger, something that starts the automation. After the trigger, you add nodes (individual actions) that execute in sequence.

Phase 3: Building the Complete Automation

Now we build the actual system. Iโ€™ll walk you through every single node.

Part A: Setting Up Idea Generation

This section creates video concepts automatically.

Node 1: Schedule Trigger

Click the + button on your canvas.

Search for Schedule Trigger and select it.

Screenshot 2025 12 07 at 11.11.57 PM
Viral AI Automation Workflow (N8N + Veo3)

Configure these settings:

  • Trigger Interval: Hours
  • Hours Between Triggers: 24

This makes your workflow run once every 24 hours. You can adjust this to 12 hours, 48 hours, or whatever frequency you want.

Node 2: Ideas AI Agent

Click the + button after your Schedule Trigger.

Search for AI Agent and add it.

Configuration:

Name it โ€œIdeas AI Agentโ€ (just for your reference).

Model Selection:

  • Choose Google Gemini from the dropdown
  • Click Create New Credential

Getting Your Gemini API Key:

  1. Go to Google AI Studio
  2. Click Create API Key
  3. Copy the key
  4. Paste it into n8n
  5. Save the credential
Screenshot 2025 12 07 at 11.13.41 PM
Viral AI Automation Workflow (N8N + Veo3)

User Message (paste this exactly):

Give me an idea about a Yeti speaking to a camera and doing a vlog through his selfie stick.

You can replace โ€œYeti vloggingโ€ with any topic:

  • โ€œA time traveler documenting historical momentsโ€
  • โ€œA chef showcasing Indian street food across different citiesโ€
  • โ€œAn alien conducting interviews with humans about Earthโ€

System Message (paste this exactly):

You are an AI designed to generate 1 immersive, realistic idea based on a user-provided topic. Your output must be formatted as a JSON array (single line) and follow all the rules below exactly.

RULES:
Only return 1 idea at a time.
The Idea must be under 13 words.
Describe an interesting and viral-worthy moment, action, or event related to the provided topic.
Can be as surreal as you want, doesn't have to be real-world.
Must involve a character.

The Caption must be:
Short, punchy, and viral-friendly.
Include one relevant emoji.
Include exactly 12 hashtags in this order: 4 topic-relevant hashtags, 4 all-time most popular hashtags, 4 currently trending hashtags.
All hashtags must be lowercase.

Set Status to "for production" (always).

The Environment must be under 20 words and match the action in the Idea exactly.
Clearly describe where the event is happening, key visuals or background details, main participants, and style of scene.

OUTPUT FORMAT (single-line JSON array):
[
{
"Caption": "Short viral title with emoji #hashtags",
"Idea": "Short idea under 13 words",
"Environment": "Brief vivid setting under 20 words matching the action",
"Status": "for production"
}
]

This instructs Gemini to output structured data in JSON format, making it easy for n8n to process.

Node 3: Think Tool

Screenshot 2025 12 07 at 11.14.50 PM
Viral AI Automation Workflow (N8N + Veo3)

Click the + after your Ideas AI Agent.

Search for Think and add it.

Connect it to your Ideas AI Agent by selecting the agent in the dropdown.

The Think Tool lets the AI reason through complex prompts before responding. Itโ€™s like giving your AI time to consider different angles before committing to an answer.

No additional configuration needed here.

Node 4: Google Sheets for Tracking

Before adding this node in n8n, create the actual spreadsheet.

Creating Your Tracking Sheet:

Screenshot 2025 12 07 at 11.15.35 PM
Viral AI Automation Workflow (N8N + Veo3)
  1. Go to Google Sheets
  2. Click Blank to create a new spreadsheet
  3. Name it โ€œVeo 3 Video Trackerโ€
  4. Add these column headers in Row 1:
    • A1: Caption
    • B1: Idea
    • C1: Environment
    • D1: Status
    • E1: Prompt
    • F1: Video Link

Save the sheet and keep it open in another tab.

Adding the Google Sheets Node:

Back in n8n, click the + after your Think Tool.

Configuration:

Search for Google Sheets and add it.

Screenshot 2025 12 07 at 7.08.21 PM
Viral AI Automation Workflow (N8N + Veo3)
  • Authentication: Click to add Google Sheets credentials (youโ€™ll authenticate with your Google account)
  • Resource: Sheet Row
  • Operation: Append
  • Document: Click and select โ€œVeo 3 Video Trackerโ€
  • Sheet: Select โ€œSheet1โ€

Column Mapping:

Now map the AI output to your spreadsheet columns:

  • Caption: Click the field, then click Expression and enter {{ $json.Caption }}
  • Idea: {{ $json.Idea }}
  • Environment: {{ $json.Environment }}
  • Status: {{ $json.Status }}
  • Prompt: Leave empty for now
  • Video Link: Leave empty for now

This saves every generated idea directly to your tracking sheet.

Test Your Progress:

Click Execute Workflow at the bottom of n8n.

Watch each node light up green as it executes. After a few seconds, check your Google Sheet. You should see a new row with an idea, caption, environment, and status.

If it worked, congratulations! The first part of your automation is live.

Part B: Creating Detailed Video Prompts

Ideas alone wonโ€™t generate great videos. Veo 3 needs detailed, cinematic prompts with specific technical elements.

Node 5: Prompts AI Agent

Click the + after your Google Sheets node.

Add another AI Agent node.

Name this one โ€œPrompts AI Agentโ€ (for your reference).

User Message (paste exactly):

Give me a Veo3 prompt for this idea: {{ $json.Idea }}

This is the environment: {{ $json.Environment }}

Those {{ }} brackets pull data from the previous node. It takes the idea and environment your first AI agent created and asks for a detailed prompt.

System Message (paste exactly):

You are an AI agent that writes hyper-realistic, cinematic video prompts for Google VEO3. Each prompt should describe a short, vivid selfie-style video clip featuring one unnamed character speaking or acting in a specific moment. The final video should look like found footage or documentary-style filmโ€”grounded, realistic, and immersive.

REQUIRED STRUCTURE:
[Scene paragraph prompt here]
Main character: [description of character]. They say: [insert one line of dialogue that fits the scene and mood]. They [describe a physical action or subtle camera movement, e.g. pans the camera, shifts position, glances around]. Time of Day: [day/night/dusk/etc.]. Lens: [describe lens]. Audio: (implied) [ambient sounds, e.g. wind, distant traffic, birdsong]. Background: [brief restatement of what is visible behind them].

RULES FOR PROMPT GENERATION:
Single paragraph only, 750-1500 characters. No line breaks or headings.
Only one human character. Never give them a name.
Include one spoken line of dialogue and describe how it's delivered.
Character must do something physical, even if subtle.
Use selfie-style framing. Always describe the lens and camera behavior.
Scene must feel real and cinematic.
Always include: Time of Day, Lens, Audio, and Background.

DO NOT:
Name the character.
Include more than one character.
Use special characters.
Describe subtitles or on-screen text.
Break the paragraph or use formatting.
Write vague or abstract scenesโ€”always keep them grounded in physical detail.

Connect this agent to the same Google Gemini credentials you used earlier.

Node 6: Think Tool (Again)

Add another Think Tool after your Prompts AI Agent.

Connect it to the Prompts AI Agent.

This lets the second AI agent reason through the prompt creation before finalizing it.

Now you have two AI agents working in tandem: one generates ideas, the other transforms them into production-ready prompts.

Part C: Generating Videos with Veo 3

This is the most technical section, but Iโ€™ll guide you through every detail.

Node 7: Getting Your Google Cloud API Details

Go back to Vertex AI Studio where you tested Veo 3.

Screenshot 2025 12 07 at 11.17.45 PM
Viral AI Automation Workflow (N8N + Veo3)

In the Generate Video interface, look for a button labeled Get Code. Click it.

A panel appears with critical information. Copy these values somewhere safe:

  • Project ID: Something like my-project-12345
  • Location: Probably us-central1
  • Model: veo-3

Getting Your Access Token:

Still in Google Cloud Console, look for the Activate Cloud Shell button (it looks like a terminal icon >_). Click it.

A terminal opens at the bottom of your screen. Copy and paste this command, then press Enter:

gcloud auth print-access-token

Youโ€™ll receive a long string of random characters. Copy this entire string, this is your access token.

Important note: Access tokens expire after 1 hour. For testing, this works fine. For production use, youโ€™ll want to set up a service account with a permanent key (Iโ€™ll cover this in troubleshooting).

Node 8: HTTP Request to Start Video Generation

Back in n8n, click the + after your Prompts AI Agent Think Tool.

Search for HTTP Request and add it.

Configuration:

Method: POST

URL: You need to construct the URL using your specific project details. Replace YOUR_PROJECT_ID and YOUR_LOCATION with the actual values you copied earlier.

The URL format should be: https:// followed by YOUR_LOCATION, thenaiplatform.googleapis.com/v1/projects/, then YOUR_PROJECT_ID, then /locations/, then YOUR_LOCATION again, then /publishers/google/models/veo-3:generateContent

For example, if your project ID is โ€œmy-project-12345โ€ and your location is โ€œus-central1โ€, your complete URL would look like:

https://us-central1-aiplatform.googleapis.com/v1/projects/my-project-12345/locations/us-central1/publishers/google/models/veo-3:generateContent

Just replace those example values with your actual project ID and location.

Authentication: Choose Generic Credential Type

  • Click Add Credential
  • Credential Type: Header Auth
  • Name: Authorization
  • Value: Bearer YOUR_ACCESS_TOKEN (replace YOUR_ACCESS_TOKEN with the token you copied earlier)
  • Save the credential

Send Body: Toggle this ON

Body Content Type: JSON

JSON Body (paste exactly):

{
  "contents": [{
    "role": "user",
    "parts": [{"text": "{{ $json.output }}"}]
  }]
}

This sends your AI-generated prompt to Veo 3 and initiates video generation.

Node 9: Wait for Video Processing

Veo 3 needs time to generate your video. If you try to fetch it immediately, it wonโ€™t be ready.

Click the + after your HTTP Request.

Search for Wait and add it.

Configuration:

  • Resume After: Amount of Time
  • Wait: 60 seconds

This pauses your workflow for one minute while Veo processes your request.

Node 10: Fetch the Generated Video

After waiting, you need to retrieve the completed video.

Add another HTTP Request node after the Wait node.

Configuration:

Method: GET

URL: This time, youโ€™re checking if your video is ready. Use the job ID from the previous HTTP Request. In the URL field, click on the expression editor and enter the following to pull the job ID automatically:

Double curly braces, then type: $node[โ€œHTTP Requestโ€].json[โ€œnameโ€], then close with double curly braces.

This automatically pulls the job ID from the first HTTP Request node.

Authentication: Use the same Bearer token credential you created earlier.

When this executes, Veo returns your video as a Base64-encoded string (a text representation of the video file).

This automatically pulls the job ID from the first HTTP Request node.

Node 11: Decode Base64 to MP4

Screenshot 2025 12 07 at 11.19.05 PM
Viral AI Automation Workflow (N8N + Veo3)

You need to convert that Base64 string back into a real video file.

Click the + after your second HTTP Request.

Search for Code and add it.

Select JavaScript as the language.

Paste this code exactly:

const base64Data = items[0].json.content[0].videoData;
const binaryData = Buffer.from(base64Data, 'base64');

return [{
  json: {
    fileName: `${items[0].json.Idea}.mp4`
  },
  binary: {
    data: {
      data: binaryData.toString('base64'),
      mimeType: 'video/mp4',
      fileName: `${items[0].json.Idea}.mp4`
    }
  }
}];

This converts the encoded text back into a downloadable MP4 file.

Part D: Storage and Organization

Your video is generated. Now you need to save it and track it.

Node 12: Upload to Google Drive

Click the + after your Code node.

Search for Google Drive and add it.

Configuration:

  • Authentication: Add Google Drive credentials (authenticate with your Google account)
  • Resource: File
  • Operation: Upload
  • File Name: In the expression field, type double curly braces, then $json.Idea, then .mp4, and close with double curly braces. This names the file using your video idea.
  • Parent Folder: Click to select or create a folder called โ€œAI Generated Videosโ€
  • Binary Property: data

This uploads your video to Google Drive and generates a shareable link.

Node 13: Update Your Tracking Sheet with Video Link

You need to add the video link back to your original Google Sheet.

Add another Google Sheets node after Google Drive.

Configuration:

  • Operation: Update
  • Document: Select โ€œVeo 3 Video Trackerโ€
  • Sheet: Sheet1
  • Column to Match On: Idea
  • Value to Match: Click the expression editor and enter the reference to pull the Idea field from your data
  • Prompt: Click the expression editor and reference the output from your Prompts AI Agent node
  • Video Link: Click the expression editor and reference the webViewLink from your Google Drive node

This finds the row with the matching idea and updates it with the prompt and video link.

Your Complete Workflow Overview

Letโ€™s visualize what you just built:

StepNodeWhat It Does
1Schedule TriggerFires once per day or on your custom schedule
2Ideas AI AgentGenerates a viral video concept
3Think ToolLets AI reason through the idea
4Google SheetsSaves the idea to your tracking sheet
5Prompts AI AgentCreates a detailed Veo 3 prompt
6Think ToolLets AI refine the prompt
7HTTP RequestSends prompt to Veo 3
8WaitGives Veo 60 seconds to generate
9HTTP RequestFetches the completed video
10CodeConverts Base64 to MP4
11Google DriveUploads video and gets shareable link
12Google SheetsUpdates tracking sheet with video link

Every 24 hours (or whatever interval you set), this entire process runs automatically without you touching anything.

Adjusting Your Schedule

Change the Schedule Trigger settings:

  • Every 12 hours: For 2 videos daily
  • Every 3 days: For weekly content batches
  • Specific times: Set exact days and hours for scheduled generation

Common Issues and Quick Fixes

โ€œAccess token expiredโ€ error: Your token lasted one hour. Generate a new one from Cloud Shell and update the HTTP Request nodes.

โ€œVideo generation failedโ€ error: Veo rejected your prompt. Check for prohibited content or overly complex descriptions. Simplify your prompt.

Google Sheets isnโ€™t updating: Make sure your sheet exists before running the workflow. Check that column names match exactly (case-sensitive).

Video wonโ€™t play after download: The Base64 decoding failed. Double-check the Code node JavaScript for typos.

The Shortcut: Import the Ready-Made Workflow

Hereโ€™s the thing: everything I just showed you works perfectly, but I know some of you are thinking โ€œthatโ€™s a lot of steps.โ€ I get it.

Thatโ€™s why Iโ€™ve created a ready-to-import workflow file that includes the entire automation pre-built. You can literally skip all the node configuration and have this running in under 10 minutes.

How to use the pre-built workflow:

  1. Download the n8n JSON workflow file
  2. Open your n8n dashboard
  3. Click the three dots menu (โ‹ฏ) in the top right
  4. Select Import from File
  5. Choose the downloaded JSON file
  6. Click Import

The entire workflow appears on your canvas with all nodes connected correctly. You just need to:

  • Add your Google Gemini API key
  • Add your Google Sheets credentials
  • Add your Google Drive credentials
  • Update the HTTP Request nodes with your Google Cloud Project ID, Location, and Access Token
  • Select your tracking spreadsheet

Thatโ€™s it.

Test it once by clicking Execute Workflow, verify it works, then activate the Schedule Trigger. Your automation is live.

This is especially helpful if youโ€™re new to n8n and feeling overwhelmed by all the configuration options.

What Youโ€™ve Accomplished

You just built a production-level automation system that companies charge thousands of rupees to create.

You have a workflow that generates creative ideas, writes professional prompts, creates cinematic videos, and organizes everything automatically.

The system runs on its own schedule. You could leave it running for a month and come back to 30 professionally shot videos waiting in your Drive, all tracked in a clean spreadsheet.

This same pattern works for any AI automation. Replace Veo with image generators, swap Gemini for different AI models, connect to social media APIs for automatic posting.

Youโ€™ve learned the fundamental structure of AI automation.

You may also like:

Anmol Chitransh

Anmol Chitransh

Anmol Chitransh is a seasoned digital marketing strategist and AI expert with over 7 years of experience in building performance-driven campaigns and content ecosystems. He is the founder of SamurrAI, a platform dedicated to decoding the impact of artificial intelligence across marketing, finance, education, and everyday life. Known for turning complex tech into actionable insights, Anmolโ€™s writing blends strategic depth with clarity, helping professionals, creators, and businesses harness AI to stay ahead of the curve.

More Posts - Website

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

ChatGPT Go Plan at โ‚น399 โ€“ Plus Features, Limits & Comparison

If youโ€™ve been using ChatGPTโ€™s free version, you already know the pain, limited messages, cappedโ€ฆ

5 Perplexity Comet AI Agents Youโ€™ll Wish You Knew Sooner

Remember when AI tools were just fancy search engines that gave you better answers? Thoseโ€ฆ

10 Best Free AI Tools for Small Business Social Media Management in 2025

Feeling Burnt Out by Social Media? This Is for You. Letโ€™s be real, if youโ€ฆ