Classic workflow tools (iPaaS, RPA, BPM) automate fixed rule-based steps but break on unstructured input: free-text emails, varied documents, ambiguous requests. Adding LLM nodes to a visual workflow engine closes that gap: the model reads, classifies, extracts and drafts, while the engine supplies triggers, connectors, retries, permissions and logging. Typical result: many routine "someone reads a message and clicks in three systems" tasks become straight-through processes within weeks.
Problem & value
- Today: SMBs and departments glue systems together by hand (copy-paste between mail, Excel, ERP, CRM). Rule-based automations exist but only cover structured, predictable cases; everything with free text stays manual.
- AI value: LLM nodes handle the "fuzzy" steps (intent classification, field extraction, summaries, reply drafts, routing decisions), so the same engine now covers the long tail of processes. Low-code builders let process owners, not only developers, assemble flows.
- Evidence level: vendor case studies report large time savings, but figures are self-reported and vary widely; measure your own baseline before committing. Anthropic's engineering guidance on agents recommends starting with simple, deterministic workflows and adding autonomy only where it measurably helps [5] -- which matches the practical sweet spot of this use case.
Variants
- Deterministic workflow with LLM steps: fixed graph, LLM only classifies/extracts/drafts (most robust, recommended default).
- Agentic node inside a workflow: an agent node chooses among tools (search, CRM lookup, create ticket) within guard rails.
- Event-driven department automation: finance (invoice intake, AGENT-004/DOC-001), HR (onboarding, AGENT-009), IT (AGENT-016), sales ops (AGENT-011).
- Public sector: self-hosted engine in a government cloud, human sign-off for every decision affecting citizens (see AGENT-026).
- Private/power user: self-hosted n8n or Home Assistant style automations for household admin (see AGENT-019).
How it works
- trigger (mail / webhook / form / schedule / ERP event)
- pre-processing (parse, OCR, strip PII, fetch context via connectors/RAG)
- LLM step(s): classify
- extract (JSON schema)
- decide route
- draft
- validation (schema check, business rules, thresholds, allow-lists)
- action via connector (create/update record, send mail, book, notify)
- human approval gate on risky or low-confidence cases
- logging (inputs, prompts, outputs, decision, user) + error queue & retry
- Engine: executes the graph, handles credentials, retries, rate limits, queues and versioning.
- LLM node: called with structured output (JSON schema) so downstream nodes are deterministic. Small/cheap models for routing and classification, larger models for extraction and drafting.
- Tool use / MCP: modern engines can expose workflows as tools to agents and call external tools via the Model Context Protocol, so one agent can trigger vetted workflows instead of free-form actions [6].
- Human-in-the-loop: approval steps (Slack/Teams/mail/form) before irreversible actions (payments, external mail to customers, deletions); confidence thresholds route doubtful items to a review queue.
Data preparation
Workflow automation touches whatever the process touches: forms and mails as triggers, master data in ERP/CRM, documents in DMS or file shares, and often Excel lists maintained by hand. Typical gaps are processes that exist only as habits, inconsistent spellings in master data, Excel files with merged cells and free-text columns, scanned paperwork, missing API access to legacy systems and shared accounts instead of named service users. Often the real work is not the AI step but making the data machine-readable and reachable.
Concrete steps: (1) document the process as-is with 20-30 real examples including exceptions; (2) find the real data sources, including shadow Excel files (PREP-003); (3) get data out of ERP and SaaS via exports, APIs or connectors (PREP-005); (4) turn spreadsheets into tidy tables (PREP-011); (5) define the JSON schema the LLM step must return and business rules for validation; (6) create dedicated service accounts with least privilege. Tools: n8n or Power Automate, a database or Google/Excel tables, OCR where needed, Paperless-ngx for documents. Small automations and data preparation are often the biggest part of the project; plan for 40-60% of effort here. Check readiness with GUIDE-003.
Implementation paths
Which path for whom
- SMB: C. n8n (or similar) runs on a small server (HW2), keeps data in-house, and one platform serves many small automations (Baukasten effect); licence-based SaaS automation gets expensive with growing runs.
- Enterprise: B. An established platform (Power Automate, internal integration layer) is typically already in place, so call managed LLM APIs from it and keep governance central.
- Developer: C. Self-hosted engines with open-weight models give full control over versions, credentials and logs.
- Public sector: C. Self-hosted engine in a government or sovereign cloud, with human sign-off for decisions affecting citizens.
Path A -- Buy (off-the-shelf)
- Microsoft Power Automate + Copilot Studio (agent flows, AI Builder, computer use for UI steps) for Microsoft 365 shops; check tenant EU Data Boundary and Copilot data settings [2].
- n8n Cloud (n8n GmbH, Berlin -- EU vendor, EU-hosted cloud available), Make (Celonis, Prague-based -- EU), Zapier (US), Workato, Tray.ai, UiPath and Automation Anywhere (RPA vendors adding agentic features), Camunda (Berlin -- EU, BPMN orchestration with AI agent support) [3], Activepieces (open core).
- Choose A when: the process lives mostly in SaaS tools with ready connectors, no strict on-prem requirement, and a business user will maintain the flows.
Path B -- Build on cloud APIs
- Use the engine from Path A as orchestrator and call model APIs with EU processing: Mistral (EU), Azure OpenAI in EU Data Zone/regions, Anthropic Claude and Google Gemini via Bedrock/Vertex EU regions, Aleph Alpha/IONOS/STACKIT hosted models (EU).
- Use structured outputs, a small-model router, prompt caching and per-flow token budgets.
- Add code nodes or custom services for logic that does not belong in a visual graph; keep prompts and schemas in version control.
- Choose B when: you need custom logic, better model quality or EU-only model hosting without running GPUs.
Path C -- Self-host (open source)
- Engines: n8n self-hosted (fair-code Sustainable Use License, not OSI open source -- check terms for embedding/resale) [1], Activepieces (MIT core), Windmill, Apache Airflow/Kestra for data-centric flows, Temporal or Camunda 8 for durable orchestration; agent frameworks LangGraph, Pydantic AI, CrewAI where code is preferred.
- Models: open-weight LLMs via vLLM or Ollama -- e.g. Mistral Small/Medium class, Qwen3, Llama, gpt-oss, Gemma -- plus Docling or PaddleOCR for documents; guardrail filters (e.g. Llama Guard, Presidio for PII).
- Hardware: HW2 (one 24-32 GB GPU) runs a ~20-30B quantised model for classification/extraction at departmental volume; engine itself needs only a small VM with PostgreSQL and a queue.
- Ops effort: patching, secrets management, backups, monitoring, model updates.
Path D -- Custom training
Rarely needed. Fine-tune a small classifier or routing model (BERT-class or 3-8B LLM) only when volume is high and labelled history (thousands of correctly routed items) exists; cost savings or latency are the usual reasons.
State of the art (2026)
- Convergence: workflow engines, RPA and BPM vendors all ship agent nodes, MCP client/server support and evaluation features; the boundary to AGENT-003 (computer use) and AGENT-013 (multi-agent) is blurring [2][3][6].
- Reliable patterns: schema-constrained outputs, small-model routing, deterministic graph with narrow agent steps, retrieval for context, idempotent actions, dead-letter queues.
- Limits and failure modes: hallucinated fields, silent drift after model updates, prompt injection via incoming mail or documents (OWASP LLM01) [4], over-broad credentials ("excessive agency", OWASP LLM06) [4], non-idempotent retries creating duplicates, cost blow-ups from loops, and "shadow automation" built by business users without review.
- Mitigations: least-privilege service accounts per workflow, allow-listed actions, treat all external text as untrusted data, regression test sets run on every prompt/model change, spend limits, and observability (see AGENT-025).
Shared resources & combinations
- Same stack (workflow-automation + llm-general + guardrails): AGENT-001 email triage, AGENT-004 order entry, AGENT-009 onboarding, AGENT-016 ITSM, AGENT-021 data migration -- one engine and one model gateway serve all of them.
- Document intake: DOC-001 invoices, DOC-008 mailroom classification supply the extraction step.
- Upgrade paths: AGENT-003 when a system has no API, AGENT-013 when several specialised agents must cooperate, AGENT-025 for governance and monitoring of the growing flow fleet.
- Hardware: HW2 server shared with other self-hosted LLM use cases.
Effort, cost & KPIs
- Path A: days to weeks per flow; licence per user, task or execution; LLM calls often metered extra.
- Path B: 2-6 weeks per process incl. testing; API cost per run is usually cents or less, dominated by document size.
- Path C: 1-3 months for platform setup, then days per flow; GPU server plus ops time.
- KPIs: straight-through rate, exception rate, cycle time, error/rework rate, cost per run, human minutes saved, incident count (wrong actions), model-change regression pass rate.
People & change
Start with the process owner (department lead) and the employees who do the work today: they know the exceptions and must agree on which steps may be automated. Management sets the rule on budget and which tools are approved (GUIDE-007). IT provides the engine, credentials and monitoring; IT security reviews connectors and secrets; data owners release access to ERP and file shares. The DPO is involved whenever flows touch personal data (HR, customers), with an AVV for each processor and a DPIA check if people are evaluated.
Works council: depends. A pure back-office flow on supplier or product data usually does not monitor staff, but any engine that logs who triggered or approved what is objectively suited to monitor performance, which triggers co-determination under §87(1) no. 6 BetrVG; §90(1) no. 3 requires timely information when work processes are planned with AI. Inform the council early and use GUIDE-004. Public sector: Personalrat.
Pick one painful, low-risk process as the pilot with 2-3 users (GUIDE-009). Typical concerns: loss of control, "who is responsible when it errs" and job fears. Answer with approval gates for irreversible actions, an error queue visible to staff, and a clear message that freed-up time goes to higher-value work. Support AI literacy through short hands-on training for the pilot group (GUIDE-006, GUIDE-008).
Risks, regulation & compliance
- EU AI Act: typically minimal risk (no Annex III use) with the AI literacy duty (Art. 4) for staff building and using flows [7]. It becomes high-risk if a flow supports decisions in Annex III areas (recruiting/CV ranking, creditworthiness, benefit eligibility, worker evaluation) -- then Art. 9-15 and deployer duties apply, and human oversight must be real. Flows that talk to people (chat, voice) need transparency under Art. 50. Art. 5 prohibitions (e.g. emotion recognition at work, social scoring) must not be built into "analysis" steps.
- GDPR: flows move personal data between systems -- keep a records of processing entry, DPA with the engine and model vendors, EU hosting or valid transfer mechanism, data minimisation (redact before the LLM call), retention limits for execution logs (n8n and others store payloads by default). Art. 22 limits solely automated decisions with legal or similarly significant effects.
- Security: prompt injection, credential sprawl, supply-chain risk of community nodes; use secrets vaults, SSO, role-based access and network egress controls.
- Sector/other: NIS2 and DORA for operators in scope (third-party ICT risk, incident reporting); GoBD for flows that post accounting records.
Getting started
- Pick one high-volume, low-risk process (e.g. inbound request classification and routing) and measure the baseline.
- Choose the engine to fit existing tools (Power Automate for Microsoft 365, n8n or Make for mixed SaaS, Camunda for BPMN governance).
- Build the flow with a deterministic graph, one LLM step with JSON-schema output, and a human approval gate.
- Create 50-100 real test cases, run them on each prompt or model change, and set least-privilege credentials.
- Run in shadow mode for 2 weeks, then enable auto-actions for high-confidence cases and review KPIs monthly.
Sources
- n8n Docs -- Advanced AI / AI agents and Sustainable Use License -- https://docs.n8n.io/advanced-ai/
- Microsoft Learn -- What's new in Copilot Studio (2026) -- https://learn.microsoft.com/en-us/microsoft-copilot-studio/whats-new
- Camunda -- AI agents and agentic orchestration docs -- https://docs.camunda.io/
- OWASP -- Top 10 for LLM Applications -- https://genai.owasp.org/llm-top-10/
- Anthropic -- Building effective agents -- https://www.anthropic.com/engineering/building-effective-agents
- Model Context Protocol specification -- https://modelcontextprotocol.io/specification
- Regulation (EU) 2024/1689 (AI Act) -- https://eur-lex.europa.eu/eli/reg/2024/1689/oj
- Microsoft Learn -- Overview of Power Automate 2026 release wave 1 -- https://learn.microsoft.com/en-us/power-platform/release-plan/2026wave1/power-automate/