Installing the Chatbot
Adding the Theo chatbot to your website is simple. Just copy and paste a small piece of code.
Creating a Web Deployment
Before installing, you need to create a deployment:
- Go to Agents in your dashboard
- Click on your agent
- Find Web Deployments section
- Click Add Deployment
- Give it a name (e.g., "Main Website")
- Configure settings (welcome message, colors)
- Click Save
Getting Your Embed Code
Once you've created a deployment:
- Go to your agent's Web Deployments
- Find your deployment
- Click Get Code or Copy Embed Code
- You'll see something like this:
<script src="https://app.needtheo.com/widget/YOUR-UNIQUE-ID.js"></script>
Adding Code to Your Website
Option 1: Add Before </body> (Recommended)
Paste the code just before the closing </body> tag on every page where you want the chatbot:
<!DOCTYPE html>
<html>
<head>
<!-- Your head content -->
</head>
<body>
<!-- Your website content -->
<!-- Add the Theo chatbot code here -->
<script src="https://app.needtheo.com/widget/YOUR-UNIQUE-ID.js"></script>
</body>
</html>
Option 2: Add to Header
If you prefer, you can add it in the <head> section, but before </body> is slightly better for page load performance.
Platform-Specific Instructions
WordPress
Using a Plugin (Easiest):
- Install "Insert Headers and Footers" plugin (or similar)
- Go to Settings → Insert Headers and Footers
- Paste the code in the "Scripts in Footer" box
- Save
Using Theme Editor:
- Go to Appearance → Theme Editor
- Select
footer.phpfrom the right sidebar - Find the
</body>tag - Paste the code just before it
- Update File
Using a Page Builder: Most page builders (Elementor, Divi, etc.) have an "HTML" or "Custom Code" widget. Add the script code there.
Squarespace
- Go to Settings → Advanced → Code Injection
- Paste the code in the "Footer" section
- Save
Wix
- Go to Settings → Advanced → Custom Code
- Click "Add Custom Code"
- Paste the code
- Set to load on "All Pages"
- Set placement to "Body - end"
- Save
Shopify
- Go to Online Store → Themes
- Click "Edit code" on your active theme
- Find
theme.liquid - Paste the code just before
</body> - Save
Webflow
- Go to Project Settings → Custom Code
- Paste the code in "Footer Code"
- Save
- Publish your site
GoDaddy Website Builder
- Go to your website editor
- Add an "HTML" section
- Paste the code
- Save and publish
HTML/Static Sites
Simply paste the code before </body> on each page, or include it in a footer file that all pages share.
Verifying Installation
After adding the code:
- Visit your website in a new browser tab
- Look for the chat bubble (usually bottom-right corner)
- Click the bubble to open the chat
- Send a test message to make sure it works
- Check your dashboard for the test conversation
Troubleshooting Installation
Chat bubble doesn't appear:
- Clear your browser cache and refresh
- Check that the code was saved correctly
- Verify you're looking at the right page
- Make sure there are no JavaScript errors (check browser console)
Chat opens but doesn't respond:
- Check your deployment is configured correctly
- Verify your agent is set up
- Check your subscription is active
Multiple Websites
You can create separate deployments for different websites:
- Create a new Web Deployment for each site
- Use different settings/branding if needed
- Each site gets its own embed code
- Conversations are tracked separately
Removing the Chatbot
To remove the chatbot from your website:
- Remove the script code from your website
- Save and publish
- The chat bubble will no longer appear
You can also disable a deployment from your dashboard without removing the code, but removing the code entirely is cleaner.
Testing Tips
Use Incognito Mode
Test in an incognito/private browser window to see what first-time visitors see.
Try Different Devices
Check how the chatbot looks on:
- Desktop computers
- Tablets
- Mobile phones
Test Various Scenarios
- Ask about business hours
- Request an appointment
- Ask a question not in your knowledge base
Common Questions
Will this slow down my website?
No. The chatbot loads asynchronously and won't block your page from loading.
Does it work on mobile?
Yes! The chatbot is fully responsive and works on phones and tablets.
Can I put the chatbot on only certain pages?
Yes. Only add the code to pages where you want it to appear.
Do I need to update the code when I make changes?
No. Changes you make in your dashboard (colors, welcome message, etc.) update automatically.
What if I use a different website builder?
The general process is the same: find where to add custom code/scripts and paste the embed code. Most platforms have a way to add custom JavaScript.
Need Help?
- Check our Troubleshooting Guide
- Email support@needtheo.com