Templates / Chat with OpenAI Assistant (by adding a memory)

Chat with OpenAI Assistant (by adding a memory)

Ready for 3.0

by David Roberts ✓ · 65,815 views · created 2024-02-15 · Personal Productivity, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 4 nodes and runs when a chat message arrives. Along the way it connects OpenAI.

How it runs

Trigger: When a chat message arrives.

  1. OpenAI: work with assistant, with 1 tool (Calculator); memory: Simple Memory

Services it uses

OpenAI

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (4)

From the author

OpenAI Assistant is a powerful tool, but at the time of writing it doesn't automatically remember past messages from a conversation. This workflow demonstrates how to get around this, by managing the chat history in n8n and passing it to the assistant when…

Excerpt from David Roberts'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.