How to add an AI agent to your website
A practical guide to AI website agents: what to look for, what to prepare, and how to install one on WordPress, Shopify, Webflow, Squarespace or Wix in minutes.
4 min read

An AI website agent is an assistant that lives on your site, knows your business, and helps visitors find what they came for. Installing one is a single line of code. Choosing one, and making sure it says the right things, takes a little more thought. This is the whole job, from start to finish.
1. Decide what it's for
Before you compare tools, write down what visitors come to your site to do and where they get stuck. Find a product. Check whether it comes in their size. Get a price. Book. Find out where their order is. The agent should be judged by whether it helps them do those things, not by how many questions it keeps away from your team.
2. Know what to look for
- It answers from your own material: your site, your documents and the answers your team writes. And you can read what it learned and correct it.
- It shows real things. Links to your actual pages, products with their real prices, not a paraphrase.
- It checks its own replies, so it can't hand a visitor a phone number or link that isn't yours.
- It hands over well. Your team is notified and can take over from an inbox, with the conversation intact.
- It picks up leads from the conversation rather than putting a form in front of people before they've been helped.
- It fits your site, in your colours, and works properly on a phone.
- It installs without a plugin. A script tag works on any platform that allows custom code, and there's nothing to keep updated.
3. Prepare what it will read
The agent learns from what your site already says, so the quickest improvement is making sure your site says what people actually ask: opening hours, prices or price ranges, delivery and returns, how to get in touch. The footer matters more than you'd think, because that's where most of those details live.
Pages that only show their text through JavaScript, or as pictures of text, may come back thin. Upload the documents that hold the rest, such as price lists, menus and policies, and type in anything else that matters. Then read what the agent learned and fix whatever is wrong. Your edits survive every later re-read of the site, for the reasons in your edits should outlive the crawler.
4. Install it
Paste one line on every page that should show the agent, just before the closing </body> tag. Your own copy, with your site ID already in it, is in the dashboard under Settings, then Installation.
<script src="https://widget.whiz.chat/loader.js" data-site-id="YOUR_SITE_ID" defer></script>- WordPress: a header and footer code plugin, with the tag in its site-wide footer box.
- Shopify: your theme's
theme.liquid, just before</body>. - Webflow, Squarespace and Wix: each has a custom code setting, usually on paid plans only.
- React, Next.js, Vue and other single-page apps: the npm package instead of the tag, never both.
- Working with a coding agent? The dashboard has a prompt to paste into it that picks the right method for your stack.
The step-by-step version for each platform is in the install guide.
5. Check it, then read the first week
The dashboard shows the agent as installed within seconds of the first page load on your own domain. Ask it the ten questions you get most often and see what it says. Then read the first week of conversations in the inbox. Questions it couldn't answer collect in a review queue under Agent, then Answers: write each answer once and the agent uses it from then on.
Or see it on your site first
You don't need to install anything to find out what an agent would do with your site. Type your address and your homepage comes back with its agent along the bottom, ready to be asked anything. On a Shopify store it searches your real products and fills a cart. For the bigger picture of where this is heading, see what is a conversational website.
Questions
How do I add an AI agent to my website?
Most AI website agents install with one script tag, pasted just before the closing body tag or into your platform's custom code settings. With Whizchat you sign up, let it read your site, check what it learned, then paste the tag. Single-page apps can use the npm package instead.
Does an AI website agent work with WordPress, Shopify, Webflow, Squarespace and Wix?
Yes, as long as the platform lets you add custom code. Some site builders only allow custom code on their paid plans.
What does an AI website agent learn from?
Whizchat's agent reads your website's pages, the documents you upload and the answers your team writes. You can read everything it learned and correct it, and your corrections survive later re-reads of the site.