How to Add an AI Chat Assistant to Any Website
Last updated: July 2026 · No coding required
Ask Leya is a zero-code AI support assistant you add to any website with one line of code. It’s grounded in your own content (retrieval-augmented, so it doesn’t make things up), answers customers in 50+ languages around the clock, and captures leads while you’re away. This guide shows exactly where to paste the code on every major platform.
YOUR_PUBLIC_KEY; replace it with yours.The one line of code
Everything below comes down to pasting this snippet. It loads safely and won’t slow your site down:
<script src="https://api.askleya.io/widget/loader.js" data-key="YOUR_PUBLIC_KEY" async></script>
Choose your platform
Pick your platform for a dedicated, step-by-step guide:
The 3-step summary
- 1Copy your install code from your Ask Leya dashboard.
- 2Paste it into your website — before the closing </body> tag, or into your platform’s code box (see your platform above).
- 3Save and reload. Your AI assistant is live.
Prefer the full-page AI window?
As well as the corner chat bubble, Ask Leya offers a full, ChatGPT-style assistant you can embed directly in a page — great for a help centre, contact page, or homepage. The steps are identical; you just paste the “window code” (found in your dashboard) wherever you want it to appear.
Frequently asked questions
Do I need to know how to code to install Ask Leya?
No. Installing Ask Leya is a copy-and-paste of a single line of code. Most website builders (WordPress, Wix, Squarespace, Shopify) have a dedicated box for this, and if you use Google Tag Manager you don’t touch your site’s code at all.
Where do I find my own code?
Log in to your Ask Leya dashboard and open the Overview page. Your personal install code — with your unique key already filled in — is shown there with a one-click copy button.
Will the assistant slow down my website?
No. The code loads asynchronously and runs inside an isolated frame, so it never blocks your page from loading and can’t conflict with your site’s design or scripts.
Can I add it to just one page?
Yes. Place the code only on the page(s) where you want the assistant. For the full-page AI window, drop the window code exactly where you want it to appear.
Ready to try it?
Start free and add your AI assistant to your site today — or email support@askleya.io if you’d like a hand with installation.
Ask Leya