❄️ Hướng dẫn tự động tạo video với Google Veo3 + n8n

Hướng dẫn chi tiết setup Google Veo3 với n8n automation để tự động tạo video AI chất lượng cao. Sử dụng Fal.ai để kết nối với Veo3 model, bạn có thể xây dựng quy trình tự động hóa video hoàn chỉnh từ tạo prompt đến xuất bản.
❄️ Hướng dẫn tự động tạo video với Google Veo3 + n8n
Photo by Kenny Eliason / Unsplash

Request Article Update

Loading form...

🚀 Giới thiệu về Google Veo3 và n8n automation

Google Veo3 là mô hình AI tạo video mới nhất và mạnh nhất từ Google, có khả năng tạo ra những video cực kỳ chân thực chỉ từ mô tả văn bản. Kết hợp với n8n (công cụ automation no-code), bạn có thể tự động hóa hoàn toàn quy trình tạo video từ A-Z.

Tại sao cần setup này?

Xu hướng viral hiện tại

  • Hàng chục triệu views với video được tạo bởi Veo3
  • Viral trên TikTok với nội dung AI

Ưu điểm của automation

  • Tiết kiệm thời gian: Tự động chạy 24/7 không cần can thiệp
  • Chi phí hợp lý: $6/video thay vì $200/tháng của Google
  • Chất lượng cao: Video 8 giây với độ chân thực ấn tượng
  • Scalable: Có thể tạo hàng trăm video mỗi ngày

🛠️ Những công cụ cần chuẩn bị

Danh sách tools bắt buộc

n8n (Workflow automation)

  • Miễn phí: Đăng ký trial tại đây
  • Chức năng: Orchestrate toàn bộ workflow
  • Ưu điểm: Visual interface, dễ sử dụng cho beginners

Fal.ai (API Gateway)

  • Vai trò: Kết nối với Google Veo3 model
  • Chi phí: $6 per 8-second video
  • Đăng ký: Tại fal.ai để lấy API key

Google Sheets (Logging)

  • Miễn phí: Sử dụng tài khoản Google
  • Mục đích: Track và lưu trữ videos đã tạo
  • Tích hợp: Kết nối trực tiếp với n8n

Tools tùy chọn (nâng cao)

  • OpenAI API: Để tạo prompts thông minh hơn
  • Social media APIs: Auto-publish lên các platforms
  • Cloud storage: Lưu trữ video dài hạn

📋 Template workflow miễn phí

Cấu trúc workflow gồm 3 phần chính

Part 1: Tạo prompt tự động

Schedule Trigger → Ideas AI Agent → Prompts AI Agent → Google Sheets Log

Part 2: Gọi Veo3 API

HTTP Request (POST) → Wait 10 minutes → HTTP Request (GET) → Extract Video URL

Part 3: Lưu trữ kết quả

Update Google Sheets → Mark as "Done" → Store Final Video URL

🔧 Hướng dẫn setup chi tiết Google Veo3 với n8n

Workflow bao gồm 10 nodes được kết nối theo trình tự logic để tạo ra một hệ thống tự động tạo video hoàn chỉnh.

Tự động hoá tạo video với google veo3 và n8n

Node 1: Schedule Trigger

Chức năng: Trigger quyết định khi nào workflow chạy. Có thể là theo lịch định sẵn, khi có sự kiện, hoặc khi được gọi từ bên ngoài.

Cấu hình từ JSON:

{
  "type": "n8n-nodes-base.scheduleTrigger",
  "parameters": {
    "rule": {
      "interval": [{}]
    }
  }
}

Hướng dẫn setup:

1️⃣ Kéo Schedule Trigger vào canvas

2️⃣ Cấu hình thời gian:

Thiết lập trigger

Node 2: OpenAI Chat Model

Chức năng: Cung cấp AI model cho các agents

Cấu hình từ JSON:

{
  "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
  "parameters": {
    "model": {
      "value": "gpt-4.1",
      "mode": "list"
    }
  }
}

Hướng dẫn setup:

  1. Model selection: GPT-4.1 (hoặc GPT-4o nếu có)
  2. Temperature: 0.7 (cho creativity cân bằng)
  3. Max tokens: 1000

Tạo OpenAI credential:

Credential Type: OpenAI
API Key: sk-xxxxxxxxxx (từ OpenAI Platform)

Node 3: Ideas AI Agent

Chức năng: Tạo ý tưởng video từ niche đã định

System Prompt

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
  • The Caption must: Be short, punchy, include one emoji, include exactly 12 hashtags
  • Set Status to "for production" (always)
  • The Environment must: Be under 20 words, match the action exactly

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",
"Status": "for production"
}
]

User Prompt

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

Tuỳ chỉnh ngách của bạn

Bạn là một {ROLE} chuyên nghiệp với {EXPERIENCE} kinh nghiệm.
Nhiệm vụ: Tạo ý tưởng {CONTENT_TYPE} viral cho {TARGET_AUDIENCE}.

Yêu cầu:
- Niche: {YOUR_NICHE}
- Platform: {PLATFORM}
- Style: {CONTENT_STYLE}
- Length: {VIDEO_LENGTH}

Output format: JSON với các fields:
- Title: Tiêu đề hấp dẫn
- Idea: Mô tả ý tưởng (max 15 từ)
- Hook: Câu mở đầu thu hút
- Hashtags: 10-15 hashtags trending
- Difficulty: 1-5 (độ khó thực hiện)

