Embed on Your Website
Platform-specific instructions for adding the ChurchWiseAI Chatbot widget to your church website
Once you have enabled your chatbot and copied the embed code from your dashboard, here is how to add it to your church's website on the most common platforms.
Your Embed Code
Your embed code looks like this (your specific IDs will be different):
<script src="https://cdn.churchwiseai.com/widget.js"
data-org-id="your-church-id"
data-key="your-chatbot-key">
</script>
You can always find this code in your admin dashboard at churchwiseai.com/admin/[your-token] under the Settings tab. If you are on a Chat Pro or Suite plan, you can also use the Widget Customizer to adjust the look and feel of the widget before copying the embed code.
WordPress
Using a Plugin (Recommended)
- Install the Insert Headers and Footers plugin (or similar code insertion plugin)
- Go to Settings > Insert Headers and Footers
- Paste your embed code in the Footer section
- Click Save
Using the Theme Editor
- Go to Appearance > Theme Editor
- Open your theme's
footer.phpfile - Paste the embed code just before the closing
</body>tag - Click Update File
Using a Page Builder (Elementor, Divi, etc.)
- Add an HTML or Code widget to your site's footer template
- Paste the embed code
- Save and publish
Squarespace
- Go to your Squarespace dashboard
- Click Settings > Advanced > Code Injection
- Paste your embed code in the Footer section
- Click Save
The widget will now appear on every page of your Squarespace site.
Wix
- Go to your Wix dashboard
- Click Settings > Custom Code (under Advanced)
- Click Add Custom Code
- Paste your embed code
- Set placement to Body - end
- Choose All pages
- Click Apply
Custom HTML Site
If your website is built with custom HTML, add the embed code just before the closing </body> tag in your HTML files:
<!-- Other content above -->
<script src="https://cdn.churchwiseai.com/widget.js"
data-org-id="your-church-id"
data-key="your-chatbot-key">
</script>
</body>
</html>
If you use a shared template or layout file, you only need to add it once in the template.
Verifying the Installation
After adding the code:
- Visit your website in a browser
- Look for the chat widget icon in the bottom-right corner of the page
- Click it and send a test message
- Check your admin dashboard to confirm the conversation appears in your logs
Troubleshooting
The widget does not appear
- Make sure the embed code is placed inside the
<body>tag, not the<head> - Check that the code was saved correctly in your platform
- Try clearing your browser cache and reloading the page
- If using a caching plugin (WordPress), clear the plugin cache
The widget appears but does not respond
- Verify your chatbot is enabled in the admin dashboard
- Make sure the
data-org-idanddata-keyvalues in your embed code match what is shown in your dashboard
I only want the widget on certain pages
By default, the widget appears on every page where the embed code exists. To limit it to specific pages, add the code only to those pages rather than in a site-wide footer.
