Skip to content

Simple Memory node#

ใช้ Simple Memory node เพื่อ persist ประวัติการแชทใน workflow ของคุณ

ในหน้านี้ คุณจะพบรายการ operations ที่ Simple Memory node รองรับ และลิงก์ไปยังแหล่งข้อมูลเพิ่มเติม

Don't use this node if running n8n in queue mode

หาก n8n instance ของคุณใช้ queue mode node นี้จะไม่ทำงานใน production workflow ที่ใช้งานอยู่ เนื่องจาก n8n ไม่สามารถรับประกันได้ว่าทุกการเรียก Simple Memory จะไปที่ worker เดียวกัน

Parameter resolution in sub-nodes (การประมวลผล Parameter ใน sub-nodes)

Sub-nodes มีพฤติกรรมแตกต่างจาก node อื่นๆ เมื่อประมวลผลหลายรายการโดยใช้ expression

Node ส่วนใหญ่ รวมถึง root node จะรับ input กี่รายการก็ได้ ประมวลผลรายการเหล่านี้ และส่ง output ออกมา คุณสามารถใช้ expression เพื่ออ้างอิงถึง input item และ node จะประมวลผล expression สำหรับแต่ละ item ตามลำดับ ตัวอย่างเช่น หากมี input เป็นค่า name ห้ารายการ expression {{ $json.name }} จะถูกประมวลผลเป็นแต่ละชื่อตามลำดับ

ใน sub-nodes expression จะถูกประมวลผลเป็น item แรกเสมอ ตัวอย่างเช่น หากมี input เป็นค่า name ห้ารายการ expression {{ $json.name }} จะถูกประมวลผลเป็นชื่อแรกเสมอ

Node parameters#

ตั้งค่า parameters เหล่านี้เพื่อกำหนดค่า node:

  • Session Key: ป้อน key ที่จะใช้เก็บ memory ในข้อมูล workflow
  • Context Window Length: ป้อนจำนวน interactions ก่อนหน้าที่จะพิจารณาสำหรับ context

Templates and examples#

Telegram AI bot with LangChain nodes

by n8n Team

View template details
Agentic Telegram AI bot with with LangChain nodes and new tools

by Yulia

View template details
Explore n8n Nodes in a Visual Reference Library

by I versus AI

View template details
Browse คู่มือ Simple Memory node integration templates, or search all templates

อ้างอิง LangChain's Buffer Window Memory documentation สำหรับข้อมูลเพิ่มเติมเกี่ยวกับ service

ดูเอกสาร Advanced AI ของ n8n

Common issues#

สำหรับคำถามหรือปัญหาทั่วไปและแนวทางแก้ไขที่แนะนำ โปรดดูที่ Common issues

AI glossary#

  • completion: Completions are the responses generated by a model like GPT.
  • hallucinations: Hallucination in AI is when an LLM (large language model) mistakenly perceives patterns or objects that don't exist.
  • vector database: A vector database stores mathematical representations of information. Use with embeddings and retrievers to create a database that your AI can access when answering questions.
  • vector store: A vector store, or vector database, stores mathematical representations of information. Use with embeddings and retrievers to create a database that your AI can access when answering questions.