Skip to content

Commit e69fee1

Browse files
Embed chat configuration updated (#2723)
1 parent cc24f94 commit e69fee1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/ui/src/views/chatflows/EmbedChat.jsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ const chatwindowConfig = (isReact = false) => {
128128
showTitle: true,
129129
title: 'Flowise Bot',
130130
titleAvatarSrc: 'https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/google-messages.svg',
131+
showAgentMessages: true,
131132
welcomeMessage: 'Hello! This is custom welcome message',
132133
errorMessage: 'This is a custom error message',
133134
backgroundColor: "#ffffff",
@@ -155,6 +156,10 @@ const chatwindowConfig = (isReact = false) => {
155156
maxChars: 50,
156157
maxCharsWarningMessage: 'You exceeded the characters limit. Please input less than 50 characters.',
157158
autoFocus: true, // If not used, autofocus is disabled on mobile and enabled on desktop. true enables it on both, false disables it on both.
159+
sendMessageSound: true,
160+
// sendSoundLocation: "send_message.mp3", // If this is not used, the default sound effect will be played if sendSoundMessage is true.
161+
receiveMessageSound: true,
162+
// receiveSoundLocation: "receive_message.mp3", // If this is not used, the default sound effect will be played if receiveSoundMessage is true.
158163
},
159164
feedback: {
160165
color: '#303235',
@@ -170,6 +175,7 @@ const chatwindowConfig = (isReact = false) => {
170175
showTitle: true,
171176
title: 'Flowise Bot',
172177
titleAvatarSrc: 'https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/google-messages.svg',
178+
showAgentMessages: true,
173179
welcomeMessage: 'Hello! This is custom welcome message',
174180
errorMessage: 'This is a custom error message',
175181
backgroundColor: "#ffffff",
@@ -197,6 +203,10 @@ const chatwindowConfig = (isReact = false) => {
197203
maxChars: 50,
198204
maxCharsWarningMessage: 'You exceeded the characters limit. Please input less than 50 characters.',
199205
autoFocus: true, // If not used, autofocus is disabled on mobile and enabled on desktop. true enables it on both, false disables it on both.
206+
sendMessageSound: true,
207+
// sendSoundLocation: "send_message.mp3", // If this is not used, the default sound effect will be played if sendSoundMessage is true.
208+
receiveMessageSound: true,
209+
// receiveSoundLocation: "receive_message.mp3", // If this is not used, the default sound effect will be played if receiveSoundMessage is true.
200210
},
201211
feedback: {
202212
color: '#303235',

0 commit comments

Comments
 (0)