- Basic Integration (no Authentication)
- Basic Integration (With Authentication)
- Customizing the Interface
- Advanced Integration
Basic Integration (no Authentication)
The most basic integrations are ones with no customizations to the ASAPP interface and no integrated use cases. If your company is simply providing an un-authed user experience, an integration like the one below may suffice. ee the App Settings page for details on the APIHostname and AppId settings. The following code snippet is an example of a non-authenticated integration with the ASAPP Chat SDK.
Basic Integration (With Authentication)
Integrating the Chat SDK with authenticated users requires the addition of theCustomerId
, ContextProvider
, and UserLoginHandler
keys.
See the App Settings page for more detailed information on their usage. With each of these keys set, a user will be able to access integrated use cases or be capable of logging in if they are not already.
The following code snippet is an example of providing user credentials for allowing a user to enter integrated use cases.
UserLoginHandler
, allowing them to authorize.
Here’s a sample of what the Sign In button looks like.

Customizing the Interface
The Chat SDK offers a few basic keys for customizing the interface to your liking. TheDisplay
key enables you to perform those customizations as needed. Please see the Display Settings section for detailed information on each of the available keys.
The following code snippet shows how to add the Display key to your integration to customize the display settings of the Chat SDK.

Advanced Integration
Here’s a more robust example showing how to utilize most of the ASAPP Chat SDK settings. In the examples below we will define a few helper methods, then pass those helpers to the Load or SetCustomer APIs. The following example showcases a ContextProvider that sets some basic session information, then sets any available user authentication information. Once that information is retrieved, it passes the prepared context to thecallback
so that ASAPP can process each Chat SDK request.
The following code snippet is a ContextProvider example utilizing session expiration conditionals.
isDisplayingChat
argument).
If it’s configured to display, it prepares some event bindings through the Action API which in turn call an example metrics service.
The following code snippet shows an onLoadComplete
handler being used with the isDisplayingChat conditional and Action API.