The ASAPP Web SDK embeds a customizable chat interface into your website to quickly connect your users with GenerativeAgent and our Agent Desk. Beyond the AI conversation, the SDK handles authentication, conversation history across pages, proactive triggers, and the handoff to a human agent. When the conversation transfers to a human agent, the SDK either keeps the customer in the same chat window (when ASAPP is your CCaaS) or hands off to your CCaaS provider’s chat SDK.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.

How it works
- Website loads SDK: Your website loads the ASAPP SDK script, which initializes the chat interface
- User talks to GenerativeAgent: Customers interact with GenerativeAgent through the SDK’s chat interface
- GenerativeAgent resolves or transfers: GenerativeAgent either resolves the customer’s issue or determines that a human agent is needed
- Transfer to a human agent: How the handoff plays out depends on which agent desk handles the conversation:
- Using ASAPP’s Agent Desk: The human agent connects directly inside the ASAPP SDK. The customer stays in the same chat window.
- External CCaaS: The SDK fires an transfer event. Your handler unloads the ASAPP SDK and loads your CCaaS provider’s chat SDK so the customer continues with the human agent there.
- Customer talks to human agent: The conversation continues with the human agent in whichever chat interface the previous step put them in.
Before you begin
Before implementing the ASAPP Web SDK, you need:- Configure Tasks and Functions for GenerativeAgent
- Configure your CCaaS backend connection in AI Console — choose a Webhook or Managed Stream (SSE/WebSocket) inbound event strategy based on your CCaaS platform’s capabilities
- Contact your ASAPP account team to enable the web SDK and obtain your
APIHostnameandAppId
Getting started
Embed the script
Paste the ASAPP Chat SDK snippet into your site’s HTML. Place it near the top of the This snippet asynchronously downloads the SDK and creates a global
<head> element for best performance:ASAPP function for interacting with the Web JavaScript API. Add it to all pages where you want the chat widget to appear. The SDK is compatible with most tag managers if you prefer to load it that way.Initialize the SDK
Call Your ASAPP account team provides both values during onboarding. This call makes a network request to your
ASAPP('load') with your APIHostname and AppId:APIHostname and determines whether to display the chat badge based on your business hours, trigger settings, and admin configuration.Configure GenerativeAgent
Provide the starting task name and input variables so GenerativeAgent knows where to begin and has the context it needs before the conversation starts:See Web App Settings for the full list of configuration options.
Handling transfers to a human agent
When GenerativeAgent transfers a conversation to a human agent, what happens next depends on which agent desk you use. ASAPP Agent Desk: The human agent connects directly inside the ASAPP SDK. The customer stays in the same chat window throughout. Your own agent desk: Subscribe to theexternal:transfer event. In the handler, call ASAPP('unload') to remove the ASAPP SDK from the page, then load your agent desk’s chat SDK so the customer continues the conversation with the human agent in that interface.
See the Web JavaScript API for the full event payload, including the transcript and any data attached by System Transfer Functions.
Next steps
Web App Settings
Full reference for all SDK configuration properties
Web JavaScript API
All SDK methods and event callbacks
Web Customization
Customize the badge, iframe, icons, and styling
Configure API Connections
Configure CCaaS and other backend connections in AI Console
Go Live
Prepare your integration for production deployment