Skip to main content
Widgets embed AI agents directly on your site. Use them for customer support, lead capture, content recommendations, and similar workflows.

Step 1: Create a deployment

  1. Go to User Hub → Agents.
  2. Find the agent you want and click Deploy.
  3. Choose Website Widget as the deployment type.
  4. Give your deployment a name, for example Support Chat Widget.

Step 2: Copy the embed code

After creating the deployment, copy the embed snippet:
<!-- Add your widget loader -->
<script src="https://api.corgent.ai/widget.js" async></script>

<!-- Mount point (or let the loader create one) -->
<div id="corgent-widget"></div>

<script>
  window.CorgentWidget = window.CorgentWidget || [];
  window.CorgentWidget.push({
    deploymentId: 'YOUR_DEPLOYMENT_ID',
    apiUrl: 'https://api.corgent.ai'
  });
</script>

Step 3: Add to your website

  1. Copy the embed code.
  2. Paste it into your HTML just before the closing </body> tag.
  3. Save and publish your site.
  4. The widget appears automatically on the page.

Popular platforms

Widgets work with WordPress, Webflow, Wix, Squarespace, Shopify, React, Vue, custom HTML sites, and more.

Domain allowlist

Specify which domains may use your deployment. This prevents unauthorized use of your credits.