If you want to start fast, follow these steps:Documentation Index
Fetch the complete documentation index at: https://docs.asapp.com/llms.txt
Use this file to discover all available pages before exploring further.
- Embed the Script
- Initialize the SDK
- Customize the SDK
- Authenticate Users
- Configure GenerativeAgent
1. Embed the Script
- Embed the script directly inline. See the instructions below.
- Use a tag manager to control where and how the scripts load. The ASAPP Chat SDK works with most tag managers. See the tag manager documentation for more detailed instructions.
<head> element.
- Creates a
<script>element that asynchronously downloads thehttps://sdk.asapp.com/chat-sdk.jsJavaScript. - Creates a global
ASAPPfunction that enables you to interact with ASAPP’s JavaScript API.
2. Initialize the SDK
After you Embed the Script into the page, you can start using the JavaScript API to initialize and display the application. To initialize the ASAPP Chat SDK, call theASAPP('load') method as seen below:
APIHostname and AppId values to you after coordination between your organization and your ASAPP Implementation Manager. Once ASAPP determines and provides these values, you can make the following updates:
-
Replace
API_HOSTNAMEwith the hostname of your ASAPP API location. This string will look something like -
Replace
APP_IDwith your Company Marker identifier. This string will look something like'examplecompany'.
ASAPP('load') will make a network request to your APIHostname and determine whether or not it should display the Chat SDK Badge. The Badge displays based on your company’s business hours, your trigger settings, and whether or not you have enabled the SDK in your Admin control panel.
For more advanced ways to display the ASAPP Chat SDK, see the JavaScript API Documentation.
3. Customize the SDK
After you Embed the Script and Initialize the SDK, the ASAPP Chat SDK should display and function on your web page. You may wish to head to the Customization section of the documentation to learn how to customize the appearance of the ASAPP Chat SDK.4. Authenticate Users
Some integrations of the ASAPP Chat SDK allow users to access sensitive account information. If any of your use cases fall under this category, please read the Authentication section to ensure your users experience a secure and seamless session.5. Configure GenerativeAgent
If you are integrating with GenerativeAgent, provide the starting task name and any input variables when loading the SDK. These direct GenerativeAgent to the right starting point and give it the context it needs before the conversation begins.external:transfer event to unload the ASAPP SDK and load your agent desk’s chat SDK when GenerativeAgent transfers the conversation. See Web App Settings for the full list of GenerativeAgent-specific settings.