Skip to content

简单内存节点(Simple Memory node)#

使用简单记忆节点在工作流中保存聊天记录。

🌐 Use the Simple Memory node to persist chat history in your workflow.

本页列出了 Simple Memory 节点支持的操作列表以及更多资源的链接。

🌐 On this page, you'll find a list of operations the Simple Memory node supports, and links to more resources.

如果在队列模式下运行 n8n,请不要使用此节点

如果你的 n8n 实例使用 队列模式,此节点在活动的生产工作流中无法使用。这是因为 n8n 无法保证每次调用 Simple Memory 都会访问同一个工作线程。

Parameter resolution in sub-nodes

Sub-nodes behave differently to other nodes when processing multiple items using an expression.

Most nodes, including root nodes, take any number of items as input, process these items, and output the results. You can use expressions to refer to input items, and the node resolves the expression for each item in turn. For example, given an input of five name values, the expression {{ $json.name }} resolves to each name in turn.

In sub-nodes, the expression always resolves to the first item. For example, given an input of five name values, the expression {{ $json.name }} always resolves to the first name.

节点参数(Node parameters)#

配置以下参数以配置节点:

🌐 Configure these parameters to configure the node:

  • 会话密钥:输入用于在工作流数据中存储记忆的密钥。
  • 上下文窗口长度:输入要考虑的前一次交互的数量以获取上下文。

模板和示例(Templates and examples)#

Template widget placeholder.

有关该服务的更多信息,请参阅 LangChain 的缓冲窗口内存文档

🌐 Refer to LangChain's Buffer Window Memory documentation for more information about the service.

View n8n's Advanced AI documentation.

常见问题(Common issues)#

有关常见问题或问题及建议的解决方案,请参阅 常见问题

🌐 For common questions or issues and suggested solutions, refer to Common issues.