Dualo
AI in Practice

Workflow Automation with AI (n8n, Zapier, Make + LLM)

Combine no-code orchestrators with LLM nodes to automate business processes — data entry, email triage, report generation — without writing an app.

2 min read

Modern iPaaS / workflow automation platforms are effectively low-code ETL + orchestration: event sources, transformation nodes, destination actions, stitched together with flow control. ** integration** became first-class in 2023-2024: dedicated nodes for OpenAI/Anthropic/Google, prompt templates, chat-memory state, tool-use wrappers.

Architecture choices per platform: Zapier — hosted multi-tenant, rate-limited, per-task pricing ($20-800/mo), strong-arm enterprise integrations (Salesforce, Slack, M365). Make (Integromat) — hosted, per-operation pricing, better branching + iterators + error handling than Zapier, pricing 3-5× cheaper. n8n — Apache 2.0 open source, self-host on a VPS or Docker, fair-use cloud, no per-task fees; custom JavaScript nodes; best for tech-capable teams needing control/data-residency.

State management: most workflows are stateless (each trigger independent). Stateful flows (human-in-the-loop, long-waiting approvals, multi-step agent-style) need: (a) workflow pause/resume primitives (Temporal, Inngest, Trigger.dev, n8n 'Wait' node), (b) state store (DB row keyed by correlation ID), (c) idempotency keys to survive retries.

**LLM integration patterns**: (i) **prompt-in-a-node** — fixed template with variable substitution; (ii) **tool-use** — LLM node calls back into other workflow steps as tools; (iii) ** inside workflow** — query a step + LLM step; (iv) **agent node** — higher-order, the LLM orchestrates other steps dynamically; (v) **structured output parsing** — LLM → JSON → downstream nodes use fields.

Error handling + observability: typical failures — API rate limits, LLM timeouts, schema drift on inputs, credentials expired. Pattern: retry with exponential backoff on transient errors, dead-letter queue for permanent failures, Slack/email alert on DLQ arrival, dashboards on error rate per workflow. n8n + Grafana, Zapier + built-in history + webhooks-to-observability.

Cost modelling: per-execution cost = orchestrator per-task fee + LLM per-token cost + external API costs. At 100k/mo executions with 2 LLM calls each, Zapier Pro ($49 for 2k tasks) is irrelevant — you need the Enterprise plan or a self-hosted alternative. Run the math before scaling.

**Security hardening**: (i) secrets in a vault (not inline), (ii) per-workflow service accounts with minimal scopes, (iii) audit logs for every workflow edit, (iv) network isolation (VPC) for self-hosted, (v) input validation — treat webhook payloads as untrusted, (vi) output sanitization before sending to external systems (prevent from LLM outputs reaching APIs with side effects).

When to graduate to code: when (a) latency needs are below 500ms, (b) workflows exceed ~15 steps with complex branching, (c) you need full test coverage and deploys via Git, (d) costs exceed engineering time to rebuild in code. Signals: 'we're debugging the Zapier UI for the 3rd time this week'.

Grounded on https://n8n.io/

Next up

Prompting vs RAG vs Fine-tuning — how to choose

Which technique fits your problem? A decision framework by use case, with real-world trade-offs (cost, complexity, freshness, control).