← All articles

Getting Started

How to Add an AI Chatbot to WordPress, Shopify or Webflow

One script tag, step by step: training the agent, installing it on your platform, limiting it to your domains and testing it.

RagForge AI Team · Published Nov 23, 2026 · 3 min read

Adding an AI chatbot to your website takes one script tag. This is how to do it with RagForge AI on the most common platforms, and what to check before you go live.

What do you need before you start?

A RagForge AI account, the content you want the chatbot to answer from, and access to your site’s code or custom-code settings.

  • An account: the 30-day free trial of AI website chat needs no card.
  • Your content: your website address and any PDFs, such as price lists, brochures or policies.
  • Access: the theme, footer or custom-code setting of your website platform.

Step 1: train the agent

Add your website pages and upload your PDFs in the dashboard. The agent answers from that content.

Retrain it whenever your information changes, and the agent works from the new content. Ask it a few of your customers’ usual questions in the dashboard before you go live.

Step 2: copy the install code

The install card in the dashboard shows a single script tag. Paste it just before the closing </body> tag of your site so it loads on every page.

WordPress

Paste the script tag into your theme’s footer, or use a plugin that adds code to the footer of every page.

If your site uses a caching plugin, clear the cache afterwards so visitors get the updated pages.

Shopify

In your Shopify admin, open Online Store, then Themes, choose Edit code on your live theme and open theme.liquid. Paste the script tag just above the closing </body> tag and save.

Webflow

Open your site settings, go to Custom code and paste the script tag into the footer code box, then publish the site.

Squarespace, Wix and custom sites

Use the platform’s code injection or custom-code setting for the footer of every page.

On a custom site, or one built with a framework such as Next.js, add the tag to the layout that wraps every page.

Step 3: limit the code to your own website

In the dashboard you can list the websites allowed to use your install code, so it works only on your own domains.

Does your site use a Content-Security-Policy?

If your site sends a Content-Security-Policy, the browser may block the widget until the RagForge AI addresses are allowed. The install card in the dashboard lists what to add.

Step 4: test it

Open your site in a private window and talk to the agent as a customer would.

  • Ask the questions your customers ask most and check the answers.
  • On Pro and Business, tap Call and try a voice conversation.
  • Open the dashboard and check that the conversation appears there.