Installing on WordPress.
Menu names can differ slightly between versions and themes, but the steps stay the same.
Get your script from Groundly
In Groundly, add your website with its name and domains, and choose its industry. Then open the website’s Settings and copy the script from the Script section. It looks like this, with your own website key:<script src="https://widget.groundly-ai.com/v1/widget.js" data-website-key="wk_your_website_key" async></script>
Install a header and footer plugin
In your WordPress admin, go to Plugins → Add New, search for WPCode (or any “header and footer” plugin you already use), then install and activate it.
Open the footer box
Go to Code Snippets → Header & Footer. You’ll see boxes for the header, the body and the footer.
Paste the script into the footer
Paste your Groundly script into the Footer box. That puts it just before
</body>on every page.Save and clear your cache
Click Save Changes. If you use a caching plugin or a CDN, clear its cache so visitors get the updated pages.
Check it on your live site
Open your website in a private browser window and look for the chat button. Ask it a question about your business. Until you’ve chosen pages in Knowledge, it has nothing to answer from, so do that next.
Prefer not to add a plugin? In a classic theme, add the script to your child theme’s footer.php, just before </body>. Editing the main theme directly works too, but a theme update will remove it.
WordPress details.
Domains
Add the domain your site uses, such as example.com. It also covers www.example.com. A staging copy on another address needs its own domain added.
Caching and optimisation plugins
Plugins that combine or delay JavaScript can hold the script back. If the chat button doesn’t appear, exclude widget.groundly-ai.com from those settings.
It won’t clash with your theme
The assistant adds one element to your page and keeps its styles separate, so your theme’s fonts and colours stay untouched. It loads after your page, so it doesn’t slow it down.
Using something else?
Groundly works on any website you can add a script to.
If something’s not right.
Something else on your mind? Email hello@groundly-ai.com and we’ll answer.
Start freeThe chat button doesn’t appear
Check that the domain in your browser’s address bar is one of the website’s domains in Groundly (www. is covered automatically, other subdomains aren’t), that the page loads over https://, and that the script is before </body> rather than in <head>. Then clear any cache and reload.
It appears on one address but not another
Each address needs its domain in Groundly. Add staging, shop or builder addresses (such as yourstore.myshopify.com) as extra domains in the website’s settings.
We added the script twice
That’s fine: the second copy does nothing. Remove it when you can to keep your code tidy.
Our site has a Content Security Policy
Allow https://widget.groundly-ai.com for scripts, connections and fonts. The script, the assistant’s answers and its fonts all come from there. If it still doesn’t appear, email hello@groundly-ai.com.