3 ways to embed: all free
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
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.
Open Web Chat in the RagmyAI app. Your personalized script tag is already waiting: one line with your chatbot ID pre-filled. Copy it.
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
Option 1 · Recommended
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.
<script
src="https://chat.ragmyai.com/chat-widget.min.js"
data-page-id="YOUR_CHATBOT_ID">
</script>
Option 2
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.
<iframe
src="https://chat.ragmyai.com/YOUR_CHATBOT_ID"
allow="microphone"
width="300"
height="400">
</iframe>
Option 3
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.
https://chat.ragmyai.com/YOUR_CHATBOT_ID
Make it yours
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.
widget-width, widget-heightbutton-width, button-heightbutton-border-radiusbutton-background-colorbutton-image-urlbutton-image-width, button-image-height<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
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.
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>.
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.
Go to Settings > Custom Code, add the script tag, load it on all pages and place it at Body - end.
Open Code Injection in your site settings and paste the script tag into the Footer box.
Open Site settings > Custom code, paste the script tag into Footer code, then publish your site.
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
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.
Use cases
Train on your product catalogue, returns policy, and FAQs. Answer customer questions at 3am without hiring overnight support. Retrain from real shopper questions weekly.
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.
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.
"Excellently developed app that's easy to use and very intuitive. Highly recommended."
"The best app ever. It helps me in school work and anything I want to know. Thanks to the owner of the app."
Common questions
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.
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.
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.
Yes. Every conversation is logged under Web Chat > Notifications. You can read full transcripts and retrain answers directly from any exchange.
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.
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.
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.
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.
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.
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.
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.
Free forever plan. No credit card. Train on a single PDF, embed in 60 seconds.
Start free, embed todayWant the full technical guide? Read the embed walkthrough →