Chat with OpenAI Assistant (with Memory)

Adds memory to OpenAI Assistants for stateful chatbot conversations by managing chat history in n8n. Enables persistent memory across messages without native Assistant support.

n8n
Chat with OpenAI Assistant (with Memory)

This workflow overcomes the limitation of OpenAI Assistants not automatically remembering past conversation messages. It uses n8n's memory management to store and retrieve chat history based on a session ID, passing the full context to the Assistant on each interaction. This creates a seamless, stateful chatbot experience.

Key components include a chat trigger (like 'When chat message received'), a Simple Memory node (Memory Buffer Window) to handle context with a configurable window length, and an OpenAI node to query the Assistant with the enriched history. Sticky notes guide setup, including credential configuration and testing by chatting (e.g., sharing your name then asking it back).

Benefits include cost-effective persistent conversations without custom vector stores, easy integration into apps or webhooks, and scalability for production chatbots. Ideal use cases: customer support bots, personal AI companions, mobile app integrations, or any scenario needing conversational memory. Requires n8n 1.28.0+ and an OpenAI Assistant.

$12.99
Last updated August 29, 2026
30-day money-back guarantee
Instant download
Lifetime updates included

New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.

Secure checkout powered by Stripe

Support

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related Built-in Apps workflows

More from Maxim Luong

Need this deployed? We'll set it up for you.

Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.