OG Notification Engine: email alerts for every chatbot conversation

Jellybean, the OG Nexus mascot: OG Notification Engine: email alerts for every chatbot conversation

OG Notification Engine is an add-on for OG AI Core that we build at OG Nexus. It sends you an email whenever someone talks to your chatbot or submits an AI Form. You see what people ask and how the bot answers, and you never miss an important conversation.

This guide explains the triggers, what each email contains, how we run it on og-nexus.com, and the order we would set it up in.

Why email alerts help

A chatbot works around the clock, but nobody watches its dashboard around the clock. A visitor might ask for a quote at night or report a problem at the weekend. Without an alert, you find out days later, if at all.

OG Notification Engine brings those conversations to your inbox. You can read them in a few seconds and reply while the visitor still cares.

Choose when you hear about it

Chat notifications. One email with the whole conversation once it has gone quiet for a set time. You can also choose an email as soon as a conversation starts, or after every visitor message.

AI Forms. An email with everything the visitor entered and the AI's answer, for every submission.

Keyword triggers. An instant email when a visitor's message contains one of your keywords. It sends once per conversation and keyword.

Function calling. Let the AI decide when the team should know. You describe in plain words when it should alert you.

Recap (off by default). An AI-written summary of recent conversations, with a length limit and a monthly budget you set.

What each email contains

The full transcript, up to the last 60 messages by default.

The visitor's name and email when they are logged in.

Which chatbot and which model answered.

The start time, last message, number of messages and duration.

Reply straight back

You choose the Reply-To address. It can be none, a logged-in visitor's verified email, or an address the visitor typed, marked as unverified. It can also be one fixed address, or the site admin.

Protection against floods

A public chatbot could be used to fill your inbox. So each kind of alert has an hourly limit, 30 by default, and each visitor has one too, 5 per hour by default. AI function-call alerts get a tighter allowance.

Visitor text is always shown as plain text. Failed sends are retried twice. Emails go out after the reply has been delivered, so chat stays fast.

If your site sits behind a CDN, list the CDN's addresses under Trusted proxies. Otherwise the plugin cannot tell visitors apart for the per-visitor limit.

Make it your own

Placeholders let you shape the subject and body, such as {botName}, {messageCount} and {messages}. Developers get filters, actions and WP-CLI commands, including wp ogne test to send a sample.

All emails go through WordPress's own mail function, so they use whatever mail plugin your site already has. The wp_mail() reference explains how that works. If test emails do not arrive, fix your site's mail set-up first.

Set it up, step by step

1

Install OG Notification Engine from OG AI Core > Manage add-ons (its card is called Notifications).

2

Open OG AI Core > Add-ons > Notification Engine. The side rail has Settings, Log and Status.

3

Under Delivery, enter who should get the emails in Send notifications to. Empty means the site admin email.

4

Under Triggers, switch on the ones you want: chat notifications, AI Forms, keyword triggers or function calling.

5

Under Limits and housekeeping, list your internal bots in Never notify for these chatbots, so your own tests stay quiet.

6

Each change saves itself. Click Send a sample notification and check your inbox.

7

Open Status to check that WordPress cron is running.

OG Notification Engine settings: Delivery

Notification Engine: Delivery, the first block of its settings.

Every setting explained

Delivery

Send notifications to: up to 10 addresses, comma-separated. Each trigger can also have its own list.

Sender name: only the name. The sending address stays whatever your mail setup uses.

Email format: HTML (a readable transcript) or plain text.

Reply field: no Reply-To, the logged-in visitor's account email, an address the visitor typed (marked unverified), one fixed address, or the site admin email.

Triggers

Chat notifications: send after the conversation has been quiet for a number of minutes (the whole conversation in one email), as soon as a new conversation starts, or after every visitor message.

AI Forms: an email with everything entered. Limit it to some forms by listing their IDs.

Keyword triggers: up to 200 keywords, matched as a whole word or phrase, anywhere in the text, or as a regular expression. Optionally the AI's replies are searched too.

Function calling: the AI decides when to alert you. Describe the situations in plain words, then tick the og_notify_team function on the chatbot in OG AI Core.

Recap: off by default. The AI writes a short summary of recent conversations and emails it. You choose the environment, the model, how often (in minutes), a length limit, a monthly token budget and the chatbots it covers.

What the email includes

Visitor details: the name and email of a logged-in visitor, and the IP address (not included, masked or full).

Which model answered, and an option to hide email addresses and phone numbers typed in the conversation.

Transcript size: how many of the last messages, and how many characters each.

Limits and housekeeping

Flood limit: emails per hour for each kind of notification.

Per-visitor limit: notifications per hour about one visitor.

Trusted proxies (CDN): list your CDN's addresses when the site sits behind one, so the real visitor address is used.

Administrators and Never notify for these chatbots: keep your own testing and internal bots out.

Keep the log for: days to keep the log. The log holds what was sent, when and to how many people, not the conversation text.

On uninstall: delete all settings and the log when the add-on is deleted.

What we would do first on a new site

1

Turn on Discussions in OG AI Core, so transcripts are available.

2

Check the recipients and press "Send a sample notification".

3

Start with chat notifications in the "after a quiet period" mode.

4

Set up a system cron if your host allows it, then check the Status section.

5

Add Trusted proxies if you use a CDN.

6

Add keyword triggers later, for words like "refund" or "complaint".

Who it is for

Site owners, shops and support teams who run chatbots or AI Forms with OG AI Core. It suits anyone who wants to follow leads and questions by email without watching the dashboard.

Getting it

OG Notification Engine comes with a licence key for one site, updates and support from the OG Nexus team. See the OG Notification Engine product page, the documentation, or the whole OG plugin family.

Keep reading