diff --git a/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorychatretriever.md b/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorychatretriever.md index eb550669e..7e3349724 100644 --- a/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorychatretriever.md +++ b/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorychatretriever.md @@ -4,6 +4,9 @@ description: Documentation for the Chat Messages Retriever node in n8n, a workfl --- # Chat Messages Retriever +/// warning | Deprecated +The Chat Messages Retriever node was removed from n8n in 1.26.0. It is still available in legacy workflows. Please use [Chat Memory Manager](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorymanager) instead. +/// Use the Chat Messages Retriever node to retrieve data from an in-memory vector store. diff --git a/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorymanager.md b/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorymanager.md new file mode 100644 index 000000000..a08e313d6 --- /dev/null +++ b/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorymanager.md @@ -0,0 +1,39 @@ +--- +title: Chat Memory Manager +description: Documentation for the Chat Memory Manager node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. +--- + +# Chat Memory Manager + +The Chat Memory Manager node is designed to manage chat message memories within your workflows. This node allows you to load, insert, and delete chat messages in an in-memory vector store. + +On this page, you'll find a list of operations that the Chat Memory Manager node supports, along with links to more resources. + +/// note | Examples and templates +For usage examples and templates to help you get started, refer to n8n's [Chat Memory Manager integrations](https://n8n.io/integrations/chat-messages-manager/){:target=_blank .external-link} page. +/// + +--8<-- "_snippets/integrations/builtin/cluster-nodes/sub-node-expression-resolution.md" + +## Node Parameters + +**Operation Mode**: Choose between `Get Many Messages`, `Insert Messages`, and `Delete Messages` operations. + +**Insert Mode**: (Shown in `Insert Messages` mode) Choose between `Insert Messages` to add alongside existing messages or `Override All Messages` to replace current memory. + +**Delete Mode**: (Shown in `Delete Messages` mode) Select either `Last N` to delete the last N messages or `All Messages` to clear all messages from memory. + +**Chat Messages**: (Shown in `Insert Messages` mode) Define the chat messages to insert into the memory, including message type (AI, System, User), message content, and visibility in UI. + +**Messages Count**: (Shown in `Delete Messages` mode and when `Last N` is selected) Specify the number of latest messages to delete. + +**Simplify Output**: (Shown in `Get Many Messages` mode) Toggle to simplify the output to include only the sender(ai, user, system) and the text. + +## Related resources + +View [example workflows and related content](https://n8n.io/integrations/chat-messages-manager/){:target=_blank .external-link} on n8n's website. + +Refer to [LangChain's Memory documentation](https://js.langchain.com/docs/modules/memory/){:target=_blank .external-link} for more information about the service. + +--8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md" +--8<-- "_glossary/ai-glossary.md" diff --git a/docs/langchain/langchain-n8n.md b/docs/langchain/langchain-n8n.md index 9b2a616a9..b415a600b 100644 --- a/docs/langchain/langchain-n8n.md +++ b/docs/langchain/langchain-n8n.md @@ -178,7 +178,7 @@ Learn more about [Text embeddings in LangChain](https://js.langchain.com/docs/mo #### Miscellaneous -* [Chat Messages Retriever](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorychatretriever/) +* [Chat Memory Manager](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorymanager/) diff --git a/mkdocs.yml b/mkdocs.yml index 121778101..490fcbf73 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -716,6 +716,7 @@ nav: - integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmopenhuggingfaceinference.md - integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorybufferwindow.md - integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorychatretriever.md + - integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorymanager.md - integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorymotorhead.md - integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memoryredischat.md - integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memoryxata.md