ATG WordPress plugin

Step-by-step guide to install the Ask This Guy chat widget on a WordPress site using the official plugin.

5 min read

Overview

The ATG plugin lets you activate a chat agent on your WordPress site and configure it in a few clicks: choose the widget shape, where it appears, its branding, scope which pages it shows on, and more. Optionally, you can also secure chat sessions so they are only accessible to authenticated users on your site.

Prerequisites

  • A WordPress site running WordPress 6.0 or later, PHP 7.4 or later. For signed mode, the PHP openssl extension must be enabled (it is on virtually every production host).
  • An ATG agent UUID. Create your agent in the ATG admin console. See Configure Agents for that part. The UUID is shown on the agent's overview page.
  • Your WordPress site domains. In the ATG admin console, add your site domains (e.g. https://yoursite.com, https://staging.yoursite.com) to the agent's allow-listed origins. The chat will only work on those domains.

Step 1: Download and install the plugin

Download the plugin ZIP: atg-chat-widget.zip

Then install it like any other WordPress plugin:

  1. In your WordPress admin, go to Plugins → Add New → Upload Plugin.
  2. Choose the atg-chat-widget.zip file you just downloaded and click Install Now.
  3. Click Activate Plugin.

A new Settings → Ask This Guy Chat menu appears.

Step 2: Paste your agent UUID

  1. Go to Settings → Ask This Guy Chat.
  2. Paste your agent UUID into the Agent UUID field.
  3. Click Save Changes.

Visit your site front-end; the chat launcher should appear in the bottom-right corner.

Ask This Guy Chat plugin settings page in the WordPress adminAsk This Guy Chat plugin settings page in the WordPress admin

Step 3: Configure display options

On the same settings page, you can refine where and how the widget appears:

SettingWhat it controls
Launcher positionBottom-right (default), bottom-left, floating, or hidden. Hidden loads the widget without a launcher button so you can wire up your own trigger via the window.ATG JS API.
Display modeBubble (default): compact panel, expandable to a centered modal. Drawer: full-height panel anchored right.
LanguageAuto-detect from the WordPress site locale, or force English / French.
Show onSite-wide, restricted to selected post types, or everywhere except a list of URL paths.
Accessibility labelOverride the launcher button's aria-label.
Theme overridesBrand color, corner radius, font family, shadow. The full default theme JSON is shown as a reference you can paste-and-edit.

Step 4 (optional): Enable signed mode to restrict chat sessions to authenticated users

This mode guarantees that the whole chat session is signed with a private/public key system. The widget signs a short-lived JWT so the chat is tied to a logged-in user. Anonymous visitors get no widget at all when signed mode is on, and any session is refused.

Privacy notice. Signed mode sends the WordPress user ID, roles, login, display name, and email to Ask This Guy. You should disclose this in your site's privacy policy before enabling it. The plugin's readme.txt includes a suggested clause you can copy.

To enable it:

  1. On the settings page, go to the Signed mode (advanced) section.
  2. Tick A JWT token will be signed with your private key to grant chat access to authenticated users.
  3. Click Save Changes. The plugin generates a private/public keypair.
  4. Copy the public key displayed below the toggle, along with the kid shown next to it.
  5. In your ATG admin console, under your agent's Signed parameters, register that public key with this kid.

The private key never leaves your WordPress install. It lives in the standard wp_options table on your own database.

Rotating the signing key

Rotation happens in two phases, so the active key keeps signing while you register the new one in the ATG console. No chats break.

In Settings → Ask This Guy Chat → Rotate signing key:

  1. Click Stage new key. A new keypair is generated and a new kid is shown, but the active key keeps signing chats.
  2. Copy the new public key and register it in your ATG console, alongside the active key (don't remove the old one yet).
  3. Click Validate the new key. The plugin now signs new JWTs with the new kid. You can then remove the old key from your ATG console.

If needed, Discard new key cancels the staged key: the active key keeps signing as before.