Templates / Customer authentication for chat support with OpenAI and Redis session management

Customer authentication for chat support with OpenAI and Redis session management

Needs changes

by Jimleuk ✓ · 1,797 views · created 2025-05-19 · Support Chatbot, AI Chatbot

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 14 nodes and runs when a chat message arrives (plus 2 other triggers). Along the way it connects OpenAI Chat Model and Redis.

How it runs

Trigger: When a chat message arrives (plus 2 other triggers).

  1. Get Session (Redis): get
  2. Switch: routes items into 1 branches
  3. Customer Support Agent (AI Agent): runs an AI agent, with model: LLM; 1 tool (Get Auth URL); memory: Memory
  4. Get Auth Url Response (Edit Fields (Set)): sets 1 field: auth_url
  5. Get Customer Profile (Edit Fields (Set)): sets or maps fields
  6. Update Session (Redis): set
  7. Confirm Login Success (n8n Form): shows the next form page

Services it uses

OpenAI Chat ModelRedis

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in Customer Support Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Customer Support Agent (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (12)

From the author

This n8n template demonstrates one approach to customer authentication via chat agents. Unlike approaches where you have to authenticate users prior to interacting with the agent, this approach allows guest users to authenticate at any time during the session…

Excerpt from Jimleuk's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.