How to create pre chat form in Salesforce LIVE agent?

How to create pre chat form in Salesforce LIVE agent?

To gather more information, if required, you can customize the pre-chat form using a VisualForce page. You can create custom fields in the Standard Live Agent object, which can then be mapped using the pre-chat form and will be visible to the agent on the hover pop-up during the incoming chat. The format to map custom fields is:

How does the pre chat form form work?

Gathers the visitor’s first and last name, email address, phone number, and issue, and sets the values to Custom Details. Searches for a contact whose email exactly matches the value provided by the customer in the form.

How to create custom fields in live agent?

You can create custom fields in the Standard Live Agent object, which can then be mapped using the pre-chat form and will be visible to the agent on the hover pop-up during the incoming chat. The format to map custom fields is: name=”liveagent.pre chat:.

How is the live chat object related to the contact field?

The Live Chat Transcript Object is related to the Contact field via a standard lookup field, so if you want to relate the live chat transcript to the Contact field, you can use saveToTranscript to populate that lookup field on the chat transcript.

Why do I need a pre chat form?

To initiate text-only live chat, a pre-chat form is a useful feature. A pre-chat form is used to gather basic information from customers, like name, email, phone number, and reason for contacting the agent — all of which will help in redirecting the customer to the right agent in minimal time.

How to show pre chat fields to user?

SCSPrechatTextInputObject (a subclass of SCSPrechatObject) takes user input from a text field. SCSPrechatPickerObject (a subclass of SCSPrechatObject) provides the user with a dropdown list of options. Each type has different properties you can configure. Create objects that don’t require user input using SCSPrechatObject.