Embed Chat Configuration Updated (#3151)
This commit is contained in:
parent
9094cf1ede
commit
0e30db172a
|
|
@ -92,6 +92,11 @@ const buttonConfig = (isReact = false) => {
|
||||||
dragAndDrop: true,
|
dragAndDrop: true,
|
||||||
iconColor: "white",
|
iconColor: "white",
|
||||||
customIconSrc: "https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/google-messages.svg",
|
customIconSrc: "https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/google-messages.svg",
|
||||||
|
autoWindowOpen: {
|
||||||
|
autoOpen: true, //parameter to control automatic window opening
|
||||||
|
openDelay: 2, // Optional parameter for delay time in seconds
|
||||||
|
autoOpenOnMobile: false, //parameter to control automatic window opening in mobile
|
||||||
|
},
|
||||||
}`
|
}`
|
||||||
: `button: {
|
: `button: {
|
||||||
backgroundColor: "#3B81F6",
|
backgroundColor: "#3B81F6",
|
||||||
|
|
@ -101,6 +106,11 @@ const buttonConfig = (isReact = false) => {
|
||||||
dragAndDrop: true,
|
dragAndDrop: true,
|
||||||
iconColor: "white",
|
iconColor: "white",
|
||||||
customIconSrc: "https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/google-messages.svg",
|
customIconSrc: "https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/google-messages.svg",
|
||||||
|
autoWindowOpen: {
|
||||||
|
autoOpen: true, //parameter to control automatic window opening
|
||||||
|
openDelay: 2, // Optional parameter for delay time in seconds
|
||||||
|
autoOpenOnMobile: false, //parameter to control automatic window opening in mobile
|
||||||
|
},
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -132,10 +142,13 @@ const chatwindowConfig = (isReact = false) => {
|
||||||
welcomeMessage: 'Hello! This is custom welcome message',
|
welcomeMessage: 'Hello! This is custom welcome message',
|
||||||
errorMessage: 'This is a custom error message',
|
errorMessage: 'This is a custom error message',
|
||||||
backgroundColor: "#ffffff",
|
backgroundColor: "#ffffff",
|
||||||
|
backgroundImage: 'enter image path or link', // If set, this will overlap the background color of the chat window.
|
||||||
height: 700,
|
height: 700,
|
||||||
width: 400,
|
width: 400,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
poweredByTextColor: "#303235",
|
//starterPrompts: ['What is a bot?', 'Who are you?'], // It overrides the starter prompts set by the chat flow passed
|
||||||
|
starterPromptFontSize: 15,
|
||||||
|
clearChatOnReload: false, // If set to true, the chat will be cleared when the page reloads.
|
||||||
botMessage: {
|
botMessage: {
|
||||||
backgroundColor: "#f7f8ff",
|
backgroundColor: "#f7f8ff",
|
||||||
textColor: "#303235",
|
textColor: "#303235",
|
||||||
|
|
@ -179,10 +192,13 @@ const chatwindowConfig = (isReact = false) => {
|
||||||
welcomeMessage: 'Hello! This is custom welcome message',
|
welcomeMessage: 'Hello! This is custom welcome message',
|
||||||
errorMessage: 'This is a custom error message',
|
errorMessage: 'This is a custom error message',
|
||||||
backgroundColor: "#ffffff",
|
backgroundColor: "#ffffff",
|
||||||
|
backgroundImage: 'enter image path or link', // If set, this will overlap the background color of the chat window.
|
||||||
height: 700,
|
height: 700,
|
||||||
width: 400,
|
width: 400,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
poweredByTextColor: "#303235",
|
//starterPrompts: ['What is a bot?', 'Who are you?'], // It overrides the starter prompts set by the chat flow passed
|
||||||
|
starterPromptFontSize: 15,
|
||||||
|
clearChatOnReload: false, // If set to true, the chat will be cleared when the page reloads.
|
||||||
botMessage: {
|
botMessage: {
|
||||||
backgroundColor: "#f7f8ff",
|
backgroundColor: "#f7f8ff",
|
||||||
textColor: "#303235",
|
textColor: "#303235",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue