- WPCode plugin (recommended)
- Theme file
Works with every theme, including block themes, and survives theme updates.
- In your WordPress admin, go to Plugins → Add New, search for WPCode, then install and activate it.
- Go to Code Snippets → Header & Footer.
- Paste the embed code into the Footer box and click Save Changes.
If the bubble doesn’t appear
- Caching plugins: if you use WP Rocket, LiteSpeed Cache, W3 Total Cache or similar, clear the cache after saving.
- Script optimization: if the bubble still doesn’t appear, exclude
widget.customergpt.ai/embed.jsfrom the plugin’s settings that combine or minify JavaScript. Delaying JavaScript is fine. - Domain: WordPress sites often redirect between
wwwand the bare domain. Make sure the chatbot’s Website Domain Link covers the address your visitors see. See Where the widget is allowed to load.
Train the chatbot on your WordPress content
Crawl your site from Knowledge Base, as described in Add your website. WordPress publishes a sitemap at/wp-sitemap.xml, or at /sitemap_index.xml if you use Yoast SEO. With the CLI, you can train on the pages it lists: