Auto Marketing — Multi-Agent Architecture với n8n
Bài 11/21Thực hành

Bài 11 — Google OAuth2: Sheets, Docs, Drive một lần

Cấu hình OAuth consent screen, scopes, credentials — n8n Cloud managed OAuth vs custom.

30 min
Mục tiêu bài học
  • Hiểu scopes: spreadsheets, documents, drive.file
  • Kết nối 3 node Google trên n8n Cloud
  • Tạo folder Marketing trên Drive làm root
Managed OAuth2 trên n8n Cloud — Connect my account
Khóa học: dùng managed OAuth trước; custom OAuth khi self-host productiondocs.n8n.io
Google Cloud Console — chọn project khi custom OAuth
Self-host: tạo OAuth Client ID, redirect URI = n8n callback URLdocs.n8n.io

Cấu trúc Google Workspace cho Auto Marketing

Google Drive/
  Marketing/
    Products/          ← ảnh/video sản phẩm (SKU-xxx.jpg)
    Raw-Media/         ← video dọc chưa edit
    Published/         ← archive bài đã đăng

Google Sheets: Auto Marketing Hub
  Tab Products | Posts | Metrics | Commands | AgentLog

Google Docs: Drafts/
  [SKU-001] Facebook caption draft
  [SKU-001] Campaign brief

Scopes cần bật (custom OAuth)

  • https://www.googleapis.com/auth/spreadsheets — Sheets read/write
  • https://www.googleapis.com/auth/documents — Docs create/edit
  • https://www.googleapis.com/auth/drive.file — Drive file do app tạo

Bài tập

  1. OAuth Google trên n8n Cloud (managed)
  2. Tạo folder Drive Marketing/Products
  3. Tạo Sheet Auto Marketing Hub với 5 tab
  4. Test Append 1 dòng Products

Tiếp tục lộ trình

Hoàn thành từng bài thực hành để xây hệ Auto Marketing Multi-Agent của riêng bạn.

Bài 11 — Google OAuth2: Sheets, Docs, Drive một lần — Auto Marketing — Multi-Agent Architecture với n8n | Sage Marketing