Skip to content

Week 2 — Daily Async: n8n Depth

Setiap hari: 1 bacaan utama, 10-25 menit


📅 Senin — Recap: Trigger, Action, dan Alur Data di n8n

Durasi: 15 menit

Bacaan

Quick recap konsep dasar n8n:

  • Trigger = pintu masuk workflow. Tanpa trigger, workflow ga jalan.
  • Action = apa yang dilakukan workflow. Bisa 1, bisa banyak.
  • Data flow = data mengalir dari trigger → action 1 → action 2 → ...

Key insight: Setiap node menerima data dari node sebelumnya, memproses, dan mengirim ke node berikutnya. Format data = JSON.

Task

  • [ ] Review workflow yang sudah kamu bikin
  • [ ] Identifikasi: mana trigger, mana action, bagaimana data mengalir

📅 Selasa — Routing Pattern + Use Case Library Mapping

Durasi: 20 menit

Bacaan

Routing pattern dari Anthropic: classify first, handle second.

Daripada satu node handle semua kasus, lebih baik:

  1. Classify input (Switch/If node)
  2. Route ke handler yang sesuai
  3. Setiap handler optimized untuk kasusnya

n8n nodes untuk routing:

  • If node → 2 branch (true/false)
  • Switch node → multi-branch (3+ categories)
  • Merge node → gabung kembali kalau perlu

Task

  • [ ] Mapping use case kamu: butuh routing ga? Berapa branch?
  • [ ] Sketch routing flow di paper sebelum build

📅 Rabu — Webhook, API, External Data Source

Durasi: 20 menit

Bacaan

Webhook = cara sistem lain "mengetuk pintu" n8n.

Webhook vs Polling:

MetodeCara KerjaReal-time?Cost
WebhookSistem lain push data ke n8nYaRendah
Pollingn8n check berkalaTidakLebih tinggi

Best practice: Pakai webhook kalau bisa. Polling hanya kalau sistem tidak support webhook.

API Integration tips:

  1. Selalu cek API docs dulu
  2. Test dengan curl/Postman sebelum build di n8n
  3. Handle error response (401, 429, 500)
  4. Rate limiting awareness

Task

  • [ ] Cek apakah tools yang kamu pakai support webhook
  • [ ] Test 1 API call dengan HTTP Request node

📅 Kamis — Code Node, Expressions, Sub-Workflow, Error Handling

Durasi: 25 menit

Bacaan

Code Node memungkinkan JavaScript di dalam workflow. Berguna untuk:

  • Transformasi data yang complex
  • Array operations (filter, map, sort)
  • Custom logic yang ga bisa di visual node

Sub-Workflows = workflow di dalam workflow. Berguna untuk:

  • Reusable logic (DRY principle)
  • Modular design
  • Memecah complex workflow jadi manageable parts

Error Handling Checklist:

  • [ ] Retry di API nodes (3x, 1s gap)
  • [ ] Error workflow terhubung
  • [ ] Fallback path untuk critical nodes
  • [ ] Logging aktif

Task

  • [ ] Coba Code Node sederhana (format data atau calculate)
  • [ ] Tambah error handling ke workflow kamu

📅 Jumat — Brief Mini Project + Template Starter

Durasi: 10 menit

Checklist Readiness

  • [ ] Workflow kamu punya trigger + routing + output
  • [ ] External integration connected (Sheets/WhatsApp/Email)
  • [ ] Error handling di minimal 1 node
  • [ ] Kamu bisa jelaskan alur data dari awal sampai akhir

Kalau Stuck

  • Routing bingung? Start dengan If node (2 branch), baru upgrade ke Switch
  • API connection fail? Check credential + API docs
  • Code Node error? Check browser console untuk detail error

Preview Mini Project (Sesi 5)

Senin depan kita build mini project end-to-end. Prepare:

  • [ ] Pilih 1 dari 4 project options (atau propose sendiri)
  • [ ] Sketch flow di paper
  • [ ] Pastikan semua credentials ready

Bootcamp AI Automation — akala.id