This guide is for Flex UI 1.x.x and channels that use Programmable Chat and Proxy. If you are using Flex UI 2.x.x or you are starting out, we recommend that you build with Webchat 3.0.
Any string in Flex WebChat 2.0 UI can be changed. Within the context of FlexWebChat.manager
you can specify any string you want to change to override its default value.
With templated strings you can also:
This example shows how to override WelcomeMessage
shown to user in the chat:
_12FlexWebChat.Manager.create(configuration)_12 .then(manager => {_12_12 manager.strings.WelcomeMessage = "I am a new Welcome Message";_12_12 ReactDOM.render(_12 <FlexWebChat.ContextProvider manager={manager}>_12 <Flex.RootContainer />_12 </FlexWebChat.ContextProvider>,_12 document.getElementById("root")_12 );_12 });
startEngagementOnInit=true
), but no Pre engagement form is specified
_23 EntryPointTagline: "Chat with us",_23 MessageCanvasTrayContent: `_23 <h6>Thanks for chatting with us!</h6>_23 <p>If you have any more questions please reach out to us again.</p>`,_23 MessageCanvasTrayButton: "START NEW CHAT",_23 InvalidPreEngagementMessage: "Pre-engagement forms have not been set and are required to initiate the web-chat. " + "Please configure these now in setup.",_23 InvalidPreEngagementButton: "Learn more",_23 PredefinedChatMessageAuthorName: "Bot",_23 PredefinedChatMessageBody: "Hi there! How can we help you today?",_23 InputPlaceHolder: "Type message",_23 TypingIndicator: "{{name}} is typing … ",_23 Read: "Read",_23 MessageSendingDisabled: "Message sending has been disabled",_23 Today: "TODAY",_23 Yesterday: "YESTERDAY",_23 MessageCanvasTrayButton: "START NEW CHAT",_23 WelcomeMessage: "Welcome to customer service",_23 Save: "SAVE",_23 Reset: "RESET",_23 MessageCharacterCountStatus: "{{currentCharCount}} / {{maxCharCount}}",_23 SendMessageTooltip: "Send Message",_23 FieldValidationRequiredField: "Field required",_23 FieldValidationInvalidEmail: "Please provide a valid email address"