Skip to content

Website installation

Add an AI chatbot to WordPress

Add the Chatsy website widget to your site and train the agent from public content. This guide does not include a WordPress 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 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.
  • WordPress.com sites need a paid plan (Personal, Premium, Business, or Commerce) to install plugins.
  • Add public website pages as knowledge sources.
  • No direct access to WordPress accounts, orders, forms, or customer records.

Setup guide

Install the widget in WordPress

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 WordPress

    WordPress themes print footer scripts through the wp_footer hook, just before </body>. Add the script with a site-wide header and footer code plugin, or in a child theme, because edits to a parent theme's files are lost when the theme updates. A Custom HTML block inside one page adds the widget to that page only.

  3. 03

    Publish and check the launcher

    Save the change, clear any page cache, and open the site 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 WordPress 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. Chatsy does not publish a WordPress plugin. Add the script tag with a general code plugin you already trust, or in a child theme.

Ready to add Chatsy to WordPress?

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