KayeAI Agent

Description

KayeAI Agent adds your KayeAI agent to every page of your WordPress site. You build and train the agent in the KayeAI dashboard; this plugin puts it in front of your visitors.

  • Two-minute setup. Paste your agent ID (or the whole embed code) and save.
  • Instant check. The settings page confirms your agent is connected and live, and tells you if this website still needs adding to the agent’s allowed websites.
  • Floating button or side panel. Show the chat as a button in the corner, or as a full-height panel on the left or right that can push your content aside.
  • Open it from your own buttons. Use a menu link (#kayeai-agent), the [kayeai_agent_button] shortcode, or the kayeai-agent-open CSS class. Optionally start the visitor’s message for them.
  • Hide it where it doesn’t belong, such as checkout pages, with simple page patterns.
  • Safe on staging sites. wp-config.php settings keep a copied site off your live agent.
  • Signed-in visitors. Connect once, and your agent knows who is logged in, WooCommerce customers included, so its tools can act for them. The site makes its own key; KayeAI only ever sees the public half.
  • One look everywhere. Colours, logo, greeting and your agent’s name come from the KayeAI dashboard.

The agent’s chat widget is loaded from KayeAI’s servers, see “External services” below.

External services

This plugin connects your site to KayeAI, the service that runs your agent.

  • On your site’s pages, visitors’ browsers load the chat widget from https://cdn.apollo.kayeai.com/js/chat-widget.js and talk to https://app.apollo.kayeai.com. Messages visitors type, and the page they are on, are sent to KayeAI so the agent can answer.
  • On the settings page, your server asks https://app.apollo.kayeai.com about the agent you entered, sending its ID and your site’s address, to show whether it is connected.
  • If you press Connect under Signed-in visitors, your browser takes your site’s address, its agent ID and the public half of a key the site made to https://dashboard.kayeai.com, where you approve it. Afterwards, for logged-in users only, the widget sends a token your site signed, saying who they are (their WordPress user ID), with their messages.

KayeAI terms of service and privacy policy.

Screenshots

Installation

  1. In WordPress, go to Plugins Add Plugin, search for “KayeAI Agent”, click Install Now, then Activate.
  2. Go to Settings KayeAI Agent.
  3. In the KayeAI dashboard, open your agent and go to Channels Website. Copy the agent ID.
  4. Paste it into Agent ID and click Save changes. The status at the top turns green when your agent is connected.

If the status says this website isn’t allowed, add your site’s domain under Allowed websites on the agent’s Channels Website page, then click Check again.

If you used the earlier “Apollo AI Assistant” plugin, your agent ID is copied over and the old plugin is switched off when you activate this one. You can then delete the old plugin.

FAQ

What does Signed-in visitors send to KayeAI?

Only for someone logged in to your site: a short-lived token, signed by your site, with their WordPress user ID. Not their name, email or password. KayeAI checks it with your site’s public key, and passes it to your agent’s own tools, which look up what they need. Visitors who aren’t logged in chat as usual. To keep some users out, such as administrators, use the kayeai_agent_signed_in_subject filter.

Where do I find my agent ID?

In the KayeAI dashboard, open your agent and go to Channels Website. You can paste the agent ID or the whole embed code; the plugin picks the ID out of it.

The status says this website isn’t allowed

When an agent has websites listed under Allowed websites on its Channels Website page, it only runs on those. Add your site’s domain there, then click Check again.

How do I open the agent from my own button?

  • Menus: in Appearance Menus, add a Custom Link with the URL #kayeai-agent.
  • Shortcode: [kayeai_agent_button label="Chat with us" prefill="I'd like a quote"]. prefill is optional.
  • Anything else: give a link or button the CSS class kayeai-agent-open, and optionally data-kayeai-prefill="…".

Visitors can also press Ctrl + J (⌘ + J on a Mac).

How do I keep my staging site off my live agent?

Add one line to the staging site’s wp-config.php:

define( 'KAYEAI_AGENT_ENABLED', false );

You can also fix the agent per site with define( 'KAYEAI_AGENT_AGENT_ID', '…' );. Settings made in wp-config.php win over the settings page and survive copying the database between sites.

Can developers change the widget?

Yes. kayeai_agent_should_render (bool) decides whether the agent appears on a page, and kayeai_agent_widget_attributes (array) changes the <chat-widget> element’s attributes.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“KayeAI Agent” is open source software. The following people have contributed to this plugin.

Contributors

Translate “KayeAI Agent” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

2.1.1

  • Now on WordPress.org, so updates arrive in your dashboard like any other plugin’s. Sites that installed the plugin from a zip get them too.
  • Translations come from translate.wordpress.org.
  • The Connect button under Signed-in visitors is readable: its text was green on blue.
  • Help text points to Channels Website in the KayeAI dashboard, where your agent ID and allowed websites now live.
  • Needs WordPress 6.5 or later, which loads the agent the standard WordPress way on every site. On older WordPress, keep 2.1.0 until you update WordPress.

2.1.0

  • Signed-in visitors: press Connect, and your agent knows who is logged in to your site, so its tools can act for them. The site makes its own key and keeps the private half.
  • wp-config.php: KAYEAI_AGENT_SIGNED_IN_VISITORS false keeps a copied site from signing anyone in.

2.0.0

  • Renamed to KayeAI Agent, with a new settings page.
  • Checks your agent’s connection, whether it is live, and whether this website is allowed.
  • Side panel layouts (left or right, covering or pushing the page).
  • Open the agent from menu links, a shortcode or a CSS class, with optional prefilled text.
  • Hide the agent on chosen pages.
  • wp-config.php settings for staging and QA sites.
  • Loads the widget the WordPress way (script modules on WordPress 6.5+).
  • Takes over the settings of the earlier Apollo AI Assistant plugin and switches it off.

1.0

  • First release, as Apollo AI Assistant.