interface MemoryMongoDbChatNodeParameters {
collectionName?: string;
contextWindowLength?: number;
databaseName?: string;
sessionIdType?: "fromInput" | "customKey";
sessionKey?: string;
}
Properties§
§
§
§
§
§
readonly collection Name?: string
readonly context Window Length?: number
Default: 5
readonly database Name?: string
The database name to store the chat history in. If not provided, the database from credentials will be used.
readonly session Id Type?: "fromInput" | "customKey"
Default: "fromInput"
readonly session Key?: string
Default: "={{ $json.sessionId }}"
The collection name to store the chat history in. If collection does not exist, it will be created. Default: "n8n_chat_histories"