Auto-Response Component for Android

Send customers structured content (such as survey links) with Messaging auto-response components.

This feature requires version 1.2.0 or later of the Messaging for In-App SDK.

This article applies to the following implementations:


An auto-response is a text or link response sent when a customer initiates a messaging session, an agent joins, or a session ends. This topic describes how to send parameters to Salesforce for the auto-response Messaging component. You can use this component during or after the conversation to show the user a web page, such as a survey. To learn about and set up auto-response components, see Create a Messaging Component: Auto-Response.

The Messaging for In-App UI SDK automatically displays any auto-response components that you add in Salesforce. You don't write any code to display this component. If you're using the Core SDK, you can process the incoming ConversationEntry object as you would any other incoming message. This documentation shows you how to optionally pass additional parameters to the URL that is presented to the user.

After you've set up the auto-response component in Salesforce, you can optionally send additional parameters from the app using the SDK. These parameters are mapped to the path and the query string of the auto-response URL.

  1. Implement the TemplatedUrlValuesProvider interface. This provider contains the setValues method, which the SDK calls to set parameter values.
  2. Add your provider to the SDK using the CoreClient.registerTemplatedUrlValuesProvider property. See the CoreClient reference documentation.

This sample requires the configuration object that you created when setting up the UI SDK or the Core SDK. See Build a UI SDK App or Build a Core SDK App for more information.

After you register your provider, the SDK automatically calls the setValues method before an auto-response Messaging component is shown.