Workflow Automation & n8n AI Orchestration Expert (2026 Edition)
English | Bahasa Indonesia
<a name="english"></a>
English
Orchestration & Integration
- Upstream Triggers & Schedules:
cron-scheduler-expert, async-queue-temporal-expert, event-driven-architect
- AI Agent & LLM Nodes:
ai-llm-integration-expert, mcp-server-architect, chatbot-messaging-expert
- Communications & Billing:
email-notification-expert, payment-gateway-expert, doku-payment-gateway
- Security & Secrets:
zero-trust-secret-vault, rate-limit-abuse-prevention, anti-slop
- Lifecycle & Governance:
zero-to-prod-orchestrator, session-memory-manager
Description
Production engineering guide for self-hosted workflow automation using n8n (v1.60+), Zapier, and Make. Covers building fault-tolerant automation pipelines, custom TypeScript nodes, webhook triggers with HMAC SHA-256 signature verification, AI Agent nodes integrating Model Context Protocol (MCP) tools, sub-workflow error triggers, and high-volume queuing via n8n Queue Mode (Redis + BullMQ).
Trigger Conditions
- Designing event-driven automations between SaaS tools (Slack, Discord, HubSpot, Notion, Stripe).
- Deploying self-hosted n8n in Docker or Kubernetes for data privacy compliance (GDPR/HIPAA).
- Creating AI-powered workflow pipelines with LangChain/n8n AI Agent nodes.
- Handling secure webhook ingestion with cryptographic signature validation.
Production n8n Webhook HMAC Signature Validation (TypeScript / Code Node)
// n8n Code Node (JavaScript/TypeScript runtime)
// Validates incoming HMAC signature from DOKU or Stripe before executing downstream nodes
import crypto from 'node:crypto';
const items = $input.all();
const rawBody = $json.body;
const signatureHeader = $json.headers['x-signature'] || $json.headers['x-hub-signature-256'];
const secretKey = $env.WEBHOOK_HMAC_SECRET;
if (!signatureHeader || !secretKey) {
throw new Error('[n8n-Security] Missing signature header or HMAC secret.');
}
const computedSignature = crypto
.createHmac('sha256', secretKey)
.update(typeof rawBody === 'string' ? rawBody : JSON.stringify(rawBody))
.digest('hex');
// Timing-safe equality check to prevent side-channel timing attacks
const isValid = crypto.timingSafeEqual(
Buffer.from(computedSignature, 'utf8'),
Buffer.from(signatureHeader.replace('sha256=', ''), 'utf8')
);
if (!isValid) {
throw new Error('[n8n-Security] Invalid HMAC signature. Unauthorized webhook invocation.');
}
return items.map(item => ({
json: {
...item.json,
verified: true,
processedAt: new Date().toISOString()
}
}));
Self-Hosted n8n Queue Mode Topology (Docker Compose)
# docker-compose.n8n.yml
services:
n8n-main:
image: n8nio/n8n:latest
environment:
- N8N_ENCRYPTION_KEY=${N8N_ENCRYPTION_KEY}
- EXECUTIONS_MODE=queue
- QUEUE_BULL_REDIS_HOST=redis
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_DATABASE=n8n
- DB_POSTGRESDB_USER=n8n
- DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD}
ports:
- "5678:5678"
n8n-worker:
image: n8nio/n8n:latest
command: /bin/sh -c "n8n worker"
environment:
- N8N_ENCRYPTION_KEY=${N8N_ENCRYPTION_KEY}
- EXECUTIONS_MODE=queue
- QUEUE_BULL_REDIS_HOST=redis
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_DATABASE=n8n
- DB_POSTGRESDB_USER=n8n
- DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD}
deploy:
replicas: 2
<a name="bahasa-indonesia"></a>
Bahasa Indonesia
Integrasi Orkestrasi
- Pemicu & Penjadwalan Hulu:
cron-scheduler-expert, async-queue-temporal-expert, event-driven-architect
- Node AI Agent & LLM:
ai-llm-integration-expert, mcp-server-architect, chatbot-messaging-expert
- Komunikasi & Penagihan:
email-notification-expert, payment-gateway-expert, doku-payment-gateway
- Keamanan & Rahasia:
zero-trust-secret-vault, rate-limit-abuse-prevention, anti-slop
- Siklus Hidup & Tata Kelola:
zero-to-prod-orchestrator, session-memory-manager
Deskripsi
Panduan rekayasa produksi untuk otomatisasi alur kerja (workflow automation) menggunakan n8n (v1.60+ self-hosted), Zapier, dan Make. Mencakup perancangan pipeline yang tahan gangguan, pembuatan custom node berbasis TypeScript, validasi tanda tangan kriptografis HMAC pada pemicu webhook, node AI Agent yang terhubung ke tool MCP, serta penskalaan pemrosesan beban tinggi melalui mode antrean n8n (Redis + BullMQ).
Kondisi Pemicu
- Merancang alur otomatisasi antar layanan (Slack, Discord, Google Sheets, Notion, Stripe).
- Menjalankan n8n self-hosted di Docker/Kubernetes demi mematuhi regulasi privasi data lokal.
- Membuat alur kerja cerdas yang memproses dokumen otomatis menggunakan model LLM (Claude, Gemini, GPT).
- Memproses data webhook eksternal secara aman dengan validasi HMAC SHA-256.
Pola Penanganan Error dengan Alur Khusus (Error Trigger Workflow)
Dalam n8n produksi, selalu pasang alur kerja penanganan kesalahan (Error Workflow) terpisah:
- Hubungkan pengaturan workflow ke
Error Trigger.
- Tangkap detail node yang gagal, pesan error, dan waktu kejadian.
- Kirim notifikasi darurat secara instan ke kanal Slack/Telegram tim teknis.