🎯 Mục tiêu bài Quiz
Kiểm tra kiến thức của bạn qua các câu hỏi trắc nghiệm và bài tập thực hành!
✅ 18 câu hỏi trắc nghiệm (6 phần)
✅ 3 bài tập thực hành
✅ Yêu cầu: Hoàn thành bài 1-12
Thời gian: 30 phút | Độ khó: Tổng hợp | Đạt yêu cầu: ≥ 13/18 câu đúng
Phần 1: Email & Calendar Automation
Phần 2: Slack & Communication Automation
Phần 3: Google Sheets & Notion Integration
Phần 4: Task & Project Management Automation
Phần 5: Meeting & File Automation
Phần 6: Multi-step Workflows & Monitoring
📝 Bài tập thực hành
Bài tập 1: Workflow tự động quản lý Email & Lịch họp
Tình huống: Thiết kế một n8n workflow tự động xử lý email đến: phân loại email thành 3 nhóm (cuộc họp, công việc, thông tin), tự động tạo sự kiện Google Calendar cho email cuộc họp, tạo Trello card cho email công việc, và lưu tóm tắt email thông tin vào Google Sheets.
1## Email Classifier & Auto-Action Workflow2 3### Tổng quan:4Gmail Trigger → Code Node (Classify)5→ Switch Node → 3 nhánh:6 - Meeting → Google Calendar7 - Task → Trello8 - Info → Google Sheets9 10### Chi tiết workflow:11 12NODE 1 — Gmail Trigger:13- Trigger: Mỗi khi có email mới14- Filter: Inbox (bỏ qua Spam/Promotions)15- Output: subject, body, from, date, labels16 17NODE 2 — Code Node (Email Classifier):18- Logic phân loại dựa trên keywords:19 const subject = $json.subject.toLowerCase();20 const body = $json.body.toLowerCase();21 22 if (subject.includes('meeting') ||23 subject.includes('họp') ||24 subject.includes('calendar invite') ||25 body.includes('zoom.us') ||26 body.includes('meet.google.com')) {27 return { category: 'meeting', ...items };28 }29 if (subject.includes('task') ||30 subject.includes('deadline') ||31 subject.includes('yêu cầu') ||32 subject.includes('cần làm')) {33 return { category: 'task', ...items };34 }35 return { category: 'info', ...items };36 37NODE 3 — Switch Node:38- Field: {{ $json.category }}39- Case 'meeting' → Nhánh Calendar40- Case 'task' → Nhánh Trello41- Case 'info' → Nhánh Sheets42 43NODE 4A — Set Node (Parse Meeting Info):44- Trích xuất: ngày, giờ, tiêu đề cuộc họp45- Tên: {{ $json.subject }}46- Start: parse từ email body (regex date pattern)47- Duration: mặc định 60 phút48- Attendees: {{ $json.from }}49 50NODE 5A — Google Calendar Node:51- Operation: Create Event52- Calendar: Work Calendar53- Summary: {{ $json.meetingTitle }}54- Start/End: từ Set Node55- Description: Email body + link gốc56- Attendees: email người gửi57 58NODE 4B — Trello Node (Task branch):59- Operation: Create Card60- Board: "Work Tasks"61- List: "To Do"62- Name: {{ $json.subject }}63- Description: {{ $json.body }} + "\n\nFrom: "64 + {{ $json.from }}65- Due Date: {{ $now.plus(3, 'days').toISO() }}66 67NODE 4C — Google Sheets Node (Info branch):68- Operation: Append Row69- Sheet: "Email Summary Log"70- Columns: Date | From | Subject | Summary71- Summary: {{ $json.body.substring(0, 200) }}72 73NODE 6 — Slack Node (cuối mỗi nhánh):74- Gửi notification: "📧 Email phân loại:75 [{{ $json.category }}] {{ $json.subject }}"76- Channel: #email-digest77 78### Error Handling:79- Mỗi nhánh bật Continue On Fail80- Error Workflow gửi Slack khi classify sai81- Retry On Fail cho Google Calendar/Trello: 2 lầnBài tập 2: Hệ thống báo cáo tự động đa kênh
Tình huống: Tạo workflow tổng hợp dữ liệu từ Google Sheets (doanh thu), Trello (tiến độ dự án), và Gmail (số email chưa xử lý), sau đó tạo báo cáo tuần tự động gửi qua Slack, lưu vào Notion, và gửi email PDF cho quản lý.
1## Weekly Multi-Channel Report Workflow2 3### Tổng quan:4Cron Trigger (Thứ 2, 9:00 AM)5→ Song song: Sheets + Trello + Gmail (lấy dữ liệu)6→ Merge Node → Code Node (tổng hợp)7→ Song song: Slack + Notion + Email PDF8 9### Chi tiết workflow:10 11NODE 1 — Cron Trigger:12- Schedule: Mỗi thứ 2 lúc 9:00 AM13- Timezone: Asia/Ho_Chi_Minh14 15NODE 2A — Google Sheets Node (Doanh thu):16- Operation: Get All Rows17- Sheet: "Revenue 2026"18- Filter: Dữ liệu 7 ngày gần nhất19- Output: daily_revenue, total_orders, avg_order_value20 21NODE 2B — Trello Node (Tiến độ):22- Operation: Get Cards23- Board: "Project Board"24- Output: total cards, done, in progress, overdue25 26NODE 2C — Gmail Node (Email):27- Operation: Get All28- Filter: is:unread29- Output: unread_count, oldest_unread_date30 31NODE 3 — Merge Node:32- Mode: Merge by Position33- Gộp dữ liệu từ 3 nguồn thành 1 object34 35NODE 4 — Code Node (Report Generator):36- Tính toán KPIs:37 + Tổng doanh thu tuần38 + So sánh % với tuần trước39 + Số task hoàn thành / tổng task40 + Completion rate %41 + Email chưa xử lý42- Format báo cáo dạng structured object43 44NODE 5A — Slack Node:45- Channel: #weekly-report46- Message (Block Kit):47 "📊 BÁO CÁO TUẦN {{ $now.format('DD/MM/YYYY') }}48 💰 Doanh thu: {{ $json.totalRevenue }}đ49 ({{ $json.revenueGrowth }}% so tuần trước)50 📋 Tasks: {{ $json.tasksDone }}/{{ $json.totalTasks }}51 hoàn thành ({{ $json.completionRate }}%)52 📧 Email chờ xử lý: {{ $json.unreadEmails }}"53 54NODE 5B — Notion Node:55- Operation: Create Page56- Database: "Weekly Reports"57- Properties:58 + Title: "Báo cáo tuần {{ $json.weekNumber }}"59 + Date: {{ $now }}60 + Revenue: {{ $json.totalRevenue }}61 + Status: {{ $json.completionRate > 8062 ? 'On Track' : 'Behind' }}63- Content: Full report markdown64 65NODE 5C — HTML to PDF → Gmail Node:66- HTML template: Báo cáo chuyên nghiệp67 (logo, bảng KPIs, biểu đồ, kết luận)68- HTTP Request → PDF service69- Gmail Node: Gửi email đến quản lý70 + Subject: "[Báo cáo tuần] {{ $json.weekRange }}"71 + Attachment: report.pdf72 + To: manager@company.com73 74### Error Handling:75- Mỗi source node bật Continue On Fail76- IF Node kiểm tra: nếu source fail → ghi chú77 "Dữ liệu không khả dụng" trong báo cáo78- Error Workflow → Slack #alerts nếu workflow fail79- Retry On Fail: 3 lần cho mỗi API callBài tập 3: Workflow onboarding nhân viên đa nền tảng
Tình huống: Thiết kế hệ thống onboarding tự động gồm Main Workflow và Sub-workflows: nhận thông tin nhân viên mới qua form (Webhook), tự động tạo tài khoản trên các nền tảng (Slack, Trello, Notion), gửi welcome email kèm tài liệu, và thông báo cho team. Triển khai error handling và monitoring hoàn chỉnh.
1## Employee Onboarding Automation System2 3### Kiến trúc tổng quan:4Main Workflow (Webhook - nhận form)5 → Sub-WF 1: Account Setup (Slack, Trello)6 → Sub-WF 2: Knowledge Base (Notion)7 → Sub-WF 3: Welcome Package (Email, Drive)8 → Sub-WF 4: Team Notification (Slack, Calendar)9Error Workflow → Alert & Rollback10 11### MAIN WORKFLOW — Onboarding Orchestrator:12 13NODE 1 — Webhook Trigger:14- Method: POST15- Path: /onboarding/new-employee16- Authentication: Header Auth (API key)17- Input: { name, email, department, role,18 startDate, managerId }19- Response: Immediately (return onboarding ID)20 21NODE 2 — Set Node (Validate & Enrich):22- Validate: email format, required fields23- Generate: onboardingId = UUID24- Add: timestamp, status = "in_progress"25- Lookup: manager info từ Google Sheets26 27NODE 3 — Google Sheets Node (Log Start):28- Append row: onboardingId | name | email |29 department | startDate | status: "started"30 31NODE 4 — Execute Workflow (Account Setup):32- Sub-WF: "Onboarding - Account Setup"33- Input: name, email, department, role34- Wait for completion35- Output: { slackUserId, trelloBoardId }36 37NODE 5 — Execute Workflow (Knowledge Base):38- Sub-WF: "Onboarding - Notion Setup"39- Input: name, email, department, role,40 slackUserId (từ Node 4)41- Output: { notionPageUrl, wikiLinks }42 43NODE 6 — Execute Workflow (Welcome Package):44- Sub-WF: "Onboarding - Welcome Email"45- Input: name, email, notionPageUrl, wikiLinks,46 startDate, managerName47- Output: { emailSent, driveFolder }48 49NODE 7 — Execute Workflow (Team Notification):50- Sub-WF: "Onboarding - Notify Team"51- Input: name, role, department, startDate,52 slackUserId, managerSlackId53- Output: { notificationsSent }54 55NODE 8 — Google Sheets Node (Log Complete):56- Update row: status = "completed"57- Add: completedAt, allAccountLinks58 59### SUB-WORKFLOW 1 — Account Setup:60 61NODE A1 — Execute Workflow Trigger62NODE A2 — Slack Node (Invite User):63- Operation: Invite to Workspace64- Email: {{ $json.email }}65- Channels: #general, #{{ $json.department }}66 67NODE A3 — Trello Node (Create Board):68- Board: "Onboarding - {{ $json.name }}"69- Template: "Onboarding Checklist"70- Lists: Week 1, Week 2, Week 3, Week 471- Pre-populated cards: IT setup, HR docs,72 team intro, training schedule73 74NODE A4 — Set Output:75- slackUserId, trelloBoardUrl76 77### SUB-WORKFLOW 2 — Notion Setup:78 79NODE B1 — Execute Workflow Trigger80NODE B2 — Notion Node (Create Employee Page):81- Database: "Team Directory"82- Properties: Name, Email, Department, Role,83 Start Date, Slack ID84- Content: Welcome message template,85 links to wiki, team docs86 87NODE B3 — Notion Node (Create Personal Wiki):88- Parent: Employee Page89- Template: Onboarding wiki (company culture,90 tools guide, FAQ, contacts)91 92NODE B4 — Set Output:93- notionPageUrl, personalWikiUrl94 95### SUB-WORKFLOW 3 — Welcome Package:96 97NODE C1 — Execute Workflow Trigger98NODE C2 — Google Drive Node (Create Folder):99- Folder: "Employees/{{ $json.name }}"100- Subfolders: Documents, Projects, Training101 102NODE C3 — Google Drive Node (Copy Templates):103- Copy: Employee handbook, NDA, IT policy104- To: Employee folder105 106NODE C4 — Gmail Node (Welcome Email):107- To: {{ $json.email }}108- Subject: "Chào mừng {{ $json.name }} đến với109 công ty! 🎉"110- HTML template: Welcome message, links111 (Slack, Trello board, Notion wiki, Drive folder),112 first week schedule, manager contact113- CC: {{ $json.managerEmail }}114 115### SUB-WORKFLOW 4 — Team Notification:116 117NODE D1 — Execute Workflow Trigger118NODE D2 — Slack Node (Team Announcement):119- Channel: #{{ $json.department }}120- Message: "👋 Chào mừng {{ $json.name }} gia nhập121 team {{ $json.department }} với vai trò122 {{ $json.role }}!123 📅 Ngày bắt đầu: {{ $json.startDate }}124 Hãy chào đón thành viên mới nhé!"125 126NODE D3 — Google Calendar Node:127- Create Event: "Welcome {{ $json.name }}"128- Date: {{ $json.startDate }} 10:00 AM129- Duration: 30 phút130- Attendees: team members + manager131- Description: "Team introduction meeting"132 133### ERROR WORKFLOW:134 135NODE E1 — Error Trigger136NODE E2 — IF Node (Check which sub-WF failed):137- Account Setup fail → rollback Slack invite138- Notion fail → log, continue (non-critical)139- Email fail → retry 3 times, then alert140- Notification fail → log only141 142NODE E3 — Slack Alert:143- Channel: #hr-alerts144- Message: "⚠️ Onboarding FAILED145 Employee: {{ $json.employeeName }}146 Step: {{ $json.failedWorkflow }}147 Error: {{ $json.errorMessage }}148 Action Required: Manual intervention"149 150NODE E4 — Google Sheets (Error Log):151- Log: onboardingId | failedStep | error |152 timestamp | resolved: false153 154### Monitoring Dashboard:155- Google Sheets "Onboarding Tracker":156 Tổng onboarding | Success rate | Avg time157 | Failed steps trending158- Cron Trigger (daily) → check incomplete159 onboardings > 24h → alert HR team📊 Đánh giá kết quả
| Số câu đúng | Đánh giá |
|---|---|
| 16-18 | 🌟 Xuất sắc! Bạn nắm vững n8n cho Năng suất Công việc |
| 13-15 | 👍 Tốt! Cần ôn lại một số chủ đề |
| 9-12 | 📚 Cần học thêm, xem lại các bài |
| < 9 | 🔄 Nên học lại từ đầu |
🎓 Hoàn thành khóa học!
🎉 Tuyệt vời! Bạn đã hoàn thành toàn bộ khóa học n8n cho Năng suất Công việc!
Tiếp theo: Hãy áp dụng các workflow vào công việc hàng ngày và khám phá thêm các khóa học n8n nâng cao!
Bạn đã hoàn thành khóa học n8n cho Năng suất Công việc!
Kỹ năng bạn đã thành thạo:
- 📧 Email Automation: Gmail/Outlook tự động phân loại, auto-reply, email parsing
- 📅 Calendar Management: Google Calendar tự động tạo sự kiện, meeting reminders
- 💬 Slack & Teams: Gửi thông báo, quản lý channel, bot notification tự động
- 📊 Google Sheets & Airtable: Đọc/ghi dữ liệu, đồng bộ, báo cáo tự động
- 📝 Notion Integration: Tạo page, database queries, quản lý nội dung
- ✅ Task Management: Tích hợp Trello/Asana/Monday, tạo task tự động, cập nhật trạng thái
- 🎥 Meeting Automation: Zoom/Google Meet, meeting notes, trích xuất action items
- 📁 File Management: Google Drive, Dropbox, xử lý file, tạo PDF tự động
- 🔗 Multi-step Workflows: Chuỗi dịch vụ, conditional logic, automation phức tạp
- 📡 Monitoring & Alerts: Uptime checks, hệ thống thông báo, reporting dashboards
Next steps:
- Áp dụng workflow automation vào quy trình làm việc thực tế hàng ngày
- Kết hợp n8n với AI (OpenAI, Claude) để nâng cao năng suất
- Xây dựng hệ thống monitoring và reporting cho team
- Khám phá use cases nâng cao: CRM automation, data pipeline, onboarding tự động
