FM
FlowMarket
General Automation Intermediate ⚡ 9 n8n Nodes

Chat with OpenAI Assistant by adding a memory

OpenAI Assistant is a powerful tool, but at the time of writing it doesn't automatically remember past messages from a conversation. This workflow demonstrat...

🔌 Nodes & Integrations Used (1)

n8n Core Logic

📖 Implementation & Setup Guide

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 required.

This makes it possible to use OpenAI Assistant for chatbot use cases.

Note that to use this template, you need to be on n8n version 1.28.0 or later.

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save Chat with OpenAI Assistant _by adding a memory_.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related General Automation Workflows

View All in General Automation →