Customize Pre-Chat with Lightning Components

Customize the fields, layout, buttons, images, validation, and any other part of the user interface for pre-chat using a custom Lightning component. This change applies to Lightning Experience only.
Head on over to the developer console and create a Lightning component that implements the new lightningsnapin:prechatUI interface. Then use the aura methods on the new lightningsnapin:prechatAPI component to create your custom pre-chat component.
  • getPrechatFields returns the pre-chat fields that you defined in Snap-ins setup.
  • validateFields returns an object with information about whether the pre-chat fields are valid for starting a chat and details for any invalid fields.
  • startChat sends a chat request that includes the pre-chat field values.