Logo

Integration Guide

Add Copilot to your website in minutes - no coding experience required

Add Copilot to Your Website

Transform any button on your website into a smart lead generation tool. When visitors click your button, a chat window opens where your AI assistant can score leads and book meetings.

Add the script

<script>
  window.COPILOT_CONFIG = { baseUrl: 'https://client.starling.sh', companySlug: 'sitemap.xml' };
</script>
<script src="https://client.starling.sh/embed.js"></script>

Paste this before the closing </body> tag in your HTML

Add your button

<button onclick="window.Copilot.open()">Book a Demo</button>

Use this code for any button you want to trigger the chat

Control the widget

// Control the widget:
window.Copilot.open()   // Opens the widget
window.Copilot.close()  // Closes the widget
window.Copilot.toggle() // Toggles open/close

Platform Guides

WordPress

Add to your theme footer or use a plugin like Insert Headers and Footers

Webflow

Add to Project Settings → Custom Code → Footer Code

Shopify

Edit your theme.liquid file or use the Script Tag API

React/Next.js

Add script to _document.js or use our React component