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


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 briefScopes 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
- OAuth Google trên n8n Cloud (managed)
- Tạo folder Drive Marketing/Products
- Tạo Sheet Auto Marketing Hub với 5 tab
- 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.