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

| Podcasts | May 02, 2026 | 1.17 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
Mastering AI Pricing: Flexible & Agile Monetization — Mayank Pant, Stripe
AI Engineer AI Engineer

Mastering AI Pricing: Flexible & Agile Monetization — Mayank Pant, Stripe

AI companies are growing three times faster than traditional SaaS but face unique pricing challenges due to unpredictable compute costs and razor-thin margins, requiring a shift from static subscription models to flexible hybrid pricing that prioritizes rapid iteration and customer-perceived value over technical metrics.

1 day ago · 10 points
Shipping complex AI applications — Braintrust & Trainline
AI Engineer AI Engineer

Shipping complex AI applications — Braintrust & Trainline

This workshop demonstrates how to bridge the gap between AI prototypes and production systems using Brain Trust's observability platform, featuring Trainline's experience deploying multi-agent AI applications serving 27 million users.

1 day ago · 10 points
Replacing 12K LoC with a 200 LoC Skill — David Gomes, Cursor
AI Engineer AI Engineer

Replacing 12K LoC with a 200 LoC Skill — David Gomes, Cursor

David Gomes from Cursor details how they replaced 15,000 lines of complex git work tree management code with a 200-line markdown skill using agent primitives, drastically reducing maintenance while enabling multi-repo support and flexible model comparisons, though requiring new approaches to ensure agent isolation.

3 days ago · 10 points