How to Add an AI Assistant to WordPress
Last updated: July 2026 · No coding required
Adding an AI assistant to WordPress takes about two minutes and no coding. You’ll paste a single line of code into your site’s footer using a free plugin — here’s exactly how.
First, get your code. Log in to your dashboard → Overview to copy your install code (your unique key is already filled in). The example below uses a placeholder
YOUR_PUBLIC_KEY.Step-by-step
- 1In your WordPress admin, go to Plugins → Add New and install + activate the free plugin “WPCode – Insert Headers and Footers”.
- 2From the left menu, open Code Snippets → Header & Footer.
- 3Paste your code into the Footer box.
- 4Click Save Changes, then reload your site — your assistant appears in the corner.
Your install code
<script src="https://api.askleya.io/widget/loader.js" data-key="YOUR_PUBLIC_KEY" async></script>
Prefer the full-page AI window?
Ask Leya also offers a full, ChatGPT-style assistant you can embed directly in a page. The steps on WordPress are identical — just paste the “window code” from your dashboard wherever you want it to appear.
Guides for other platforms
Add an AI assistant to Shopify→Add an AI assistant to Wix→Add an AI assistant to Squarespace→Add an AI assistant to Webflow→Add an AI assistant to Google Tag Manager→Add an AI assistant to Any HTML Website→
Ready to try it?
Start free and add your AI assistant to WordPress today — or email support@askleya.io if you’d like a hand.
Ask Leya