prechatAPI

This object contains all the APIs associated with pre-chat. For a guide, see Pre-Chat API.

Removes hidden pre-chat fields from Salesforce. This method must be called after the onEmbeddedMessagingReady event is dispatched and before the conversation begins.

ParameterTypeDescription
First parameterArray of stringsArray of strings containing the pre-chat fields to be removed from the conversation.

Sends hidden pre-chat fields to Salesforce. This method must be called after the onEmbeddedMessagingReady event is dispatched and before the conversation begins.

ParameterTypeDescription
First parameterobjectA list of key-value pairs contains the pre-chat field names and their values.