How to add a chatbot to your WordPress site: three methods
Three safe ways to put a chatbot on a WordPress site, from a no-risk snippet plugin to a child theme function, with a clear rule for choosing and a test checklist.
Read articleAdding a chatbot to Wix takes one pasted script. Follow the steps to train your agent, add the code, test on desktop and mobile, and fix the usual problems.
By the Askocto team · · 5 min read
To add a chatbot to a Wix website, you create and test the chatbot in your support platform, copy its embed script and paste it into Wix as a custom code snippet that loads on every page. The whole job takes about ten minutes once your agent is ready. This guide covers the steps, a test routine and fixes for the usual problems. The menu names in Wix can change, so look for the equivalent labels if yours differ.
In short: Train the agent, copy the embed script, add it in Wix under custom code for the whole site, publish and test on a phone.
Do the chatbot first. Adding an empty bot to a live site shows visitors a chat window that cannot help. The guide to adding an AI chatbot to your website has a ten-step plan for the preparation, and the best AI chatbots for Wix websites page can help you choose one.
In Askocto, open your agent and go to Channels, then choose the website widget. Copy the script. It looks like this, with your own agent id:
<script src="https://cdn.askocto.co/embed.js" data-agent-id="agt_123" defer></script>
Other platforms give you a similar one-line snippet. Keep it ready on your clipboard.
defer attribute kept as is.Then open the editor and Publish the site. Custom code does not show on the live site until you publish.
Open your site in a private browser window, so you see what a visitor sees.
Most Wix traffic arrives on phones. Open the site on a real phone and look for:
If you have another chat tool on Wix, remove it before you add this one. Two bubbles in the same corner confuse visitors.
You may not want the chatbot on every page. Options:
| Goal | How |
|---|---|
| Hide on the checkout or a landing page | Add the code to selected pages instead of all pages |
| Open automatically on the pricing page | Use the widget settings or the window.askocto.open() call on that page |
| Show a first message on a product page | Use a custom initial message in the widget settings |
The widget script also supports a page context, so the agent knows which page the visitor is on. See the website integration docs for the full list of options.
agt_. Copy it again from the channel page.Look at the first conversations the same day. Note the questions the agent could not answer, add them to your content and test again. Review once a week for the first month. The guide on testing an AI support agent before launch explains how to keep a standard set of questions to rerun after each change.
If you are building a business site and do not yet have an agent, you can start free with Askocto, train it on your pages and use the script above. Other site builders follow the same pattern, so the steps for WordPress differ only in where the code goes.
Yes. You paste one embed script into Wix's custom code setting. You do not write any code yourself.
The script loads without blocking the page, so it should not hold up the content. Test your page speed before and after, and remove other widgets you no longer use.
It depends on your plan and the current menu layout. Check your Wix plan and search the settings for custom code or tracking and tools.
Yes. Add the code to selected pages instead of the whole site, or control the widget with the open and close calls on specific pages.
Askocto answers the repeat questions across chat, email and voice and hands the hard ones to your team.
Three safe ways to put a chatbot on a WordPress site, from a no-risk snippet plugin to a child theme function, with a clear rule for choosing and a test checklist.
Read articleA hands-on walkthrough for building an AI chatbot: choose one job, load knowledge, write instructions, add one action, test with real questions and publish on one channel.
Read articleYou can build a working chatbot without a developer. Choose one job, connect your existing content, write plain-language rules, test, and paste one line on your site.
Read article