Salesforce Pre Chat for Embedded Service using Lightning Aura Component
Sample Code: Aura Component: <aura:component implements="lightningsnapin:prechatUI"> <lightningsnapin:prechatAPI aura:id="prechatAPI"/> <aura:handler name="init" value="{!this}" action="{!c.onInit}" /> <aura:attribute name="startBool" type="Boolean" default="false"/> <aura:attribute name="errorBool" type="Boolean" default="false"/> <aura:attribute name="firstName" type="Boolean" default="false"/> ....