Chat with OpenAI Assistant (by adding a memory)

Read contents of the chat from memory

Workflow Structure (9 nodes)
100%
Langchain.chat Trigger
Chat Trigger
Langchain.memory Manager
Chat Memory Manager
Aggregate
Aggregate
Langchain.open Ai Assistant
OpenAI Assistant
Langchain.tool Calculator
Calculator
Langchain.memory Manager
Chat Memory Manager1
Limit
Limit
Set
Edit Fields
Langchain.memory Buffer Window
Window Buffer Memory
Node Types:
default
transform
trigger
Requires credentials

Prerequisites

Required Credentials (1)

OpenAI

Used by: OpenAI Assistant

Docs

Complexity

Moderate

Some experience helpful. Multiple integrations or logic.

Setup time: ~20 min
Score: 24/100

When to Use This Workflow

AI-Powered Content Creation

Automate content generation, summarization, or analysis using AI capabilities.

Save hours of manual work while maintaining quality and consistency.

Real-time Response

React instantly when events happen - new orders, form submissions, or API calls.

Zero delay between trigger and action for time-sensitive workflows.

Error Reduction

Eliminate human error from routine processes with consistent automation.

Improve accuracy and reliability across your workflows.

workflow.json
{
  "meta": {
    "instanceId": "cb484ba7b742928a2048bf8829668bed5b5ad9787579adea888f05980292a4a7"
  },
  "nodes": [
    {
      "id": "087ae6e2-b333-4a30-9010-c78050203961",
      "name": "OpenAI Assistant",
      "type": "@n8n/n8n-nodes-langchain.openAiAssistant",
      "position": [
        1340,
        460
      ],
      "parameters": {
        "text": "=## Our Previous Conversation:\n{{ $json[\"messages\"].map(m => `\nHuman: ${m.human}\nAI Assistant: ${m.ai}\n`) }}\n## Current message:\n{{ $('Chat Trigger').item.json.chatInput }}",
        "options": {},
        "assistantId": "asst_HDSAnzsp4WqY4UC1iI9auH5z"
      },
      "credentials": {
        "openAiApi": {
...

Workflow Details

Nodes
14
Trigger
Event
Source
awesome
Added
Dec 4, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

OpenAI Personal Shopper with RAG and WooCommerce

Replace the URL and Collection name with your own

Chat
Memorybufferwindow
Toolcalculator
Lmchatopenai
25 nodesEvent
Curated

Chat with GitHub OpenAPI Specification using RAG (Pinecone and OpenAI)

Indexing content in the vector database This part of the workflow is responsible for extracting content, generating embe...

Http-request
Vectorstorepinecone
Documentdefaultdataloader
Textsplitterrecursivecharactertextsplitter
17 nodesEvent
Curated

Build a Tax Code Assistant with Qdrant, Mistral.ai and OpenAI

Step 1. Download the Tax Code PDF [Read more about handling Zip Files](https://docs.n8n.io/integrations/builtin/core-nod...

Embeddingsmistralcloud
Documentdefaultdataloader
Textsplitterrecursivecharactertextsplitter
Http-request
38 nodesEvent
Curated

Building RAG Chatbot for Movie Recommendations with Qdrant and Open AI

Tool, calling Qdrant's recommendation API based on user's request, transformed by AI agent

Github
Embeddingsopenai
Documentdefaultdataloader
Textsplittertokensplitter
27 nodesEvent
Curated

Make OpenAI Citation for File Retrieval RAG

Within N8N, there will be a chat button to test

Memorybufferwindow
Chat
Openai
Http-request
19 nodesEvent
Curated

Open Deep Research - AI-Powered Autonomous Research Workflow

SerpAPI Setup Instructions 1. Obtain your API key from https://serpapi.com/manage-api-key. 2. Save your API key securely...

Chat
Chainllm
Lmchatopenrouter
Http-request
17 nodesEvent
Curated