3 ways to embed: all free

Embed a chatbot on your website
for free.
One line of code.

RagmyAI lets you embed a chatbot in your website for free, trained on your own documents, live in under 60 seconds. No credit card, no developer needed.

How it works

From document to live chatbot in three steps.

1

Train on your documents

Upload PDFs, Word docs, text files, or HTML pages. Your AI reads them and answers questions from your content, so visitors get answers about your business instead of guesses from the open internet.

2

Copy your embed code

Open Web Chat in the RagmyAI app. Your personalized script tag is already waiting: one line with your chatbot ID pre-filled. Copy it.

3

Paste before </body>

Paste the tag into your site's HTML. A floating chat launcher appears instantly: on WordPress, Shopify, Squarespace, Webflow, or any custom site.

Three ways to embed

Pick the format that fits your site.

Option 1 · Recommended

Script tag: floating launcher

Drops a chat button into the bottom-right corner of any page. Visitors click it, a window opens, and they talk to your AI without leaving the page. Zero layout changes required.

  • Works on every website that accepts HTML
  • Best for: product pages, e-commerce, support sites
  • No CSS conflicts: widget is self-contained
<script
  src="https://chat.ragmyai.com/chat-widget.min.js"
  data-page-id="YOUR_CHATBOT_ID">
</script>
RagmyAI embedded chatbot widget on a website

Option 2

Iframe: inline placement

Place the chatbot at an exact location in your page body: inside a sidebar, a help section, or a modal. You control the dimensions; the chatbot fills them.

  • Full control over width and height
  • Best for: knowledge bases, help centres, dashboards
  • Embeds inside Notion, Coda, and similar tools
<iframe
  src="https://chat.ragmyai.com/YOUR_CHATBOT_ID"
  allow="microphone"
  width="300"
  height="400">
</iframe>
RagmyAI chatbot embedded inline in a website page

Option 3

Public URL: no code at all

Every chatbot gets a shareable URL. Send it in an email, a QR code, a Slack message, or a Notion page. Anyone with the link gets a full-page chat interface, no embedding required.

  • Zero setup: just copy and share the link
  • Best for: internal tools, client handoffs, prototypes
  • Works as a QR code for offline materials
https://chat.ragmyai.com/YOUR_CHATBOT_ID
RagmyAI chatbot public URL full-page interface

Make it yours

Match the widget to your brand.

The script tag isn't one-size-fits-all. Set the chat window size, swap the button icon, and pick your own shape and color, all from attributes on the same line of code.

Attributes you can set

widget-width, widget-height
Size of the chat window when it opens.
button-width, button-height
Size of the launcher button itself.
button-border-radius
Button shape, from square to fully round.
button-background-color
Button color, in any hex code.
button-image-url
Your own icon or logo instead of the default.
button-image-width, button-image-height
Size of that icon inside the button.
<script
  data-page-id="YOUR_CHATBOT_ID"
  src="https://chat.ragmyai.com/chat-widget.min.js"
  widget-width="400px"
  widget-height="600px"
  button-image-url="https://ragmyai.com/assets/logo-icon.png"
  button-image-height="48px"
  button-image-width="48px"
  button-height="64px"
  button-width="64px"
  button-border-radius="20%"
  button-background-color="#1F4FD8">
</script>

Leave any attribute out and it falls back to the default look, so you only need to set what you want to change.

Step by step

Where to paste the chat embed code on your website.

Copy your script tag from Web Chat > Script Tag in the RagmyAI app, then paste it in the right place for your platform. Some platforms only allow custom code on paid plans.

WordPress

Install a header and footer code plugin (for example WPCode) and paste the script tag into the footer box, or add it to your theme's footer.php just before </body>.

Shopify

Go to Online Store > Themes > Edit code, open theme.liquid and paste the script tag just before </body>. Save, and the chat button appears on every page.

Wix

Go to Settings > Custom Code, add the script tag, load it on all pages and place it at Body - end.

Squarespace

Open Code Injection in your site settings and paste the script tag into the Footer box.

Webflow

Open Site settings > Custom code, paste the script tag into Footer code, then publish your site.

Google Sites

Google Sites does not run script tags, so use the iframe instead: Insert > Embed > Embed code, paste the iframe and resize the box.

Not on this list? If your site lets you add HTML, paste the script tag before </body>. If it only allows embeds, use the iframe or share your chatbot's public link.

