← Back to blog · How-to guide · 5 min read

How to Add an AI Chatbot to Google Sites (Free, 3 Ways That Work)

Train a chatbot on your own website and documents, then put it on your Google Sites page in a few minutes. Here are the 3 ways that work, and the 2 things that don't.

RA
RagmyAI Team
Dec 3, 2026 · 5 min read
Add an AI chatbot to Google Sites

Quick answer: in Google Sites, use Insert > Embed with your chatbot's iframe code or its link. The floating script tag doesn't work on Google Sites, and the microphone doesn't work inside an embed, so add a button that opens your chatbot in a new tab for visitors who want to talk.

What you need

No coding is needed. The whole setup takes about 10 minutes.

Step 1: Create and train your chatbot

  1. Build your chatbot. Open RagmyAI, sign in and tap Build chatbot. Your website chatbot is created straight away.
  2. Train it on your website. Tap Train chatbot, then Website Link. Paste your site's address, choose the pages and train them.
  3. Add documents and facts. Use Upload Document for files, and Text Input for short facts like opening hours or prices.
  4. Set its personality. In Custom Instructions, describe who your chatbot is, its tone, and the rules it always follows.
  5. Give it a short link. Tap Edit chatbot link and use your brand name, like chat.ragmyai.com/yourshop (6 to 30 letters, numbers, hyphens or underscores).
  6. Test it. Tap Open chatbot link and ask the questions your visitors would ask.

Step 2: Add it to Google Sites (pick one)

Way 1: Embed code (iframe)

  1. On the Build chatbot screen, choose Iframe Tag and tap Copy embed code.
  2. In the Google Sites editor, open Insert > Embed and choose the Embed code tab.
  3. Paste the code, click Next, then Insert.
  4. Drag the corners of the box to make it bigger, around 400 by 600 pixels, then Publish.
<iframe
  src="https://chat.ragmyai.com/yourshop"
  allow="microphone"
  width="100%"
  height="600">
</iframe>

Way 2: Embed by URL

  1. On the Build chatbot screen, tap Copy chatbot link.
  2. In Google Sites, open Insert > Embed and stay on the By URL tab.
  3. Paste your chatbot link, click Insert, resize the box and publish.

Way 3: A button that opens the chatbot (for voice)

  1. Copy your chatbot link as in Way 2.
  2. In Google Sites, open Insert > Button.
  3. Name it, for example "Chat with us" or "Ask by voice", paste the link, and publish.

The chatbot opens in a new tab, where voice input works normally.

Our recommended setup: Way 1 or Way 2 so the chat sits on your page, plus a small Way 3 button next to it for visitors who prefer to speak.

What doesn't work on Google Sites, and why

The floating script tag. On a normal website, RagmyAI's script tag adds a chat button to the corner of every page. On Google Sites it shows nothing. Google Sites runs all embedded code inside its own sandboxed box, so a script can't reach your page to place a floating button. Use Way 1 or Way 2 instead.

The microphone inside the page. Browsers only allow a microphone in an embedded frame if every frame around it allows it too. Google Sites' own frame doesn't, and there is no setting to change it. That's what Way 3 is for.

Tips to keep your chatbot answering well

FAQ

Can I add a floating chat button to Google Sites?

Not with a script tag, because Google Sites doesn't run scripts on your page. Embed the chat with Way 1 or Way 2, or add a button (Way 3) that opens your chatbot.

Why doesn't the microphone work in my embedded chatbot?

Google Sites wraps every embed in its own frame without microphone permission, and there's no setting for it. Add a button that opens your chatbot in a new tab, where voice works.

Is it free?

Yes. Building your chatbot, training it and sharing its link are free on RagmyAI. Paid plans add more models and higher limits.

Can I use my business name in the chatbot link?

Yes. Tap Edit chatbot link on the Build chatbot screen and replace the ID with a name like chat.ragmyai.com/yourshop.

Using another website builder? See our guides for WordPress, Wix and Shopify, or try a live chatbot demo first. For any other site, see all the ways to embed a chatbot in your website free.

Add a chatbot to your Google Site today.

Free plan, no credit card. Train it on your website and documents in minutes.

Start free

Keep reading

More from the blog.