Chat with OpenAI Assistant (by adding a memory)
n8n template #2098Summary
Use templateOpenAI 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 set it up
- Open template #2098 on n8n.io and click Use for free, or copy the template JSON and paste it onto an empty canvas in n8n.
- Create a credential under Credentials → Add credential: OpenAI Assistant. Then open each of those nodes and pick the credential.
- Click Execute workflow and step through each node's output to confirm the data looks right.
- Toggle the workflow to Active so its trigger runs on its own.
Hand off to your agent
Prompt
Help me set up the n8n workflow "Chat with OpenAI Assistant (by adding a memory)" (https://n8n.io/workflows/2098). It uses: Simple Memory, Calculator, OpenAI Assistant, Chat Memory Manager. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.
Paste into Claude Code and it will do the rest.
Apps and nodes
Questions
Yes. David Roberts published it free on n8n.io as a verified creator, and it has 60K views. It runs on n8n Cloud or a self-hosted n8n instance.
OpenAI Assistant. The other 3 nodes are built into n8n.
Similar workflows
NameViews
- Explore n8n Nodes in a Visual Reference Library5,197
- Build Your First AI Data Analyst Chatbot134K
- AI Voice Chat using Webhook, Memory Manager, OpenAI, Google Gemini & ElevenLabs34K
- Conversational Interviews with AI Agents and n8n Forms27K
- ERP AI chatbot for Odoo sales module with OpenAI19K
- Build Your First AI Agent – Powered by Google Gemini with Memory16K
- Personal Shopper Chatbot for WooCommerce with RAG using Google Drive and openAI12K
- 🤖💬 Conversational AI Chatbot with Google Gemini for Text & Image | Telegram11K