Most AI agent demos are still just chatbots with better branding.
They answer one message, maybe call a tool, and then forget the user ever existed. Come back tomorrow, ask a follow-up, and the whole thing falls apart.
That’s the gap I keep seeing in AI automation content: stateless demos pretending to be agents.
What clicked for me here was a clean pattern for building an agent in n8n that actually remembers people across sessions. Not browser memory. Not temporary context. Redis-backed persistent memory keyed to the user and channel, so the agent can pick up where it left off even after restarts or redeploys.
That’s the difference between a toy and something I’d actually ship.
The stack is simple in the best way:
Slack trigger → ReAct agent → Redis chat memory → reply to Slack
Then the agent gets real tools:
- web search via Brave Search API
- CRM lookup via Airtable
- email drafting with a human approval gate before send
I like this setup because it keeps the orchestration elegant. Each tool lives in its own sub-workflow, wrapped with the Workflow Tool Node pattern. So the agent sees each one as a callable tool with a name, description, and input schema. Clean interface. Low drama.
The part I’d steal immediately is the sessionId pattern.
Instead of storing memory against some vague session object, memory is scoped to Slack channel + user ID. That makes it multi-user safe out of the box. No weird context bleed. No user A inheriting user B’s thread history. Just a simple key design choice that saves a lot of pain later.
And because Redis is configured to persist to disk, the memory survives restarts. That matters more than people think.
If the conversation disappears the second your container restarts, you didn’t build memory. You built a demo.
The other pattern I really liked is the human-in-the-loop email flow.
The agent can draft the message, prepare the subject/body, and create the Gmail draft. But it does not send anything until a human approves it. That approval happens through a Wait node, which pauses execution indefinitely and resumes through a webhook when someone clicks approve or reject.
That’s such a practical trust layer.
I’m bullish on AI agents, but I still don’t want autonomous outbound email flying around without a checkpoint. Draft-first, approve-before-send is the kind of constraint that makes automations usable in the real world.
Another strong point: you can actually inspect the ReAct loop inside n8n.
You can see the reasoning step, the tool call, the tool response, and the final answer in the execution log. I’m a big fan of anything that makes agent behavior easier to debug. Black-box magic is fun for demos, terrible for production.
There’s also a subtle but important architecture win here: provider abstraction.
Swap Claude for GPT-4 by changing one node, with no workflow redesign. That’s exactly the kind of modularity I want in automation systems. Models change. APIs change. Pricing changes. I don’t want the whole workflow tangled to one provider choice.
What I like most is that this is all importable JSON, not theory.
Clone the repo, import the workflows, wire credentials, and you’ve got a working persistent agent in your own n8n instance fast. That’s my kind of tutorial: less slideware, more runnable systems.
If I were building on top of this, I’d treat it as a solid base layer for:
- support copilots in Slack
- internal ops agents with memory
- CRM-aware follow-up assistants
- RAG-enabled agents with long-lived user context
The big takeaway for me is simple:
Memory is not an extra feature for agents. It’s the baseline.
If your “agent” forgets me between sessions, it’s not really an agent yet.
Repo here if you want to import and run it yourself:
https://github.com/ogu83/n8n-ai-agent-lab