How to add an AI chatbot to WordPress
To add an AI chatbot to a WordPress site, install the free Sincra plugin from the WordPress plugin directory, paste your Sincra code in Settings > Sincra and save. The plugin adds the chatbot to every page of your site, and it stays in place when you change or update your theme. If you'd rather use a plugin you already have for code snippets, you can paste the same code with WPCode instead. This guide uses Sincra, an AI assistant that answers your visitors from your own pages and files.
What do I need before I start?
- A Sincra account with your email verified. The Free plan is enough, and it covers one domain. You can try the assistant first in the Simulator of your dashboard.
- A WordPress site where you can install plugins, and an administrator account.
Step 1: Get your code from Sincra
In your Sincra dashboard, open the Widget page and add your domain under Allowed domains, for example example.com. Then click Copy in the Installation card. The HTML guide explains both steps in more detail.
Step 2: Install the Sincra plugin
- In your WordPress admin, go to Plugins and add a new plugin.
- Search for Sincra, then install and activate "Sincra – AI Chatbot for Your Website". You can also find it on its page in the WordPress plugin directory.
Step 3: Paste your code in the plugin
- Go to Settings > Sincra.
- Paste the code you copied in step 1 in the Account ID field. The plugin keeps only your account ID.
- Save your changes. The page says "Connected."
Step 4: Check that it works
- If your site uses a caching plugin, clear its cache.
- Open your website in a private browser window, so you see the new version.
- Open the chat and ask a question that your pages answer.
If it can't answer a basic question, such as your opening hours or your prices, your pages may not say it yet. 10 basic questions your business website should answer helps you find the gaps.
Another way: paste the code with WPCode
If you already use WPCode for code snippets, you can paste your Sincra code there instead of installing the Sincra plugin. A short video on YouTube shows these steps.
- In your WordPress admin, go to Plugins and add a new plugin.
- Search for WPCode, then install and activate "WPCode - Insert Headers and Footers + Custom Code Snippets".
- Go to Code Snippets > Header & Footer.
- Paste your Sincra code in the Footer box.
- Save your changes, then check that it works as in step 4.
WPCode adds the code before the closing </body> tag of every page. Use one way or the other, not both.
Why doesn't the assistant appear?
- Your domain is not in Allowed domains, or it is written differently from the address of your site.
- Your email is not verified yet, so your account has no plan.
- "Show the widget on your website" is turned off in the Widget page of your Sincra dashboard.
- You are on the Free plan and this is not the first domain in the list. The Free plan covers one domain.
- The page is an old cached copy. Clear the cache of your caching plugin and reload in a private window.
- The code is on the page twice, for example in the Sincra plugin and in WPCode or your theme. Keep only one.
More checks, step by step: The assistant doesn't show on my website.
Does my site's Content Security Policy need changes?
Most websites don't have a Content Security Policy, and then there is nothing to change. If yours sends one, it must allow Sincra, or the assistant won't load or won't answer. Add these sources to your policy:
script-src https://sincra.cloud
connect-src https://sincra.cloud https://sincra-prod-app-gr535u4h4q-no.a.run.app
frame-src https://sincra.cloud
style-src 'unsafe-inline'
If your policy doesn't list one of these directives, browsers fall back to default-src (for frame-src, to child-src first if you have it), so add the sources there. If your style-src uses a nonce or a hash, browsers ignore 'unsafe-inline': in that case, write to support@sincra.cloud.
What each line is for: the assistant's script loads from sincra.cloud, it talks to our servers at the two addresses in connect-src, its bot check runs in a small frame from sincra.cloud, and it styles itself with an inline style block. It loads no images, fonts or other scripts on your pages.
What if the code is on the page twice?
Keep one Sincra code on each page. If you paste a new code, remove the old one first: two codes on the same page don't work correctly. If you move from WPCode to the Sincra plugin, turn off the WPCode snippet before you save your code in the plugin.
Sources
Steps checked on October 13, 2026 against the Sincra plugin page in the WordPress plugin directory. The WPCode steps were checked on September 30, 2026 against the WPCode page in the WordPress plugin directory and the WPCode header and footer guide on WPBeginner.