Developer docs
Add the website widget
Generate a script tag for a Charigent and an approved website domain.
Last verified:
Prepare the embed
- In Dashboard, open Charigents, select the Charigent, and open its Widget tab.
- Under Allowed Domains, enter the website host and select Add. Confirm the host appears in the list.
- Turn Enabled on. The public widget serves when the Charigent is active and an allowed domain is saved.
- Select Copy Embed in Embed Code, then paste the copied script tag into the approved website.
Generated script tag format
This tag is generated from the same entity type, entity ID, and site origin used by the Widget panel. It points to the platform widget loader.
<script src="https://app.charigent.com/api/widget/charigent/YOUR_CHARIGENT_ID"></script>Embed options
The Widget panel lets you set Title, Font family, Button color, Accent color, and Position, then select Save Appearance. Enabled and Allowed Domains are separate controls. The saved widget settings and domain list are checked when the script loads.