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
- A Google Sites page you can edit.
- A free RagmyAI account: the web app or the Android app.
- The content your chatbot should know: your website links, or documents such as PDF, DOCX, TXT or HTML files.
No coding is needed. The whole setup takes about 10 minutes.
Step 1: Create and train your chatbot
- Build your chatbot. Open RagmyAI, sign in and tap Build chatbot. Your website chatbot is created straight away.
- Train it on your website. Tap Train chatbot, then Website Link. Paste your site's address, choose the pages and train them.
- Add documents and facts. Use Upload Document for files, and Text Input for short facts like opening hours or prices.
- Set its personality. In Custom Instructions, describe who your chatbot is, its tone, and the rules it always follows.
- 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). - 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)
- On the Build chatbot screen, choose Iframe Tag and tap Copy embed code.
- In the Google Sites editor, open Insert > Embed and choose the Embed code tab.
- Paste the code, click Next, then Insert.
- 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
- On the Build chatbot screen, tap Copy chatbot link.
- In Google Sites, open Insert > Embed and stay on the By URL tab.
- Paste your chatbot link, click Insert, resize the box and publish.
Way 3: A button that opens the chatbot (for voice)
- Copy your chatbot link as in Way 2.
- In Google Sites, open Insert > Button.
- 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
- Read real questions. In RagmyAI, Web Chat > Notification > Web Chat Messages shows what visitors ask your chatbot.
- Retrain wrong answers. Correct an answer or add the missing fact with Text Input. The chatbot improves each time.
- Keep facts and personality apart. Prices, hours and policies go in Text Input or documents. Tone and rules go in Custom Instructions.
- Update it when your site changes. Retrain your website links after you change prices or add pages.
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.