Auto-Response Component for iOS
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:
|UI SDK||Core SDK|
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.
- Implement the
TemplatedUrlDelegateinterface. This delegate contains the
didRequestTemplatedValuesmethod, which the SDK calls to set parameter values.
- Add your delegate to the SDK using the
CoreClient.templatedUrlDelegateproperty. See the
After you register your delegate, the SDK automatically calls the
didRequestPrechatValues method before an auto-response Messaging component is shown.