Skip to content
Wordprress website platform

Wordpress

Adding Your AI Chatbot to WordPress

WordPress is usually the easiest channel to set up since most chatbot platforms provide either a dedicated plugin or a simple embed snippet.

Option 1: Official Plugin (If Available)

  1. In your WordPress dashboard, go to Plugins → Add New and search for your chatbot platform’s name.
  2. Install and activate the plugin.
  3. Open the plugin’s settings and paste in your chatbot’s API key or workspace ID (found in your chatbot platform’s dashboard under “Website” or “Embed”).
  4. Save, then visit your live site in an incognito window to confirm the widget appears.

Option 2: Manual Embed Code (Works for Any Platform)

  1. In your chatbot platform, go to Deploy/Channels → Website and copy the provided JavaScript embed snippet.
  2. In WordPress, go to Appearance → Theme File Editor → footer.php, or better, use a plugin like “Insert Headers and Footers” to avoid editing theme files directly.
  3. Paste the snippet into the footer section so it loads on every page.
  4. Save and clear any caching plugin’s cache (e.g., WP Rocket, W3 Total Cache) — cached pages will not show the widget until cache is cleared.
  5. Visit your live site and confirm the chat widget loads in the bottom corner.

Positioning & Display Rules

  • Most platforms let you restrict the widget to specific pages (e.g., hide it on your checkout page) via URL rules in the platform’s dashboard — no code changes needed.
  • Set a delay (e.g., appear after 5 seconds or 30% scroll) if you don’t want the widget popping up immediately, which can hurt bounce rate on landing pages.

Troubleshooting

  • Widget not appearing: almost always a caching issue — clear all caching layers (plugin cache, CDN cache like Cloudflare, browser cache).
  • Widget appears but won’t load conversations: check your browser console for a Content Security Policy (CSP) error — some security plugins block third-party scripts by default and need an allowlist exception added.
  • Conflicts with another chat plugin: disable any existing live-chat plugin (e.g., an old Tawk.to or WhatsApp widget plugin) to avoid two widgets stacking on top of each other.

Running a WooCommerce store on top of WordPress? See the dedicated WooCommerce integration guide for order-status and product-question automation.

Two ways to get your chatbot live

Follow the guide yourself, or skip the setup entirely and have it done for you.