Skip to content

Notification Engine

Add-on for OG AI Core. Get an email whenever someone talks to your chatbot or submits an AI form, with the full transcript, so you never miss an important conversation.

Requires: OG AI Core active, with Discussions switched on for transcripts. WordPress 6.0+, PHP 8.1+.

Install and set up

  1. Install it from OG AI Core > Manage add-ons > Get add-ons: one click if you own it, or enter its licence key. It runs from OG AI Core's add-ons folder, not from the Plugins screen.
  2. Open OG AI Core > Add-ons > Notification Engine and check the recipients.
  3. Press Send a sample notification to confirm the email arrives.
  4. Optional: for exact timing of the "after a quiet period" emails on a quiet site, run wp ogne tick from a system cron every minute (see the Status tab).

Notification Engine settings

Triggers

  • Chat: one email with the whole conversation after it has been quiet for a set time (default 10 minutes), or when it starts, or after every visitor message.
  • AI forms: an email with everything the visitor entered and the AI's answer.
  • Keywords: an immediate email when a message contains one of your keywords (whole word, anywhere, or regular expression). Once per conversation and keyword.
  • Function calling: the AI decides when the team should know, using an og_notify_team function you tick under a chatbot's Functions.
  • Recap (off by default): an AI-written summary of recent conversations. Email addresses, phone numbers and IP addresses are removed before anything goes to the AI provider.

What an email contains

The transcript (last 60 messages by default), visitor details (name and email of a logged-in visitor; IP only if you allow it), which chatbot and model answered, and timing details.

Protection

  • Flood limits (default 30 emails per hour per kind, 5 per hour per visitor), with a tighter allowance for AI alerts.
  • Visitor text is always shown as plain text.
  • Internal and automation bots never notify, and your own admin testing is ignored by default.
  • Failed sends are retried twice and logged.

Privacy

The log stores no conversation text, only the type, chatbot, status and (for logged-in visitors) the user ID, for 90 days. WordPress privacy export and erase tools are supported. Add a short paragraph about chat notifications to your privacy policy.

Developers

Placeholders for subject and body include {site}, {botName}, {messages}, {visitor} and {model}. Filters such as ogne_email_to, ogne_email_subject and ogne_email_body, and the WP-CLI commands wp ogne status, test, tick, recap and log.

OG AI Core