Deep Links
The Assisted Service Module supports sending and resolving deep links which allow CSA to start emulation instantly. There are several different cases of using a deep link to start the emulation:
- Emulating customer, for example https://electronics.local:9002/yacceleratorstorefront/assisted-service/emulate?customerId=customerID
- Emulating customer and cart, for example https://electronics.local:9002/yacceleratorstorefront/assisted-service/emulate?customerId=customerID&cartId=cartID
- Emulating anonymous cart, for example https://electronics.local:9002/yacceleratorstorefront/assisted-service/emulate?cartId=anonymousCartID
- https://electronics.local:9002/yacceleratorstorefront/assisted-service/emulate
- Not emulating a user, for example not emulating a user, for example https://electronics.local:9002/yacceleratorstorefront/assisted-service/emulate
You can use the deep links in the following scenarios:
- Sending auto-notification emails to CSAs
- Sending customers' questions to CSAs
- Not emulating a user, for example displaying a list of all customers, so that CSAs can start emulating the customer easily
You can create the deep links by appending a mandatory customerID and a cartID, or the orderId parameter to the URL. When you append the orderId parameter, you can use either the order code or the order ID.
The AssistedServiceRedirectStrategy interface allows you to modify the redirection behavior. Moreover, if a deep link does not have a cartId as a parameter, the ASM looks for the latest active cart and emulates it. Only when a customer has no carts, a new one is created. For more information, see the Configuring Deep Link Redirections section of the assistedservicestorefront AddOn document.
You can add the &fwd parameter to the URL, which is to redirect the customer to any path inside the accelerator, as those paths are relative to accelerator's root. No special configuration is needed. You just have to provide &fwd parameter in URL for ASM deep link. For example: <host:local>/yacceleratorstorefront/assisted-service/emulate?customerId=keenreviewer18@hybris.com&fwd=/my-account/orders
Customer Support Backoffice
In the Customer Support Backoffice, there is an option to launch the assisted service mode. There are three emulation possibilities:
- If no customer is selected, an anonymous assisted session opens.
- If a customer is selected, an assisted session emulating that customer opens and the assisted service agents is redirected to the My Account page.
- If a customer with a valid cart is selected, an assisted session emulating that customer and their cart opens and the assisted service agents is redirected to the Cart page.
Properties
| Name | Description |
|---|---|
|
<cscockpit.assistedservice.deeplink> |
Enables and displays the Launch ASM button in the Customer Support Backoffice. Default value: true |
|
<assistedservicestorefront.deeplink.link> |
Provides the emulation link to other extensions. Default value: /assisted-service/emulate |
Configuring Deep Link Redirections
Whenever a customer service agent follows an ASM deep link, the link is evaluated relative to the redirection behavior. For more information on the deep links, see the Deep Links section of the assistedservicefacades Extension document. The default implementation of the AssistedServiceRedirectStrategy interface, the DefaultAssistedServiceRedirectStrategy class handles different redirection behaviors. You can configure the redirection behavior in the local.properties file:
assistedservicestorefront.redirect.customer_and_cart=/cart assistedservicestorefront.redirect.customer_only=/my-account assistedservicestorefront.redirect.error=/
| Property | Description of the Redirection | Default Value |
|---|---|---|
| <assistedservicestorefront.redirect.customer_and_cart> | To be followed when a logged-in customer has cart entries. | /cart |
| <assistedservicestorefront.redirect.customer_only> | To be followed when a logged-in customer has no cart entries. | /my-account |
| <assistedservicestorefront.redirect.error> | To be followed when there is an anonymous user or when an error occurs. | / |