Skip to content

Website installation

Add an AI chatbot to WooCommerce

Add the Chatsy website widget to your site and train the agent from public content. This guide does not include a WooCommerce data connection or live order and customer data.

  • Use the site you already run

    Place the widget through a child theme's footer or a site-wide header and footer code plugin on the WordPress site without replacing the site's existing pages.

  • Keep content and records separate

    Public website pages can be added as knowledge sources, but the widget does not grant access to private platform records.

Scope

What this guide covers

This is a website installation path, not a native data connection.

Guide scope

  • Paste the Chatsy widget code into a child theme's footer or a site-wide header and footer code plugin on the WordPress site.
  • WooCommerce runs on WordPress, so the WordPress install steps apply to the whole store.
  • Add public website pages as knowledge sources.
  • No direct access to WooCommerce accounts, orders, forms, or customer records.

Setup guide

Install the widget in WooCommerce

Follow the installation steps, then test the published widget.

Test before publishing

Check the widget on desktop and mobile, then verify the agent's sources and human handoff.

Open Readiness Quiz
  1. 01

    Prepare the agent and copy the code

    Add current public pages as sources and set up human handoff. Turn on Allow public chats, then copy the website script from the agent overview under Deploy, or from Settings → Sharing → Link and embed.

  2. 02

    Add the script in WooCommerce

    WooCommerce runs on WordPress, so add the script the WordPress way: a site-wide header and footer code plugin, or a child theme. WordPress prints footer scripts through wp_footer, just before </body>, and parent theme edits are lost on theme updates.

  3. 03

    Publish and check the launcher

    Clear any page cache, then open the shop, a product page, and the cart in a private window. The chat launcher should appear in the bottom-right corner on desktop and mobile.

Limits and fit

Where this setup can fail, and when another path fits better.

Common failure modes

  • Allow public chats is off, so the script returns not found and no launcher appears.
  • A site Content Security Policy blocks the script or the chat iframe from the Chatsy app domain.
  • A caching or script-optimization plugin serves an old page or delays the script.

Not a fit for

  • Sites that do not allow custom code.
  • Teams looking for direct access to platform records through this setup.

FAQ

Common questions

No. This is a widget installation guide. Chatsy does not currently connect to the WooCommerce API through this setup.

No. The agent can answer from sources you add to Chatsy and can hand a conversation to your team. The embed code alone does not expose private platform data.

One script tag, such as <script src="https://chatsy.app/api/embed-script/YOUR_AGENT_ID"></script>. Copy the real tag from the agent overview under Deploy, or from Settings → Sharing → Link and embed. It loads only while Allow public chats is on.

The script runs once per page, so a second copy of the same tag is ignored. If two different agents' tags are on one page, only the first one loads. Remove the extra tag from page-level code or blocks.

The script loads from the Chatsy app domain and opens the chat in an iframe from the same domain. If your site sends a Content-Security-Policy header, allow that domain in script-src and frame-src, then reload and check the browser console.

No. This guide installs the website widget only. The agent answers from public pages you add, such as shipping and returns policies, and hands order-specific questions to your team.

Ready to add Chatsy to WooCommerce?

Build the agent, add approved sources, then follow the installation steps above.