A WordPress AI chatbot is installed in one of two ways: with a WordPress plugin that runs the chatbot inside your site, or with a hosted AI agent that you add by pasting one script tag. On Webflow there is no plugin directory for this, so the script tag in the site's custom code settings is the standard method, and it takes a few minutes on either platform.
This guide is part of our complete guide to the AI agent for your website. It covers the choice between plugin and script, the three ways to add a script on WordPress, the Webflow, Framer and Shopify equivalents, and the checks to run once the chatbot is live.
Plugin or script tag: which kind of chatbot?
WordPress is used by 39.2% of all websites according to W3Techs, so almost every chatbot vendor supports it. They do it in two different ways.
The WordPress plugin. The chatbot is installed from the plugin directory and configured in the WordPress admin. Some plugins run their own rules, others connect to an AI model. WPBot, for example, describes itself as a no-code chatbot that can work with or without AI services such as OpenAI or Gemini. Settings, logs and updates live in your WordPress.
The hosted agent with a script tag. The chatbot runs on the vendor's servers. You paste one line of code into your site, and everything else (content sources, behavior, calendars) is set in the vendor's app. The same tag works on WordPress, Webflow, Framer or Shopify, which matters if your marketing site is not on WordPress, or will not stay on it.
A rule of thumb: a plugin suits a simple support assistant on a WordPress-only site. A hosted agent suits a B2B site where the chatbot has to answer from product documents, qualify and book meetings, because that work happens outside WordPress anyway. If you are still deciding what you need, our comparison of an AI agent vs a chatbot explains the difference in behavior.
What to prepare before you install
The tag is the easy part. Four things take longer, and doing them first avoids a chatbot that goes live half-ready:
- The content it will answer from. The website pages, plus the documents visitors ask about: security overview, integration guides, onboarding steps. List the pages that answer your most common sales questions.
- The goal of a conversation. On a B2B site, it is usually a booked meeting with the right person. Decide who receives which meetings and connect their calendars.
- The pages where it appears. Sitewide is the default. You may want to exclude the careers page or the customer login.
- The consent rules. If the tool sets cookies or similar trackers that are not strictly necessary, your consent banner must cover them. More on this below.
How to install a WordPress AI chatbot: three methods
If you chose a plugin, install it from Plugins, then Add New, and follow its setup screens. If you chose a hosted agent, you have a script tag to place on every page. There are three ways to do it.
Method 1: a header and footer plugin (recommended)
A code snippets plugin adds scripts to every page without touching the theme. WPCode, formerly Insert Headers and Footers, is the best known, with more than 3 million active installations listed on WordPress.org. Install it, open its header and footer screen, paste the tag in the footer field and save.
The advantage: the snippet is stored in the WordPress database, so it survives a theme change or a theme update.
Method 2: Google Tag Manager
If your site already loads Google Tag Manager, you do not need to touch WordPress at all. Google's help center describes the steps: create a new tag, choose Custom HTML, paste the vendor code, then add a trigger. Use a Page View trigger that fires on every page, preview, then publish the container.
This is also the method to use when your marketing team manages tags and your developers manage the site.
Method 3: the theme files (avoid it)
You can paste the tag into the theme's footer file through Appearance, then Theme File Editor. WordPress's own documentation advises against it: the editor does not make backup copies, and if you update the theme, your changes are lost. If you must edit theme files, use a child theme, which lets the parent theme update without losing your modifications.
How to add a chatbot to Webflow
Webflow has no plugin directory for chatbots, so every vendor gives you a script tag. In Webflow, open the project settings, go to the Custom code tab and paste the tag in the footer code field. Save, then publish the site: the code applies to every page of the published site.
Two practical points. First, the chatbot does not appear in the Designer canvas, so test on the published domain or the staging subdomain. Second, Webflow also has custom code fields at page level, in each page's settings. Use them only if the chatbot should appear on a few pages, otherwise one sitewide tag is easier to maintain.
This is the kind of question an AI agent should answer on its own. On Nudge's site, a visitor asks "Does it install on Webflow?" and the Website Agent answers: yes, paste one line in the project settings, under Custom code, and nothing else to connect.
Framer and Shopify: the same principle
Framer. Framer's help center explains it in a few steps: open the project settings, select the Custom Code tab, click Add Script and choose where the code is placed on the site.
Shopify. Some vendors offer a Shopify app. Without one, the tag goes into the theme code, through Online Store, then Edit code. Shopify's help center recommends that you duplicate your theme to create a backup copy first, and warns that code changes can be removed when the theme is updated.
On any platform, Google Tag Manager remains an option if it is already installed.
Will a chatbot slow down your website?
It can, if the script loads badly. Google's web.dev guide on third-party JavaScript says these scripts can slow down a site, and recommends to always use async or defer for third-party scripts unless they are needed for the first render. A chatbot is not, so its tag should load asynchronously. Check that the vendor's tag does, and run a page speed test before and after installing.
The cost of a slow page is real, but so is the cost of a silent one. If you want to weigh what a conversation adds against what the tool costs, our article on chatbot pricing and ROI goes through the numbers, and you can estimate the ROI of a website agent with your own traffic.
Consent, GDPR and the AI Act
Three rules apply in Europe, whatever the platform:
- Trackers. The French data protection authority, the CNIL, recalls that cookies and trackers that are not strictly necessary require the visitor's prior consent. Ask the vendor what its script stores in the browser, and configure your consent banner accordingly.
- Transparency. Article 50 of the EU AI Act requires that people be informed that they are interacting with an AI system unless it is obvious. It applies from 2 August 2026. The chat window should say so.
- The conversations. Visitors type personal data: names, email addresses, company details. Your privacy policy should mention the chatbot provider and, for a plugin, the AI service it sends messages to.
This is general information, not legal advice.
How to check that it works
Once the tag is live, test on the real site, on desktop and on a phone:
- Ask three questions with known answers, taken from your pricing, integration and security pages. Check that each answer matches the page.
- Ask a question your content does not cover. A good agent says it does not know and offers a human. A bad one invents.
- Book a test meeting and check that it lands in the right calendar, with the right person.
- Check the consent banner: refuse non-essential cookies and see what the chatbot does.
- Run the page speed test again and compare.
Then read the first week of conversations. They tell you which pages are missing an answer, which is useful far beyond the chatbot, as our guide to improving your B2B website conversion rate explains.
How Nudge handles installation on WordPress and Webflow
With Nudge, the installation is a tag you add once and for all: on WordPress, Webflow, Framer or Shopify, or through Google Tag Manager. Everything else is set from Nudge.
The Website Agent is trained on your website and your documents, and each answer cites the page it comes from. It answers while the visitor reads, and books the meeting inside the conversation, with no form. So the work that matters before going live is the one described above: the sources it answers from and the calendars it books into, not the code.
You can see it work on our site: ask the Website Agent how it installs on your platform.
Frequently asked questions
What is the best AI chatbot for WordPress?
It depends on the job. For support on a small site, a WordPress plugin connected to an AI provider can be enough. For a B2B sales site, look at what the chatbot answers from, whether it cites its sources, whether it can book a meeting in your real calendars and what your sales team receives afterwards. Test two or three tools on your own pricing and product questions before choosing.
Is there a free AI chatbot for WordPress?
Many chatbot plugins have a free version on WordPress.org. The AI part is another matter: plugins such as WPBot send visitor messages to the AI service you connect, such as OpenAI or Gemini, so you need an account with that provider and its usage terms apply. Read the plugin's external services section to know where conversations go.
Are AI chatbots illegal?
No. In the EU, the AI Act sets transparency rules instead: visitors must be told they are talking to an AI system unless it is obvious, at the latest at the first interaction. That obligation applies from 2 August 2026. Data protection rules such as the GDPR also apply to the conversations. This is general information, not legal advice.
Can ChatGPT help with WordPress?
Yes, in two ways. ChatGPT can help you write pages or the code for a theme or plugin. And several WordPress chatbot plugins connect to OpenAI's models through an API key, so visitors can chat with an assistant on your site. In that case, the plugin sends visitor messages to OpenAI, which you should mention in your privacy policy.
Do I need a developer to add a chatbot to my website?
Usually not. Most tools give you a script tag to paste into a header and footer plugin on WordPress, into the custom code settings on Webflow, Framer or Shopify, or into Google Tag Manager. You need access to the site's admin and ten minutes. A developer helps when the site uses strict security headers or a custom consent setup.




