Webflow, Framer and other site builders
Any builder that lets you add custom code works.
- 1In your site settings, find Custom code and paste the script tag into the section that goes before the closing body tag.
- 2Add an Embed or HTML element where you want AI, and paste a small box like the one below.
- 3Publish. Custom code usually runs on the published site, not inside the editor.
Site custom code (end of body)
<script src="https://cdn.chargemy.ai/v1/charge.js"></script>
Embed element
<input id="cm-q" placeholder="Ask about our menu" />
<button onclick="(async () => { const r = await charge.ai.chat(document.getElementById('cm-q').value); document.getElementById('cm-a').textContent = r.text })()">Ask</button>
<p id="cm-a"></p> Read next
Still stuck? Talk to us and we'll help.