Skip to content
FlowHubFluxonLab
Calculator
AI Automationfree

Chat with OpenAI Assistant (by adding a memory)

by David Robertsadapted from n8n official workflow galleryUpdated Aug 2026
RequiresCalculatorCalculatorChat Memory ManagerChat Memory ManagerOpenAI AssistantOpenAI AssistantSSimple Memory
Share Post Share
MBSimple MemoryOpenAITCCalculator1ChWhen chat message receivedWhen chat messa…1234
1/5
STEPS · 4
Starts from a chat message

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.

Tags

n8nreference-onlymemory-buffer-windowmemory-manageropen-ai-assistanttool-calculator
Connects
calculatorCalculatorchatmemorymanagerChat Memory ManageropenaiassistantOpenAI AssistantSSimple Memory
CategoryAI Automation
Triggermanual
Complexitymedium
Nodes4
AddedFeb 15, 2024

Related workflows

See all AI Automation
AopenaichatmodelserpapigooglesearchS
free

AI chatbot that can search the web

This workflow is designed for dynamic and intelligent conversational capabilities. It incorporates OpenAI's GPT-4o model for natural language understanding and generation. Additional tools include SerpAPI and Wikipedia for enriched, data-driven responses. The workflow is triggered manually, and utilizes a 'Window Buffer Memory' to maintain the context of the last 20 interactions for better conversational continuity. All these components are orchestrated through n8n nodes, ensuring seamless interconnectivity. To use this template, you need to be on n8n version 1.50.0 or later.

by n8n Team
AopenaichatmodelserpapigooglesearchS
free

AI agent chat

This workflow employs OpenAI's language models and SerpAPI to create a responsive, intelligent conversational agent. It comes equipped with manual chat triggers and memory buffer capabilities to ensure seamless interactions. To use this template, you need to be on n8n version 1.50.0 or later.

by n8n Team
AopenaichatmodelserpapigooglesearchS
free

Slack chatbot powered by AI

This workflow offers an effective way to handle a chatbot's functionality, making use of multiple tools for information retrieval, conversation context storage, and message sending. It's a setup tailored for a Slack environment, aiming to offer an interactive, AI-driven chatbot experience. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team