autoResponseAPI
This object contains all the APIs associated with the auto-response experience. For a guide, see Auto-Response API.
setAutoResponseParameters({parameters})
Adds values to the list of parameters. These parameters are passed to the auto-response component in Salesforce. This method must be called after the onEmbeddedMessagingReady
event is dispatched.
Parameters
{parameters}
: Required. A JSON object containing a list of key-value pairs of the parameter names and their values.
Example
embeddedservice_bootstrap.autoResponseAPI.setAutoResponseParameters({
cartValue: "123",
cartDescription: "My cart description",
});
removeAutoResponseParameters({parameters})
Removes parameters from the list of parameters. This method must be called after the onEmbeddedMessagingReady
event is dispatched.
Parameters
{parameters}
: Required. An array of strings. Each string is a parameter to be removed from the auto-response data.
Example
embeddedservice_bootstrap.autoResponseAPI.removeAutoResponseParameters(["cartDescription"]);