Konrado.AIdocs
IntegrationsWebsite

WordPress

Add the Konrado.AI live chat to a WordPress site with the Konrado AI plugin, and optionally recognize logged-in customers

WordPress
Website integration
Your Konrado.AI live chat on every page of your WordPress site

Use the Konrado AI plugin to put your agent's live chat on a WordPress site. You install the plugin, paste one ID, and save. You do not edit your theme or paste any code.

Install method
WordPress plugin
Upload the Konrado AI plugin ZIP under Plugins in WordPress.
Required setting
Widget ID
The public ID of your Live chat channel. It starts with wgt_.
Logged-in customers
Optional
Tick one checkbox and add a signing secret so the agent knows who it is talking to.
Estimated time
5 minutes
Download, upload, activate, and paste the Widget ID.

The Konrado AI plugin is not listed in the WordPress.org plugin directory, so you cannot find it by searching in Add New Plugin. Download it from the Konrado.AI dashboard, or directly as main.zip. The source code is public at github.com/konradoai/wordpress-plugin.

How the Plugin Works

The plugin adds one script tag to the footer of every page on your site:

<script async src="https://app.konrado.ai/website-chat/v1/loader.js" data-konrado-widget-id="wgt_…"></script>

That script loads the chat for your Live chat channel. Everything visitors see in the chat is managed in the Konrado.AI dashboard, not in WordPress: the colors, greeting, languages, and position. Changes you make there appear on the next page load, with no change in WordPress.

The plugin has three settings under Settings > Konrado AI:

SettingRequiredWhat it does
Widget IDYesConnects the site to your Live chat channel. Starts with wgt_
Recognize customers who are logged in to WordPressNoTells the agent who a logged-in visitor is. Off by default
Signing secretWith the checkboxAppears once the checkbox is ticked. Proves to Konrado.AI that the customer details come from your site

What It Can Do

CapabilityDetails
Show the chat on every pageOne script in the footer of every page, for every visitor
Keep the chat in sync with your dashboardThe look, greeting, languages, and position come from Konrado.AI on each page load
Recognize logged-in customersWith the checkbox and signing secret, the agent gets the verified name and e-mail of a visitor who is logged in to WordPress, so it does not have to ask for them
Stay anonymous for everyone elseVisitors who are not logged in always chat anonymously, and the chat still works if the secret is missing or wrong
Clean up after itselfDeleting the plugin from the Plugins screen also removes its settings

What It Cannot Do

Not supportedWhy this matters
Change how the chat looks or behaves from WordPressAppearance, greeting, languages, and position are set in the Konrado.AI dashboard
Turn the chat on or off from WordPressUse Live chat > Status in Konrado.AI; deactivating the plugin removes the chat from the site entirely
Show the chat on only some pagesThe plugin loads the chat on every page of the site that uses the theme's footer
Give the agent access to a customer's orders, invoices, services, or tickets on its ownThe plugin sends the WordPress user as wp:<user ID>, which matches no help-desk client; see Security Model
Install from the WordPress.org directory or update automaticallyDownload the ZIP from the Konrado.AI dashboard and upload it; see Update the Plugin

Prerequisites

  • WordPress 5.7 or later and PHP 7.4 or later. The plugin is tested up to WordPress 7.1.
  • A WordPress account that can install plugins (usually an Administrator).
  • A Konrado.AI agent with a Live chat channel.
  • A theme that calls wp_footer(). Almost every theme does.

Download the Plugin

  1. In Konrado.AI, open your agent and go to Live chat > Install.
  2. On the Snippet tab, under Choose your platform, select WordPress.
  3. Click Download plugin (.zip).
  4. Keep this page open. Step 3 shows your Widget ID with a copy button, which you need after the installation.
Konrado.AI Live chat Install page with WordPress selected, the Download plugin (.zip) button, and the Widget ID with a copy button

The button downloads wordpress-plugin-main.zip, the current version of the plugin from its GitHub repository.

Install the Plugin in WordPress

  1. In WordPress, go to Plugins > Add New Plugin. In WordPress 7, the menu item is called Add Plugin.
  2. Click Upload Plugin at the top of the page.
  3. Click Choose File, select the ZIP you downloaded, and click Install Now.
WordPress Add Plugins page with Upload Plugin open and wordpress-plugin-main.zip selected
  1. WordPress shows Plugin installed successfully. Click Activate Plugin.
WordPress confirming Plugin installed successfully with the Activate Plugin button

After activation, Konrado AI appears in the plugin list with a Settings link. Until you add a Widget ID, the Plugins screen shows a reminder: Konrado AI is active, but the chat will not appear until you add your Widget ID. The Add it now link opens the plugin settings.

WordPress Plugins screen with Konrado AI active, its Settings link, and the warning that the chat will not appear until a Widget ID is added

The plugin folder is called wordpress-plugin-main because that is the folder name inside the ZIP. This is expected, and you do not need to rename it.

Add Your Widget ID

  1. In WordPress, go to Settings > Konrado AI, or click Settings under Konrado AI on the Plugins screen.
  2. Paste the Widget ID you copied from the Konrado.AI Install page into Widget ID. It looks like wgt_ followed by 32 characters.
  3. Leave Recognize customers who are logged in to WordPress unticked for now.
  4. Click Save Changes.
WordPress Settings, Konrado AI page with the Widget ID filled in and the logged-in customers checkbox unticked

If the value is not a valid Widget ID, WordPress shows That is not a valid Widget ID. It starts with "wgt_" - copy it from your Konrado dashboard. The previous value is kept. Copy the ID again with the copy button on the Konrado.AI Install page.

Konrado AI settings showing the error That is not a valid Widget ID

Check the Chat on Your Site

Open any page of your site in a new browser window and reload it. The chat button appears in the bottom corner. Open it and send a test message.

A WordPress page with the Konrado.AI chat open, answering an anonymous visitor who asked for their name and e-mail

If the chat button does not appear, check that the chat is turned on in Konrado.AI under Live chat > Status. The switch must show Enabled.

Konrado.AI Live chat Status page with the chat switch enabled and the message Chat is live on your site

Recognize Logged-In Customers

This step is optional. Use it when your visitors have accounts on your WordPress site, for example WooCommerce customers or members. When a logged-in customer opens the chat, the agent knows their name and e-mail address and does not have to ask for them.

  1. In Konrado.AI, open Live chat > Install and scroll to Identity verification.
  2. If there is no key yet, click Generate. Then click the copy button next to the masked Secret key. You do not need to reveal the key to copy it.
Konrado.AI Identity verification section with the masked secret key and its copy button
  1. In WordPress, go to Settings > Konrado AI and tick Recognize customers who are logged in to WordPress. The Signing secret field appears below it.
  2. Paste the key into Signing secret and click Save Changes.
Konrado AI settings with the logged-in customers checkbox ticked and the masked Signing secret field

If the checkbox is ticked but the signing secret is empty, the settings page shows Recognizing logged-in customers needs the signing secret. Until you add it, every visitor chats anonymously. Nothing is signed until you add the key.

Konrado AI settings warning that recognizing logged-in customers needs the signing secret

To test it, log in to your site as a customer, open a page, and ask the chat for your name and e-mail. The agent answers with the details from the customer's WordPress account.

A WordPress page with a logged-in customer, Howdy, Jan Testowy in the toolbar, and the chat answering with the customer's name and e-mail
VisitorWhat the agent knows
Logged in, correct keyTheir verified name and e-mail
Not logged inNothing; the chat is anonymous
Logged in, wrong or missing keyNothing; the chat falls back to anonymous without an error

If you use a page cache, make sure pages for logged-in users are not cached. The customer's details are signed into the page each time it is rendered, and a signature is valid for five minutes and can be used once. Most caching plugins already skip logged-in users by default. Anonymous visitors are not affected.

Security Model

Security model

Treat the signing secret like a password. Anyone who has it can pose as any of your customers to the agent. Keep it only in the plugin settings and do not paste it into tickets, screenshots, or documentation. If the key leaks, rotate it under Identity verification in Konrado.AI and paste the new key into WordPress.

