Website Integration
Want your chatbot live on your website without building anything custom? Copy one snippet from Verly, paste it into your website, and publish the change. If you have ever installed Google Analytics, Meta Pixel, or any other website script, this works the same way.
</body>, you can install the widget.Copy This Snippet
<script
src="https://widget.verlyai.xyz/embed.js"
data-chatbot-id="YOUR_CHATBOT_ID"
data-position="bottom-right"
data-primary-color="#4F46E5"
></script>
This is the same embed format Verly uses on its own website. The only value that must be unique to you is data-chatbot-id.
| Setting | What it does |
|---|---|
src | Loads the Verly website widget. |
data-chatbot-id | Connects the widget to your chatbot. |
data-position | Chooses where the chat button appears. Common values: bottom-right or bottom-left. |
data-primary-color | Matches the button to your brand. Use a HEX value like #4F46E5 or an RGB value like rgb(33, 32, 32). |
Where Do I Get This Code?
- Open your chatbot in Verly.
- Go to Customization.
- Open the Integration section.
- Copy the embed code shown there.
Install It On Your Website
Step 1: Open your website editor
Use whatever tool manages your website today. That might be WordPress, Shopify, Webflow, Wix, Framer, or a custom-built website.
Step 2: Paste the script before the closing </body> tag
This is the safest place for most websites because it loads the chatbot after the page content.
<body>
...
<script
src="https://widget.verlyai.xyz/embed.js"
data-chatbot-id="YOUR_CHATBOT_ID"
data-position="bottom-right"
data-primary-color="#4F46E5"
></script>
</body>
Step 3: Save and publish your website
If your platform has both Save and Publish, make sure you publish the change.
Step 4: Open your website and test it
Visit your website in a new tab or incognito window. You should see the chat button in the bottom corner.
Where Exactly Should I Paste It?
Use the option that matches your website:
- WordPress: Add the snippet in your footer code area, theme footer, or a header/footer code injection plugin.
- Shopify: Paste it in
theme.liquidright before</body>. - Webflow: Add it in Site settings -> Custom code -> Footer code.
- Wix / Framer / Squarespace: Use the custom code or footer code section.
- Custom HTML website: Paste it into the main page template right before
</body>.
If Your Website Uses Next.js or React
Your developer can add the same widget globally in the main layout file. This is how Verly loads the widget on its own Next.js website.
import Script from "next/script";
<Script
src="https://widget.verlyai.xyz/embed.js"
data-chatbot-id="YOUR_CHATBOT_ID"
data-position="bottom-right"
data-primary-color="rgb(33, 32, 32)"
strategy="afterInteractive"
/>
<script
src="https://widget.verlyai.xyz/embed.js"
data-chatbot-id="YOUR_CHATBOT_ID"
data-position="bottom-right"
data-primary-color="#4F46E5"
></script>
- Next.js (App Router): add it in
app/layout.tsxinside<body>. - Next.js (Pages Router): add it in
pages/_document.tsxinside<body>. - React / Vite: add it in
index.htmlbefore</body>.
Quick Tips
- Keep the snippet on every page where you want the chatbot available.
- Do not paste the same widget code twice, or you may see two chat buttons.
- If you change
data-primary-colorordata-position, save and republish your website. - If you create a new chatbot in Verly, update the
data-chatbot-idto the new one.
Troubleshooting
The widget is not showing up
Check these first:
- You pasted the code on the live website, not only inside a preview or draft editor.
- The
data-chatbot-idis correct. - You saved and published the website after adding the snippet.
- An ad blocker or script-blocking browser extension is not hiding the widget during testing.
The widget shows up twice
The script has probably been added in more than one place. Search your website code for widget.verlyai.xyz/embed.js and keep only one copy.
I want the chatbot only on specific pages
Ask your developer to load the widget only on selected pages or templates instead of the global layout.
Next Steps
- Customize your chatbot to match your brand.
- Deploy your latest changes before sending real users to the bot.
- Set up Identity Verification if your users log in to your app and you want personalized conversations.