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.
(information)
Info
Auto-Generated Documentation for the Flex Webchat UI is now available as a public beta distribution. The auto-generated documentation is accurate and comprehensive but may differ from what you see in the official Flex Webchat UI documentation.
You can change the Flex WebChat 2.0 look, feel, and behavior via configuration settings. You can override any of the default configuration values.
Basic configuration allows you to do customizations to WebChat display options and behavior. With a few lines of code you can make changes like:
Show or hide the logo in the header
Change the properties of any WebChat component
Pass context for routing or to be displayed to an agent
Configure how the author of the message is displayed
Show or hide a typing indicator or message read receipt
and much more.
Configuration object
In the configuration object, you can define default properties to WebChat Components (listed below) and also configure properties that are not tied to specific Components.
Allows to override chat participant names, e.g. setting agent to Agent and customer to Customer.
Example of setting a default message author instead of using member friendlyName:
1
{
2
yourDefaultName:'You',
3
theirDefaultName:'Agent',
4
yourFriendlyNameOverride:false,
5
theirFriendlyNameOverride:false
6
}
MessageListItem
Prop Name
Type
Description
useFriendlyName
Boolean
Override chat participant name with a friendly name
messageStyle
string
Visual style of the individual message. Options are "Rounded", "Squared", and "Minimal"
authorName
string
A custom author name to be used
useFriendlyName
Boolean
Use friendlyName as author name instead of custom authorName
avatarUrl
URL to the avatar of the author
message
An object which represents a single message.
MessageInput
Prop Name
Type
Description
areaStyle
string
Visual style of the text input element.
disabledReason
string
A reason on why MessageInput is disabled.
sendButtonAriaProps
AriaProps
SendButton aria props
textAreaAriaProps
AriaProps
TextArea aria props
charLimit
number
Identifies character limit for a single message.
returnKeySendsMessage
Boolean
Whether pressing the return key should send a message
useLocalState
Boolean
If set to true, it keeps the message value in the local component state, instead of the Redux state. Please set it to false if you want to set the input value using the "SetInputText" action.