The Widget ID is public. It appears in the source of every page, and it only identifies which Live chat channel to load. To limit which sites can load your chat, turn on Only allow embedding the agent on specific domains on the Domains tab of the Install page and add your site's domain.

When recognition is on, the plugin identifies a customer like this:

  • The signature is created on your server while WordPress renders the page. The secret is never sent to the browser.
  • The plugin reads the logged-in WordPress user and signs a short-lived token (HS256) with the signing secret. The token goes into the chat script tag as data-konrado-user-token.
  • Konrado.AI checks the signature with the same key. Only a valid, unexpired, unused token identifies the visitor. Anything else is treated as an anonymous visitor.
  • Visitors who are not logged in get the plain script tag without a token.

The token contains these fields:

FieldValue
subThe customer ID, wp:<WordPress user ID> by default
emailThe WordPress user's e-mail address, shown to the agent
nameThe WordPress user's display name, shown to the agent
iat, expIssue time and expiry, five minutes later
jtiA random value, so each token can be used only once

Customer ID and Your Help Desk

Konrado.AI treats sub as the customer's client ID in your organization's help desk, such as WHMCS. For a matching client, the agent can read that client's own invoices, services, and tickets.

A WordPress user ID is a different number: WordPress user 5 is not necessarily help-desk client 5. The plugin therefore sends it with a wp: prefix, which never matches a help-desk client. By default, the agent knows only the customer's name and e-mail, not their account.

If your WordPress users are also help-desk clients, and you store each user's client ID, a developer can pass the real client ID with the konrado_ai_customer_id filter. For example, in a small custom plugin or your child theme's functions.php:

add_filter('konrado_ai_customer_id', function ($id, $user) {
    return get_user_meta($user->ID, 'whmcs_client_id', true) ?: '';
}, 10, 2);

Returning an empty string sends no identity for that user, so they chat anonymously. Return a client ID only when it is certain to belong to that WordPress user.

Update the Plugin

The plugin does not update itself through WordPress. To install a newer version:

  1. Download the ZIP again from Live chat > Install > WordPress in Konrado.AI.
  2. In WordPress, upload it under Plugins > Add New Plugin > Upload Plugin.
  3. WordPress detects that the plugin is already installed and offers to replace the current version with the uploaded one. Confirm the replacement.

Your Widget ID, checkbox, and signing secret are kept.

Troubleshooting

IssueWhat to check
The chat button does not appearConfirm that the Widget ID is saved under Settings > Konrado AI; the Plugins screen warns when it is missing
The chat button still does not appearIn Konrado.AI, check that Live chat > Status shows Enabled
The chat works on one site but not on yoursIf Only allow embedding the agent on specific domains is on under Install > Domains, add your site's domain to the list
The script tag is missing from the page sourceYour theme must call wp_footer(); switch to a default theme briefly to confirm, then ask the theme author
That is not a valid Widget IDCopy the ID again with the copy button on the Install page; it is wgt_ followed by 32 characters
The chat does not recognize a logged-in customerConfirm that Recognize customers who are logged in to WordPress is ticked and that Signing secret is filled in
Recognition stopped workingThe key was probably rotated in Konrado.AI; copy the current key from Identity verification and paste it into Signing secret
Recognition works only after clearing the cacheExclude logged-in users from your page cache; a cached page carries an expired or already used token
The agent knows the name and e-mail but not the customer's accountThis is the default; see Customer ID and Your Help Desk
WordPress asks for FTP details when you upload the pluginWordPress cannot write to its own plugins folder, which is a hosting setting. Unzip the plugin into wp-content/plugins/ with your hosting file manager or FTP, then activate it under Plugins

Remove

  1. In WordPress, go to Plugins, click Deactivate under Konrado AI, then click Delete. Deleting the plugin also removes its three settings: the Widget ID, the checkbox, and the signing secret.
  2. If you used logged-in customer recognition, rotate or delete the secret key under Identity verification in Konrado.AI.
  3. To stop the chat everywhere it is installed, turn it off under Live chat > Status in Konrado.AI.

On this page