After you go live

Monitor every conversation. Retrain from real visitor questions.

Once your chatbot is live, Web Chat > Notifications logs every exchange visitors have. Read any transcript and tap Retrain on any answer that was off, it opens the training editor with that exchange pre-loaded so you can correct it in context.

This is the fastest way to improve answer quality: real questions from real visitors, corrected one by one, each making the next answer sharper.

  • Full transcript for every visitor session
  • One-tap retraining from any conversation
  • Realtime usage notifications
Monitor and retrain embedded chatbot conversations

Use cases

What people embed it on.

E-commerce & Shopify stores

Train on your product catalogue, returns policy, and FAQs. Answer customer questions at 3am without hiring overnight support. Retrain from real shopper questions weekly.

  • Product recommendations from catalogue
  • Instant returns & shipping answers
  • 24/7 without hiring extra staff

Universities & online courses

Upload lecture notes, syllabi, and reading lists. Students get a tutor available around the clock that answers only from course materials, not from random internet sources.

  • Course-specific answers only
  • Reduces repeat questions to instructors
  • Works in 78 languages

SaaS & product documentation

Replace static help docs with a chatbot trained on them. Visitors ask questions in natural language instead of searching. Every unanswered question shows you a gap to fill.

  • Replaces keyword search in docs
  • Surfaces documentation gaps
  • Embeds directly in your app

"Excellently developed app that's easy to use and very intuitive. Highly recommended."

Jay D, RagmyAI power user
Jay D
Power user · Google Play review

"The best app ever. It helps me in school work and anything I want to know. Thanks to the owner of the app."

James Carter, Student
James Carter
Student · Google Play review

Common questions

Embed chatbot FAQ.

Is it free to embed a RagmyAI chatbot on my website?

Yes. The free plan lets you embed your chatbot with no credit card required. The widget, public URL, and iframe are all available on the free tier.

Do I need to know how to code?

No. Embedding takes one copy-paste. You get a script tag from the RagmyAI app: paste it before the closing </body> tag on any page. That's it.

Which website platforms does it work on?

Any platform that lets you add HTML: WordPress, Shopify, Squarespace, Webflow, Wix, and custom-coded sites. If you can paste a script tag, the chatbot works.

Can I see what visitors ask my chatbot?

Yes. Every conversation is logged under Web Chat > Notifications. You can read full transcripts and retrain answers directly from any exchange.

How is this different from a generic AI chatbot widget?

Generic chatbots answer only from what they learned on the internet, so they can drift off topic or make things up about your business. A RagmyAI chatbot is trained on your own website pages and documents and answers your visitors from that content. Until you train it, it answers from general knowledge, so add your content first.

How do I embed a chatbot in my website for free?

Sign up for RagmyAI free, no credit card needed. Upload a document, go to Web Chat > Script Tag, copy the one-line code, and paste it before </body> on any page. Your chatbot goes live instantly. The embed feature is free forever with no monthly message cap.

Can I change the widget's colors, size, or icon?

Yes. The script tag accepts optional attributes for window size, button size and shape, button color, and a custom icon image. Add only the ones you want, everything else keeps the default look.

How do I add a chatbot to my website?

Create a free RagmyAI chatbot and train it on your website links or documents. Then copy the script tag from Web Chat > Script Tag in the app and paste it before the closing </body> tag. A chat button appears on every page that has the code.

What does the chatbot embed code look like?

It is one script tag: <script data-page-id="your-page-id" src="https://chat.ragmyai.com/chat-widget.min.js"></script>. The app fills in your page ID for you, so you only copy and paste.

Can I embed the chatbot with an iframe?

Yes. Use an iframe when you want the chat inline, for example in a sidebar or on a help page: <iframe src="https://chat.ragmyai.com/your-page" allow="microphone" width="300" height="400"></iframe>. Copy the exact code from the app.

Does it work like a live chat widget?

It looks and works like a live chat widget, but an AI answers your visitors instantly, 24/7, from your own content. You can read every conversation in the app and improve any answer by retraining it.

Your website chatbot
is one paste away.

Free forever plan. No credit card. Train on a single PDF, embed in 60 seconds.

Start free, embed today

Want the full technical guide? Read the embed walkthrough →

Comparing tools? See our free Chatbase alternative guide →