New to Quarterzip?Be sure to visit the Getting Started page before continuing with this section.

Quickstart Plan
- Configure your Quarterzip Workspace for SDK
- Install the Quarterzip SDK
- Grant Security Permissions
- Trigger the Quarterzip Agent
Configure your Quarterzip Workspace for SDK
Within the Quarterzip app, visit the SDK Settings (Settings -> SDK) for the Quarterzip workspace that has the agent you wish to integrate. This page provides the configuration options to restrict who may serve your agent on your behalf.
- Workspace Token: a public token used to authenticate your site to Quarterzip.
- Allowed Origins: an optional list of site origins that are authorised to serve your Quarterzip agent. This list may include wildcards for subdomains, i.e.
https://*.example.com

Install the Quarterzip SDK
CDN Script
NPM Package
Grant Security Permissions
The Quarterzip SDK operates in a security sandbox separate from your site. In order for your Quarterzip agent to communicate with your users, the following permissions must be granted if enforced.CSP requirements
Only relevant if your page sends aContent-Security-Policy header, then it must permit Quarterzip’s SDK origin to be framed.
Permissions Policy
Only relevant if your page sends aPermissions-Policy header, then it must permit Quarterzip’s SDK origin the following permissions:
Trigger the Quarterzip Agent
Callwindow.Quarterzip.open() from any user interaction; i.e. a button-press. Visit API Reference for more details.

The Help icon button calls window.Quarterzip.open() on user interaction.
Best Practices
Set yourself up for success.
Webhooks
React and receive call data.
Advanced patterns
Passing additional context to the agent
Thecontext parameter may be used to provide additional information to the agent to enhance the conversation; e.g. the user’s plan, country, or handover notes from another support tool. The agent only receives this information if the user decides to start the call. The amount of context is capped at 2,000 characters.
Conditionally present Quarterzip agents
Most customers prefer to show agents to users based on feature-flags or user-attributes. Screen-sharing requires the user’s browser to have thegetDisplayMedia() web API, which is unavailable on most mobile devices & can help determine which users filter against.
Closing on route change
End the call when a user navigates away from a specific area (React Router v6 example):React wrapper hook
What’s Next?
Best Practices
Set yourself up for success.
Webhooks
React and receive call data.

