You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Learn how to use the MongoDB Chat Memory node in n8n. Follow technical documentation to integrate MongoDB Chat Memory node into your workflows.
5
+
contentType: [integration, reference]
6
+
---
7
+
8
+
# MongoDB Chat Memory node
9
+
10
+
Use the MongoDB Chat Memory node to use MongoDB as a [memory](/glossary.md#ai-memory) server for storing chat history.
11
+
12
+
On this page, you'll find a list of operations the MongoDB Chat Memory node supports, and links to more resources.
13
+
14
+
/// note | Credentials
15
+
You can find authentication information for this node [here](/integrations/builtin/credentials/mongodb.md).
***Session Key**: Enter the key to use to store the memory in the workflow data.
23
+
***Collection Name**: Enter the name of the collection to store the chat history in. The system will create the collection if it doesn't exist.
24
+
***Database Name**: Enter the name of the database to store the chat history in. If not provided, the database from credentials will be used.
25
+
***Context Window Length**: Enter the number of previous interactions to consider for context.
26
+
27
+
## Related resources
28
+
29
+
Refer to [LangChain's MongoDB Chat Message History documentation](https://js.langchain.com/docs/integrations/memory/mongodb){:target=_blank .external-link} for more information about the service.
0 commit comments