Nhập user prompt và system promt trong n8n

Node 4: Parser (JSON Structure)

Chức năng: Parse output từ Ideas AI Agent thành format chuẩn

Định dạng chuẩn cho output từ Ideas AI Agent

Node 5: Log the Idea (Google Sheets)

Chức năng: Lưu ý tưởng vào Google Sheets để tracking

Thiết lập tham số để lưu trữ trên google sheets

Setup Google Sheets:

  1. Tạo copy từ template sheet
  2. Columns cần có:
    • id: Auto-increment ID
    • idea: Video idea description
    • caption: Social media caption
    • production: Status tracking
    • environment_prompt: Scene description
    • final_output: Video URL (điền sau)

Credential setup:

Type: Google Sheets OAuth2
Scopes: https://www.googleapis.com/auth/spreadsheets
Lưu ý tưởng vào google sheet để theo dõi

Node 6: Prompts AI Agent

Chức năng: Chuyển đổi ý tưởng thành prompt cho Veo3

System Prompt cho Veo3:

SYSTEM PROMPT FOR GOOGLE VEO3 PROMPT AGENT

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.

REQUIRED STRUCTURE:
[Scene paragraph prompt here]

Main character: [description of character]
They say: [insert one line of dialogue, fits the scene and mood].
They [describe a physical action or subtle camera movement].
Time of Day: [day / night / dusk / etc.]
Lens: [describe lens]
Audio: (implied) [ambient sounds]
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, stock, and camera behavior.
  • Scene must feel real and cinematic
  • Always include the five key technical elements: Time of Day, Lens, Film Stock, Audio, and Background.

User Prompt

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

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

Node 7: Create Video (HTTP Request - POST)

Chức năng: Gửi request tạo video đến Fal.ai

Gửi request tạo video đến fal.ai

Cấu hình từ JSON:

{
  "method": "POST",
  "url": "https://queue.fal.run/fal-ai/veo3",
  "authentication": "genericCredentialType",
  "genericAuthType": "httpHeaderAuth",
  "sendBody": true,
  "contentType": "raw",
  "rawContentType": "application/json",
  "body": "={ \"prompt\": \"{{ $json.output }}\" }"
}

Setup Fal.ai Credential:

  1. Đăng ký tại fal.ai
  2. Lấy API key từ dashboard
Lấy API key của fal.ai tại tab API

Tạo credential trong n8n:

Type: Header Auth
Name: Authorization
Value: Key YOUR_FAL_AI_API_KEY

Request Body Structure:

{
"prompt": "A friendly Yeti wearing winter gear, enthusiastically waving at his camera while recording a selfie-style vlog in a snowy mountain landscape. He says 'Welcome back to my channel, fellow adventurers!' with genuine excitement. He adjusts his selfie stick to get a better angle. Time of Day: golden hour. Lens: wide-angle selfie camera with slight fisheye effect. Audio: (implied) mountain wind, snow crunching underfoot. Background: snow-covered peaks and pine trees stretching to the horizon."
}

Node 8: Wait for Veo3

Chức năng: Chờ Veo3 hoàn thành việc tạo video

Cấu hình thời gian hoàn thiện video

Cấu hình từ JSON:

{
  "type": "n8n-nodes-base.wait",
  "parameters": {
    "amount": 600
  }
}

Node 9: Get Video (HTTP Request - GET)

Chức năng: Lấy video đã tạo xong từ Fal.ai

Cấu hình từ JSON:

{
"url": "=https://queue.fal.run/fal-ai/veo3/requests/{{ $json.request_id }}",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
}

Request URL động:

https://queue.fal.run/fal-ai/veo3/requests/{{ $json.request_id }}

Giải thíchrequest_id lấy từ response của node "Create Video"

Node 10: Log Final Video (Google Sheets)

Chức năng: Cập nhật video URL vào Google Sheets

Cấu hình từ JSON:

{
"operation": "update",
"columns": {
"mappingMode": "defineBelow",
"value": {
"idea": "={{ $('Log the Idea').first().json.idea }}",
"production": "done",
"final_output": "={{ $json.video.url }}"
},
"matchingColumns": ["idea"]
}
}

Mapping fields:

  • idea: Reference từ node "Log the Idea"
  • production: Set thành "done"
  • final_output: Video URL từ Veo3 response
Video được tạo ra tự động trên n8n

Đăng ký thành viên để tải về file workflow bên dưới

Đọc toàn bộ câu chuyện

Đăng ký đăng ký ngay để đọc toàn bộ câu chuyện và truy cập tất cả bài viết trong chỉ dành cho người đăng ký.

Đăng ký
Đã có tài khoản? Đăng nhập

Promote Your Tool

Tận dụng sức mạnh AI – Làm việc thông minh hơn, nhanh hơn !

AI không còn là tương lai – nó đã ở đây! AIAppVn giúp bạn khám phá, đánh giá và trải nghiệm những ứng dụng AI hàng đầu, giúp tối ưu công việc và cuộc sống.

AIAppVn

Tuyệt vời! Bạn đã đăng ký thành công.

Chào mừng trở lại! Bạn đã đăng nhập thành công.

Bạn đã đăng ký thành công tại AIAppVn.

Thành công! Kiểm tra email của bạn để nhận liên kết đăng nhập.

Thành công! Thông tin thanh toán của bạn đã được cập nhật.

Thông tin thanh toán của bạn chưa được cập nhật.