From ccdca6b39fd55e478d0bd5ed8ae6410a1aebc63b Mon Sep 17 00:00:00 2001 From: Ria Scholz <123465523+riascho@users.noreply.github.com> Date: Fri, 7 Feb 2025 16:49:22 +0100 Subject: [PATCH] docs(Chat Trigger Node): Add option for loadPreviousSession (#13132) --- packages/@n8n/chat/README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/@n8n/chat/README.md b/packages/@n8n/chat/README.md index 6299c80d12..4501b86cc5 100644 --- a/packages/@n8n/chat/README.md +++ b/packages/@n8n/chat/README.md @@ -112,6 +112,7 @@ createChat({ mode: 'window', chatInputKey: 'chatInput', chatSessionKey: 'sessionId', + loadPreviousSession: true, metadata: {}, showWelcomeScreen: false, defaultLanguage: 'en', @@ -161,15 +162,20 @@ createChat({ - **Default**: `false` - **Description**: Whether to show the welcome screen when the Chat window is opened. +### `chatInputKey` +- **Type**: `string` +- **Default**: `'chatInput'` +- **Description**: The key to use for sending the chat input for the AI Agent node. + ### `chatSessionKey` - **Type**: `string` - **Default**: `'sessionId'` - **Description**: The key to use for sending the chat history session ID for the AI Memory node. -### `chatInputKey` -- **Type**: `string` -- **Default**: `'chatInput'` -- **Description**: The key to use for sending the chat input for the AI Agent node. +### `loadPreviousSession` +- **Type**: `boolean` +- **Default**: `true` +- **Description**: Whether to load previous messages (chat context). ### `defaultLanguage` - **Type**: `string`