Human-in-the-Loop Automation with n8n — Liam McGarrigle

| Podcasts | May 02, 2026 | 5.89 Thousand views

TL;DR

Liam McGarrigle demonstrates building AI agents in n8n using visual workflows, emphasizing transparent orchestration over black-box automation through configurable memory, chat triggers, and tool integration for practical business applications.

🤖 🤖 Visual Agent Architecture 3 insights

Chat-triggered workflow foundation

Agents begin with chat triggers that provide built-in debugging interfaces and session management, allowing direct testing within n8n's canvas before external deployment.

Universal LLM connectivity via OpenRouter

n8n connects to any large language model through configurable credentials like OpenRouter, enabling model selection from Claude Sonnet to GPT variants without vendor lock-in.

Node-to-tool abstraction

Standard integration nodes convert seamlessly into AI tools by toggling the tool setting, allowing agents to autonomously execute actions in Gmail, Google Calendar, and hundreds of other services.

🧠 🧠 Memory & Context Management 3 insights

Simple Memory abstraction for rapid deployment

The built-in Simple Memory handles conversation history automatically within n8n, storing session data via session IDs passed from chat triggers with configurable context windows defaulting to 5 messages.

External database integration for production systems

Postgres and Redis memory options enable integration with existing applications and custom dashboards, allowing external systems to query conversation history directly from database tables.

Token cost visibility through context control

Developers must balance context window length against token costs, as longer memory retention increases API expenses with each subsequent call to the language model.

⚡ Workflow Logic & Implementation 3 insights

JavaScript expressions in visual fields

Curly brace expressions enable inline JavaScript execution within any field, allowing dynamic value manipulation, concatenation, and function calls without separate code nodes.

Version-specific feature requirements

Self-hosted instances require version 214.2 or later to access the latest AI agent capabilities, while cloud users receive automatic updates including the new ChatHub interface.

Credential isolation through project spaces

Cloud and enterprise tiers offer distinct projects with segregated credentials, preventing accidental cross-contamination between personal automation and production business workflows.

Bottom Line

Configure explicit memory stores and tool permissions when building n8n AI agents to maintain human oversight, debugging capabilities, and cost control through transparent orchestration rather than black-box automation.

More from AI Engineer

View all
LLM Observability, Evaluation, Experimentation Platform — Dat Ngo, Arize
AI Engineer AI Engineer

LLM Observability, Evaluation, Experimentation Platform — Dat Ngo, Arize

Dat Ngo from Arize AI explains how modern AI systems require reimagined observability and evaluation patterns built on OpenTelemetry to manage non-deterministic agents, emphasizing that the future of AI engineering lies in automated experimentation flywheels that eliminate manual dashboard work.

12 days ago · 9 points
Text Diffusion — Brendon Dillon, Google DeepMind
AI Engineer AI Engineer

Text Diffusion — Brendon Dillon, Google DeepMind

Google DeepMind researcher Brendon Dillon explains text diffusion as a parallel alternative to autoregressive language models that iteratively denoises random tokens rather than generating sequentially, offering significantly lower latency and unique capabilities like self-correction and adaptive computation, though currently limited by high serving costs for large batches.

15 days ago · 8 points