From e69fee13757938383f0b08872b465b47869769d9 Mon Sep 17 00:00:00 2001 From: Aman Soni Date: Thu, 27 Jun 2024 16:38:29 +0530 Subject: [PATCH] Embed chat configuration updated (#2723) --- packages/ui/src/views/chatflows/EmbedChat.jsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/ui/src/views/chatflows/EmbedChat.jsx b/packages/ui/src/views/chatflows/EmbedChat.jsx index b13c1a22..8caf7e9e 100644 --- a/packages/ui/src/views/chatflows/EmbedChat.jsx +++ b/packages/ui/src/views/chatflows/EmbedChat.jsx @@ -128,6 +128,7 @@ const chatwindowConfig = (isReact = false) => { showTitle: true, title: 'Flowise Bot', titleAvatarSrc: 'https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/google-messages.svg', + showAgentMessages: true, welcomeMessage: 'Hello! This is custom welcome message', errorMessage: 'This is a custom error message', backgroundColor: "#ffffff", @@ -155,6 +156,10 @@ const chatwindowConfig = (isReact = false) => { maxChars: 50, maxCharsWarningMessage: 'You exceeded the characters limit. Please input less than 50 characters.', autoFocus: true, // If not used, autofocus is disabled on mobile and enabled on desktop. true enables it on both, false disables it on both. + sendMessageSound: true, + // sendSoundLocation: "send_message.mp3", // If this is not used, the default sound effect will be played if sendSoundMessage is true. + receiveMessageSound: true, + // receiveSoundLocation: "receive_message.mp3", // If this is not used, the default sound effect will be played if receiveSoundMessage is true. }, feedback: { color: '#303235', @@ -170,6 +175,7 @@ const chatwindowConfig = (isReact = false) => { showTitle: true, title: 'Flowise Bot', titleAvatarSrc: 'https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/google-messages.svg', + showAgentMessages: true, welcomeMessage: 'Hello! This is custom welcome message', errorMessage: 'This is a custom error message', backgroundColor: "#ffffff", @@ -197,6 +203,10 @@ const chatwindowConfig = (isReact = false) => { maxChars: 50, maxCharsWarningMessage: 'You exceeded the characters limit. Please input less than 50 characters.', autoFocus: true, // If not used, autofocus is disabled on mobile and enabled on desktop. true enables it on both, false disables it on both. + sendMessageSound: true, + // sendSoundLocation: "send_message.mp3", // If this is not used, the default sound effect will be played if sendSoundMessage is true. + receiveMessageSound: true, + // receiveSoundLocation: "receive_message.mp3", // If this is not used, the default sound effect will be played if receiveSoundMessage is true. }, feedback: { color: '#303235',