Guide 02 — Automation

Đưa nhiệm vụ phức tạp →
AI chia nhỏ, hỏi đúng lúc, chạy an toàn

Write 1 câu: "Write 3 bài SEO, create photos, lên lịch đăng tuần sau" → AI tự chia thành ToDos, hỏi xác nhận khi cần, run in parallel, báo kết quả. Nếu fail → 3-tier fallback tự sửa.

26
Breakpoints an toàn
3
Tầng fallback / node
68+
Khối logic zero-mod
5
Trust tier bảo mật

500+ AI Models · Sign up for the API · GitHub · API Docs

Reality

Automation hiện tại — dễ gãy

💥
Domino failure
Zapier: 1 step fail → workflow dừng. n8n: retry 3 lần → fail → user tự sửa. Không có fallback chain thông minh.
🙈
AI tự chạy không hỏi
Automation AI hiện tại: nhận lệnh → chạy luôn. Sai data? Thiếu thông tin? Vẫn chạy. Rollback phức tạp.
🧱
Không hiểu multi-task
Hỏi "write articles + create photos + schedule" → AI chỉ làm 1 job, quên 2 việc còn lại. Không task decomposition.

Architecture

Pipeline 7 step — chia nhỏ mọi thứ, không bao giờ gãy

1
Classifier
Quick? Skill?
2
Planner
Multi-goal
3
HIL Slots
Hỏi khi thiếu
4
All
Pipeline brain
5
Executor
Middleware
6
Evidence
Proof-based
7
Learn
Feedback loop

Mỗi node có 3-tier fallback riêng → 1 node fail KHÔNG kéo sập pipeline.

Phân loại

1 LLM call = Quick Reply hay Skill Execution

Quick Reply
Câu hỏi đơn giản, chat, không cần tool. ~500 tokens. Chiếm 60-70% requests → tiết kiệm massive.
🎯
Skill Execution
Need tools, take action, multi-step. Enter the full pipeline: Planner → Slots → ToDos → Execute → Evidence.

Manage

ToDos System — bộ não quản lý tiến trình

AI tự chia task phức tạp → ToDo list tự động. Dependency graph, parallel execution, progress real-time, resumable.

User: "Write 3 bài SEO, tạo thumbnail, Schedule posting 2-4-6"
✅ TODO #1  Viết bài SEO "Nutrition" — 25s
✅ TODO #2  Viết bài SEO "Protein" — 22s
🔄 TODO #3  Viết bài SEO "Vitamin" — đang chạy…
⏳ TODO #4  Create 3 thumbnail DALL-E — chờ #1-3
⏳ TODO #5  Publish bài #1 → Thứ 2 — chờ #4
⏳ TODO #6  Publish bài #2 → Thứ 4
⏳ TODO #7  Publish bài #3 → Thứ 6
Progress: 2/7 done │ ETA: ~15 phút │ Resumable

Confirm

HIL — AI Ask when missing, không hỏi bừa

Hỏi 1 lượt gom hết thông tin → user trả lời 1 lần → AI chạy. Không hỏi linh tinh giữa chừng.

🎰
Slot Gathering
Thiếu keyword, tone, độ dài? AI hỏi 1 lượt tất cả — không hỏi từng cái.
⚖️
Trust Gate
Action Trust Tier 3-5? AI hỏi xác nhận rõ ràng: "Đăng bài Facebook lúc 8h sáng?"
🛑
Ambiguity
Mơ hồ, nhiều cách hiểu? AI clarify: "Phân tích SEO hay traffic?" → user chọn → chạy.

Trust Tier chi tiết: Hệ Sinh Thái Plugin →

Fallback

3 tầng fallback — tự sửa, không bao giờ crash

Tier 1
Retry + Exponential Backoff
API timeout → đợi 2s → retry → đợi 4s → retry. Handle 80% transient errors.
Tier 2
Alternative Method
GPT-4 fail → fallback Claude → fallback Gemini. LLM re-verify mapping slots từ context.
Tier 3
Graceful Degrade
Không tạo được ảnh? → Trả mô tả text + suggest Unsplash. Skip + continue — pipeline KHÔNG dừng.

Minh bạch

Evidence-Based — AI chứng minh đã chạy đúng

📋
Execution Log
Input, output, latency, model, tokens consumed
Proof Artifact
Bài viết, URL ảnh, screenshot — bằng chứng cụ thể
📊
Quality Score
0-100 tự chấm — dưới threshold → auto-retry
🔄
Audit Trail
Classify → plan → execute → evidence — end-to-end

Real-life example

Pipeline xử lý 3 script phổ biến

📝 Content Factory — Blog dinh dưỡng
"Write 5 bài SEO dinh dưỡng, mỗi bài 2000 from, tạo thumbnail, lên lịch đăng mỗi ngày tuần tới"
Chia: 5 bài × (write + SEO check + thumbnail + schedule) = 20 All
HIL: Hỏi keywords, tone → user trả lời 1 time
Chạy: Parallel viết → DALL-E thumbnails → Schedule posts
Fallback: DALL-E fail → Stable Diffusion → Text placeholder
🛒 E-commerce Campaign — WooCommerce
"Create 3 sản phẩm mới, viết mô tả, set giá, tạo coupon 20%, gửi email blast"
Chia: 3 product + mô tả + pricing + coupon + email = 9 All
HIL (Trust T3-T4): "Xác nhận tạo 3 product [preview]. Gửi email 500 subscribers?"
Chạy: Sản phẩm → Coupon → Email blast
Evidence: Product links + coupon code + email delivery report
📊 Research & Report — Agency
"Analysis 5 competitor, so sánh SEO, tạo báo cáo PDF cho client"
Chia: 5 phân tích + comparison + PDF = 7 All
HIL: "5 competitor nào? URL?"
Chạy: Parallel fetch 5 → Analyze → Compare → PDF
Evidence: SEO scores + comparison chart + PDF link

Compare

BizCity Pipeline vs Zapier, n8n, Make, AutoGPT

BizCityZapiern8nMakeAutoGPT
Multi-goal decompose✅ Auto❌ Manual❌ Manual❌ ManualPoor
ToDos System✅ Track
HIL smart batch
3-tier fallback✅ /nodeRetryRetryRetryCrash
26 breakpoints
Evidence score✅ 0-100
Learning loop
Multi-LLM✅ 500+GPT only
Self-hosted✅ WPCloudSelf/CloudCloudLocal

Automation không nên gãy
Automation nên tự sửa

26 breakpoints, 3-tier fallback, evidence-based, learning loop. Pipeline mạnh mẽ nhất trên WordPress.

Marketplace · 500+ AI Models · Sign up for the API · API Docs · Twin AI · Hệ sinh thái Plugin

💬