Adding a Chatbot to a WordPress Site
Put a Scope Wiser chat widget on a WordPress site: create and style it, copy the embed code, and place it site-wide or on a single page.
What you'll do: create a chat widget in Scope Wiser, copy one snippet, and paste it into WordPress.
Time: 15β20 minutes.
The work is small. What matters more is which pages the widget appears on and who answers when somebody uses it.
Before you start
β Admin access to the WordPress site
β You know which widget you want. This guide installs the website chat widget, which opens a chat window inside your page (see Which widget you are adding under Reference).
1. Create the widget
From the sidebar, open Connect Account, then choose Webchat.
You should now see Website Chat Widgets: "Create and manage your website chat widgets to engage with your visitors in real-time." Three counters sit across the top: Total Widgets, Active Widgets and Inactive Widgets.
Click + Create Live Chat Widget, or + Add New Widget if you already have one. The setup drawer opens, headed Set Up Your Live Chat Widget.
In Chatbox disaply title * (spelled this way on screen), type your business name, not "Chatbot". It appears at the top of the chat window.
In Website URL *, type the site the widget is allowed to run on.
Set the colours, logo, font and position you want (every field is listed under Reference).
Set Stay Open on Startup to Stay closed, and give Loading Chatbox After N Second(s) a short delay. That is the safer default: Stay open means every visitor arrives to an open chat window, and on a mobile screen that covers the page.
If the bubble would sit on top of a cookie banner or a back-to-top button, nudge it with X-axis Offset (px) and Y-axis Offset (px). That is the very common case they exist for.
Save the widget.
You should now see it in Your Chat Widgets ("Manage, customize and monitor your website chat widgets"), in a table with WIDGET NAME (and its ID), WEBSITE, STATUS, LAST ACTIVE and ACTIONS. The row actions are Embed, Settings and an overflow menu.

2. Copy the embed code
Click the Embed action on the widget's row.
Copy the snippet it gives you.
The widget only works on the URL you entered. Make a second widget for a test site.
3. Paste it into WordPress
Where you put the snippet decides where the widget appears. Pick one.
Do not paste the snippet twice. Two copies on one page produce two widgets, or one widget that behaves strangely, and the cause is hard to see. Check the footer setting before adding it to a page.
Option A: site-wide (usual choice)
The widget belongs on every page for most businesses, which means the snippet belongs in the site's footer.
Install a header/footer-scripts plugin (for example WPCode).
Open its Footer box.
Paste the snippet.
Save.
Do not edit theme files.
Option B: one page only
Use this if you want the widget on a landing page and nowhere else.
Edit that page.
Add a block that renders raw HTML: the block editor's Custom HTML block, or the equivalent HTML widget in whichever page builder you use. Elementor sites can use the HTML widget, dragged into any container.
Paste the snippet inside it.
Click Publish or Update.
Publish the page. WordPress serves the previously published version until you do, so an unpublished change looks exactly like a broken snippet.
4. Test it
Open the site in a private browsing window, so you see what a visitor sees rather than a cached logged-in view.
You should now see the bubble in the position and after the delay you configured.
Send a message through it, including one of your bot's trigger keywords.
Open Shared Inbox and switch to the All filter. A fresh test conversation is not assigned to anyone, so it will not be under Mine.
Confirm the conversation is there on the Webchat channel. Webchat visitors are identified by their session rather than by a phone number or an email address, so a name only appears once your flow asks for one.
5. Decide what the widget says
An installed widget that answers nothing is worse than no widget. Before you publicise it, give the Webchat bot:
a greeting,
two or three buttons for the questions you actually get, and
a route to a human.
Using AI on Your Website Chat Widget covers pointing your trained AI at the widget, which is usually a better first hour of work than writing dozens of keyword replies.
β Done whenβ¦
β The bubble appears on the right pages in a private browsing window
β A test message shows up in Shared Inbox under All, on the Webchat channel
If something doesn't work
Can't see the chat in Shared Inbox? Ask the owner to give your role LIVE CHAT permission and untick Allow Only Assigned Chat in Control Panel β User Manager.
Bubble missing entirely? Work through this order: is the page republished, does the widget's Website URL match the domain you are on, is the widget's STATUS active, and is the snippet present in the page source.
Reference
Which widget you are adding
Scope Wiser offers two things that both look like a chat button, and they behave differently.
The website chat widget opens a chat window inside your page. Conversations run on the Webchat channel, arrive in your Shared Inbox, and the visitor never leaves the site. This is the one this guide installs.
The WhatsApp chat widget is a button that hands the visitor to WhatsApp. Useful, but a different screen and a different outcome: the person becomes a WhatsApp subscriber and the chat happens in their WhatsApp app. Website Chat Widget: Create, Embed & Manage covers both and explains when each is the right choice.
Widget setup fields
Field | What to put in it |
|---|---|
Chatbox disaply title * (spelled this way on screen) | The name at the top of the chat window. Your business, not "Chatbot" |
Website URL * | The site the widget is allowed to run on |
Theme Background / Theme Text Color | Hex values with a swatch picker |
Chat Bubble Background / Chat Bubble Text Color | The bubble in the page corner |
Brand Logo / Chatbox Wallpaper | Upload buttons |
Chatbox Font | Dropdown |
Chatbox Position | Top-left, Bottom-left, Top-right or Bottom-right |
Stay Open on Startup | Stay open or Stay closed |
X-axis Offset (px) / Y-axis Offset (px) | Nudges the bubble away from other page furniture |
Loading Chatbox After N Second(s) | A slider |
Upload Media | An Enable toggle, letting visitors send files |
Next: Website Chat Widget: Create, Embed & Manage, for widget management, the WhatsApp button variant, and what to do when a widget stops appearing. To make sure someone sees the conversations the widget produces, read Live Chat and the Shared Inbox: Complete Overview. To have Scope Wiser call WordPress rather than the other way round, see HTTP API: The Complete Developer Guide.
