Documentation Index
Fetch the complete documentation index at: https://docs.quarterzip.ai/llms.txt
Use this file to discover all available pages before exploring further.
How It Works
- User clicks a button →
window.Quarterzip.open()is called - The SDK creates an isolated UI panel (Shadow DOM) on the page
- A voice call connects to the agent automatically
- Microphone and screen sharing permissions are solicited from the user
- On Chromium browsers (Chrome, Edge), the call panel can pop out as a Picture-in-Picture window. On Firefox/Safari, the same UI renders inline on the page.
open().
1. Add the SDK Script
Place this snippet before</body> on any page where you want the agent available:
open()calls, then asynchronously loads the full SDK. Once loaded, the SDK will consumes the queue and take action.
2. Open the Agent
Trigger a call from any user interaction (button click, menu item, etc.):| Parameter | Required | Description | Type |
|---|---|---|---|
workspaceToken | Yes | Use the workspace token provided by Quarterzip. | String |
agentId | Yes | The agent’s ID which can be copied from the Quarterzip app | String |
user | Yes | The user who will join the call | Object |
user.email | Yes | End user’s email address | String |
user.displayName | Yes | End user’s display name | String |
user.id | Yes | Your unique internal user identifier | String |
3. Close the Agent
If you would like to cancel an in-progress call, this can be done with the.close() function. In normal operation the call will end gracefully upon user request, and calling close is not required.