Skip to content
Flopia
Installation

Add an AI assistant to WordPress, Wix or Shopify

Code to paste, settings, testing: the steps to install an AI assistant on a WordPress, Wix or Shopify website, and the pitfalls to avoid along the way.

Illustration: three different website windows, connected to the same yellow chat bubble by a line of code.

Is your website built on WordPress, Wix or Shopify, or was it custom-made by an agency? Good news: adding an AI assistant does not mean rebuilding your website. In the vast majority of cases, it all comes down to one line of code pasted in the right place. Here is how it works.

How an assistant is added to an existing website

A website AI assistant almost always works the same way: a small script, provided by the tool, displays the chat bubble at the bottom of your pages. The AI itself does not run on your website but on the provider's servers. Your website is neither slowed down nor deeply modified.

The code usually looks something like this:

<script src="https://assistant.example.com/widget.js" data-site="your-id" defer></script>

Where to paste the code on your website

PlatformWhere to add the code
WordPressA plugin that inserts code into the header or footer, or the child theme's template file
WixSite settings, custom code section, placed in the body of all pages
ShopifyEdit the theme code, main theme file, just before the end of the page
Squarespace, WebflowThe code injection area in the site settings
Custom websiteThe developer adds it to the template shared by all pages

Exact menu names change from one version to the next: if in doubt, search for “add custom code” in your platform's help pages.

The steps, from sign-up to going live

  1. Gather your information: opening hours, services, prices, area, terms, frequent questions. This is what will make the answers good.
  2. Set its behaviour: tone, forbidden topics, required answers, when the assistant hands over to you.
  3. Test it privately: ask simple questions, trick questions and off-topic questions.
  4. Paste the code on your website, then check it on a computer and on a phone.
  5. Follow the questions asked in the first few weeks to complete your information.

Pitfalls to avoid

  • A bubble that hides a button: on mobile, make sure it does not cover your call or order button.
  • Forgetting the cookie banner: if the tool sets advertising or analytics trackers, it must go through your consent management (a legal requirement in the EU and the UK).
  • Several chatbots at once: an old messaging widget and a new assistant get in each other's way. Keep only one.
  • Information that is never updated: an assistant announcing summer opening hours in winter does more harm than good.

What if your website is built with Flopix?

For websites created with Flopix, the French website builder, no code is needed: the assistant is built in, already knows your information (opening hours, contact details, description) and can even update your website when you ask, after your confirmation.

Flopia will install on any website with one line of code, and with nothing to do on Flopix websites. She is currently being tested: sign up to be notified at launch.

Keep reading