Webchat 2.0 is no longer supported. It uses Flex UI 1.x.x's legacy messaging, which has reached end-of-life.
If you are using Webchat 2.0, migrate to Webchat 3.x.x.
If you are starting out with Webchat, build with Webchat 3.x.x instead.
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:
1FlexWebChat.Manager.create(configuration)2.then(manager => {34manager.strings.WelcomeMessage = "I am a new Welcome Message";56ReactDOM.render(7<FlexWebChat.ContextProvider manager={manager}>8<Flex.RootContainer />9</FlexWebChat.ContextProvider>,10document.getElementById("root")11);12});
startEngagementOnInit=true
), but no Pre engagement form is specified1EntryPointTagline: "Chat with us",2MessageCanvasTrayContent: `3<h6>Thanks for chatting with us!</h6>4<p>If you have any more questions please reach out to us again.</p>`,5MessageCanvasTrayButton: "START NEW CHAT",6InvalidPreEngagementMessage: "Pre-engagement forms have not been set and are required to initiate the web-chat. " + "Please configure these now in setup.",7InvalidPreEngagementButton: "Learn more",8PredefinedChatMessageAuthorName: "Bot",9PredefinedChatMessageBody: "Hi there! How can we help you today?",10InputPlaceHolder: "Type message",11TypingIndicator: "{{name}} is typing … ",12Read: "Read",13MessageSendingDisabled: "Message sending has been disabled",14Today: "TODAY",15Yesterday: "YESTERDAY",16MessageCanvasTrayButton: "START NEW CHAT",17WelcomeMessage: "Welcome to customer service",18Save: "SAVE",19Reset: "RESET",20MessageCharacterCountStatus: "{{currentCharCount}} / {{maxCharCount}}",21SendMessageTooltip: "Send Message",22FieldValidationRequiredField: "Field required",23FieldValidationInvalidEmail: "Please provide a valid email address"