Add an AI chat assistant to WordPress in five minutes
Two ways to add the AnTalkChat widget to WordPress, with a small plugin or in your theme, and how to check it works.
Adding AnTalkChat to a WordPress site takes one script tag and no coding. This guide shows the two common ways: with a small plugin, or in your theme.
Before you start
- Your assistant has content and is published.
- Your website's address is listed in the assistant's allowed websites (domains). The widget works only on the addresses you list, so nobody can put your assistant on their own site.
- Copy the embed snippet from the assistant's install section. It looks like this:
<script src="https://chatbot.bitbyte.site/widget/v1.js" data-assistant="ast_pub_YOUR_ID" async></script>
Option 1: With a code plugin (recommended)
- In WordPress, go to Plugins → Add New and install a plugin that adds code to your site's footer, for example "WPCode".
- Create a new snippet, choose to insert it in the footer on the whole site.
- Paste your snippet, activate it and save.
This way the widget stays when you update or change your theme.
Option 2: In your theme
- Go to Appearance → Theme File Editor (use a child theme if you have one).
-
Open
footer.phpand paste the snippet just before</body>. - Save.
Theme updates can replace
footer.php. If you use this option, add the snippet again after a theme update, or use a child theme.
Check that it works
Open your website in a private browser window. The chat button appears in the corner you chose. If it does not:
- Check that the assistant is published.
-
Check that your site's address is in the assistant's allowed websites,
including
www.if your site uses it. - Clear your caching plugin's cache.
Make it yours
Colours, the corner, the launcher text and every visitor-facing text are set in the assistant's Branding and Texts tabs. Changes appear on your site right away, without touching WordPress again.