跳转至

Redis 聊天内存节点#

使用 Redis 聊天内存节点将 Redis 用作内存 服务器。

本页面列出了 Redis 聊天内存节点支持的操作以及更多资源链接。

凭证

您可以在此处.

子节点中的参数解析

子节点在使用表达式处理多个项目时,与其他节点的行为不同。

大多数节点(包括根节点)接受任意数量的项目作为输入,处理这些项目,并输出结果。您可以使用表达式引用输入项目,节点会依次为每个项目解析表达式。例如,给定五个 name 值的输入,表达式 {{ $json.name }} 会依次解析为每个名称。

在子节点中,表达式始终解析为第一个项目。例如,给定五个 name 值的输入,表达式 {{ $json.name }} 始终解析为第一个名称。

节点参数#

  • 会话密钥: 输入用于在工作流数据中存储内存的密钥。
  • 会话生存时间: 使用此参数让会话在指定秒数后过期。
  • 上下文窗口长度: 输入要考虑用于上下文的先前交互次数。

模板和示例#

Build your own N8N Workflows MCP Server

by Jimleuk

View template details
Conversational Interviews with AI Agents and n8n Forms

by Jimleuk

View template details
Telegram AI Bot-to-Human Handoff for Sales Calls

by Jimleuk

View template details
Browse Redis Chat Memory integration templates, or search all templates

相关资源#

有关该服务的更多信息,请参阅 LangChain 的 Redis 聊天内存文档

查看 n8n 的高级 AI 文档。

单一内存实例#

If you add more than one Redis Chat Memory node to your workflow, all nodes access the same memory instance by default. Be careful when doing destructive actions that override existing memory contents, such as the override all messages operation in the Chat Memory Manager node. If you want more than one memory instance in your workflow, set different session IDs in different memory nodes.

此页面是否
💬 微信

🚀 与作者交流

关注公众号
n8n实战笔记公众号
n8n实战笔记
📚 教程 💡 案例 🔧 技巧
添加微信
添加作者微信
1对1 专业指导
⚡ 快答 🎯 定制 🚀 支持