Skip to main content

Migrate from Anywhere Expert

Package Info

You can import our package by running:

yarn add @soluto-private/remote-expert-sdk

This package is just a small wrapper that pulls the latest version from an S3 bucket automatically and injects it into your site. To get the API below, you will have to inject the SDK into your site. You can see the usage guide documentation for more information on how to do that.

New API

Anywhere Expert had a slightly different API then we do. As a result, you will have to change some function calls and behaviors. Below is a list of different functions that Anywhere Expert allowed you to use, and the replacements we suggest you should use in our API.

appendSettings()

You should use one of the functions in our API to replace any settings that you would modify in Anywhere Expert. We have backwards compatibility with each of the different settings that Anywhere Expert allowed you to change.

Here's a full list of replacements for different setting values:

If you were changing an additional setting in Anywhere Expert that is not listed here, please reach out.

auth()

The authorization works slightly different in our SDK. See the auth guide for more information.

getAreExpertsAvailable()

This is now deprecated. If you have a use case for this, and it's essential for business, please reach out.

initialize()

If you were previously using initialize, you can see our documentation for our version of initialize() and adjust as necessary.

sendMessage()

We have a function, sendMessage, that behaves similarly to how this function worked. There are options to automatically send a message, or pre-fill a message for the customer. There is no way to send a message with a custom author though. If that is a use case that is essential for business value, please reach out.

setNotificationsToken()

We have no equivalent for setting a notifications token mid-session. However, you can initialize the SDK with a custom notifications token. See initialize() for more information. If you do need this feature, you can reach out to use and we can discuss adding this feature.

triggerMessagingOverlay()

Trigger messaging overlay would just expand or collapse the SDK depending on the current state. You can use our functions expandChatOverlay() or collapseChatOverlay() to achieve the same thing.

Events

If you were previously using events in your application, you will have to change it up a bit since our eventing system is slightly different from Anywhere Expert. In Anywhere Expert, you could register different functions to respond to different events. In our SDK, you can register one event handler at initialization to handle all events. See the event guide and initialize() for more information.

Plugins

Plugins are now deprecated. If you were using plugins, and they are essential for business, please reach out.