Bài 13/21Thực hành
Bài 13 — Google Docs bản thảo + Drive upload media
Tool create_google_doc và upload_to_drive — nối ảnh/video Telegram vào kho doanh nghiệp.
28 min
Mục tiêu bài học
- Tạo Google Doc từ template caption qua Docs node
- Upload binary Telegram → Drive folder Products/
- Ghi doc_url + drive_url vào Sheet Posts
wf-create-doc — tạo bản thảo bài đăng
- Input: product_id, platform, caption_draft, hashtags[]
- Google Docs → Create document title: [SKU] Platform Draft
- Insert text: caption + hashtags + CTA + link sản phẩm
- Return doc_url → Update Sheet Posts.doc_url, agent_status=doc_created
wf-upload-drive — lưu media từ Telegram
[Input: file_id, product_id, mime_type]
→ [Telegram: Get File — binary]
→ [Google Drive: Upload]
Name: {product_id}.{ext}
Parent folder: Marketing/Products/
→ [Return drive_url, webViewLink]
→ [Sheets Update Posts.drive_media_url]Bài tập capstone Bước 3
- Gửi /product kèm ảnh → Drive có file + Sheet có drive_url
- Gửi /draft → Google Doc tạo + link trong Telegram reply
- Kiểm tra 3 tab Sheet/Docs/Drive đồng bộ cùng product_id
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.