Skip to content

Notifications ​

Orders, bookings, form messages and failed backups sent to Telegram, Slack, Discord, Teams, Pushover, browser push or email.

kitloom/notifications · admins: kitloom/notifications-filament, kitloom/notifications-nova

Video lessons ​

Recorded in the Filament admin; the Nova admin works the same way.

Tells the site's owner what needs them — a comment waiting for approval, a sign-in locked out, and, from the modules that are installed, new orders, bookings, form messages, failed backups — in a Telegram chat, a Slack, Discord or Microsoft Teams channel, as a push on the phone through Pushover, as a notification of the browser on a phone or a computer, by email, or in the admin itself — the bell of everyone on the team who may see the news. The admin is kitloom/notifications-filament or kitloom/notifications-nova.

Channels ​

A channel is one place to send to, with the news it is told:

TypeWhat it needs
TelegramA bot's token from @BotFather and the chat: a person who wrote to the bot, or a group the bot was added to (-100…), or a public channel's @name.
SlackAn incoming webhook URL: https://hooks.slack.com/services/….
DiscordA webhook of the channel: https://discord.com/api/webhooks/….
TeamsA Workflows webhook of the channel: https://….logic.azure.com/… or https://….powerplatform.com/….
PushoverAn application token and your user key, or a delivery group's.
EmailOne address or several, separated by commas.
BrowserNothing to type: the channel is turned on in the browser that should be told (see Browser notifications).
AdminNothing to type: each notice goes to the admin of everyone who may see its news (see In the admin).

The token, the webhook URL and the keys are kept encrypted with the application key and never shown again: a form left empty there keeps them. A new channel starts with the news worth acting on ticked; the rest is a tick away. Send a test from the channel to see a message arrive.

The Telegram chat need not be looked up: write anything to the bot, or add it to the group, then Find the chat lists the chats that wrote to it — next to the field in Filament, as an action on the saved channel in Nova.

A message is a heading, a few lines about the record and buttons to open it in the admin and on the site. On a site without a public address (localhost, *.test) the links are written out instead of buttons: Telegram refuses those.

A Telegram channel ​

Notifications in Telegram
  1. In Telegram, open @BotFather, send /newbot, give the bot a name and a username ending in bot. BotFather answers with the token, 123456789:AAE….
  2. To be told yourself, open the new bot and press Start. For a team, make a group, add the bot to it and write anything there.
  3. In the admin, Notifications → Channels → New channel: a name, Send to Telegram, the bot token.
  4. Find the chat next to the Chat field lists the chats that wrote to the bot in the last day; pick yours. (A bot that already sends its updates to a webhook of another service lists none: type the chat's id.)
  5. Tick the news, save, and Send test.

The bot only sends; it reads nothing the chat writes back.

A Slack channel ​

  1. At api.slack.com/apps, Create New App → From scratch, in your workspace.
  2. Incoming Webhooks: turn them on, Add New Webhook to Workspace, choose the channel. Slack shows the webhook URL, https://hooks.slack.com/services/….
  3. In the admin, Notifications → Channels → New channel: a name, Send to Slack, the webhook URL; tick the news, save, and Send test.

A Slack Workflow's webhook is not one: it takes its own variables, not a message.

A Discord channel ​

Discord, Teams and Pushover channels
  1. In Discord, open the channel's settings (the cog), Integrations → Webhooks → New Webhook. Name it after the site and Copy Webhook URL: https://discord.com/api/webhooks/….
  2. In the admin, Notifications → Channels → New channel: a name, Send to Discord, the webhook URL; tick the news, save, and Send test.

The heading is the message, so a phone shows it; the lines and the links are an embed. A webhook made this way may not send buttons — those are for a bot's own webhooks — so the links are written as links.

A Teams channel ​

Microsoft retired the Office 365 connectors; a channel takes messages through the Workflows app instead.

  1. In Teams, open the channel's … menu, Workflows, and pick Post to a channel when a webhook request is received (or make a flow in Power Automate from the trigger When a Teams webhook request is received, with Anyone allowed to trigger it). The flow ends with the webhook URL: https://….logic.azure.com/workflows/… or, for flows made since 2025, https://….environment.api.powerplatform.com/….
  2. In the admin, Notifications → Channels → New channel: a name, Send to Teams, the webhook URL; tick the news, save, and Send test.

The message is an Adaptive Card: the heading, the lines as facts, the links as buttons. The workflow posts it as its own user ("Workflows").

A Pushover channel ​

Pushover puts the news on a phone, as a notification of its app.

  1. At pushover.net, the dashboard shows Your User Key (30 characters). For a team, make a delivery group and take its key instead.
  2. Create an Application/API Token: name it after the site; Pushover shows the application's API token (30 characters).
  3. In the admin, Notifications → Channels → New channel: a name, Send to Pushover, the application token and the user key; tick the news, save, and Send test.

A push carries the heading, the lines and one link, Open in the admin; the site's address is written in the text. Danger — a failed backup, a failed payment — is sent as high priority, which rings through the phone's quiet hours. Pushover's free plan sends 10 000 messages a month per application.

Browser notifications ​

Notifications in the browser, on your phone

A browser channel puts the news on a phone or a computer as the device's own notifications — the same ones its apps show — with no app to install and no account anywhere. A click on one opens the record in the admin.

  1. In the admin, Notifications → Channels → New channel: a name ("My phone"), Send to Browser, tick the news, save. The channel is off for now: no browser takes it yet.
  2. On the phone or computer that should be told, sign in to the admin, open the channel and tap Turn on in this browser. A page of the site says what will happen; its button asks the browser's permission. Allow it, and the page comes back to the channel, on and showing the browser ("Chrome on Android, since …").
  3. Send test: the notification shows on that device, even with the site closed.

What works: Chrome, Edge, Firefox, Opera and Samsung Internet on Android and on computers, Safari on a Mac. On an iPhone or iPad (iOS or iPadOS 16.4 and later) only from the Home Screen: in Safari, Share → Add to Home Screen, open the site from the new icon, sign in there and turn the channel on from that window. A browser in private mode does not keep the permission.

One channel is one browser on one device. For a second phone, or the laptop too, make another channel; two channels on the same browser both reach it.

A browser may drop the notifications — it was reset, its data was cleared, the permission was taken back in its settings. The next message then fails for good: the channel is turned off at once, the site's admin gets an email that says which browser, and the list says it stopped taking them. Open the channel in that browser and tap Turn on in this browser again. A browser channel that no browser takes is a warning on Site Health.

The site signs its notifications with keys of its own (VAPID), made the first time a browser is turned on and kept in the options, the private one encrypted with the application key. A new application key loses it: the browsers then need turning on again.

In the admin ​

Notifications in the admin's bell

An Admin channel puts the news where the team already works: Filament's bell at the top of the admin, Nova's notification centre. It has no address of its own — each notice goes to every person who may see its news, so a new order reaches those who manage orders and a comment waiting reaches those who moderate comments; a test, and news that names no right, reach those who manage the notifications. Customers and subscribers are never told, even with a role that holds the right: the admin is not theirs.

  1. Notifications → Channels → New channel: a name ("Team"), Send to Admin, tick the news, save.
  2. The bell appears in Filament once an Admin channel is on. A notice shows unread with its lines and a link to the record; marking it read is each person's own.

In Filament the bell rings at once while the site broadcasts (kitloom/live, Reverb); without it the bell looks for news every 30 seconds. Nova's centre looks every few seconds by itself. Filament keeps the notices in Laravel's notifications table, which the module makes (the site's table prefix in front); Nova keeps them in its own nova_notifications.

The news ​

GroupTopicTicked on a new channel
Commentscomment.held — a comment waits for approvalyes
Securityuser.locked_out — too many wrong passwords for a loginno
Securityuser.role_raised — a user got a role that may do moreno
Securitymodule.switched — a module was switched on or offno

Other modules add theirs, each behind kitloom-<module>.notifications.register:

ModuleTopicTicked on a new channel
Shoporder.new — an order to fulfil, when the shop's "New order" email goesyes
Shoporder.cancelled — an order on hold or in processing was cancelledyes
Shoporder.failed — the payment of a waiting order failedno
Shoporder.refunded — money went back, in full or in partyes
Shopproduct.low_stock — a product reached its low stock threshold or ran outyes
Shopproduct.backordered — sold past the stock, on backorderno
Shopcustomer.new — a customer created an accountno
Shopproduct_review.held — a product review waits for approvalyes
Bookingsbooking.requested — a new booking, saying whether it waits for confirmationyes
Bookingsbooking.cancelled — the client cancelledyes
Listingsenquiry.received — a visitor asked about a listingyes
Coursescourse.enrolled — a student got a courseno
Coursescourse_review.held — a course review waits for approvalyes
Contact formsform.message — a message got through a formyes
Privacyprivacy.confirmed — a request for personal data to answer, with the dateyes
Site Healthhealth.failed — a check fails or warnsyes
Backupbackup.failed — a backup or its cleanup failedyes
Link checkslinks.broken — links broke since the day beforeno
Sign In Asuser.impersonated — an admin signed in as another userno

The channel form lists the topics of the modules that are installed. The form offers a user only the news they could see themselves — a shop manager does not send failed backups to a chat — and leaves a channel's other topics as whoever ticked them chose. A channel sent to another chat, address or bot is checked for every topic on it: only a user who could see all of its news may move it.

Settings ​

Notification settings

Notifications → Settings:

  • Tell repeats once in, minutes (60) — news that repeats, as a product's low stock or a failing check, reaches a channel once in this time. A new order is never held back.
  • Send the record's details (on) — off sends only the heading and the links, so no customer's name lands in a chat that others read.
  • Turn a channel off after failures (5) — a channel that fails this many times in a row is turned off and the site's admin is emailed.

Messages are sent from the queue and spoken in the site's language. The module keeps no copy of them: what was sent is in the chat, and deleted there.

AI agents and Site Health ​

With kitloom/ai, an agent of a user who may manage notifications lists the channels (notifications_list), changes their name, topics and on or off (notifications_update — "stop telling the shop chat about reviews") and sends a test (notifications_test). It never sees a token or a webhook URL, and it makes no channel: that, and where a channel sends, stay in the admin. A browser channel is turned on only in the browser itself, never by an agent. describe_site lists the topics.

With kitloom/health, Site Health warns while a channel is turned off after failing too often, and while a browser channel has no browser (Notification channels).

For developers ​

A module tells the owner its own news with a Kitloom\WpSchema\Contracts\NotificationTopic tagged NotificationTopic::TAG (see AGENTS.md, "A notification for the site's owner"):

php
$this->app->tag([ReviewHeld::class], NotificationTopic::TAG);

notice($event) returns a Kitloom\WpSchema\Notifications\Notice — a title, label => value lines, the record for the admin link, the page's address, a level and a key repeats share. Without this module nothing reads the tag.

WhatWhere
Channelstable notification_channels (the site's table prefix in front), model Kitloom\Notifications\Models\NotificationChannel through the ModelRegistry
Writing channelsKitloom\Notifications\Notifications — create(), update(), test(), telegramChats(), with the acting user
SendingLaravel's notifications: one SiteNotice per channel from the SendNotice job, so NotificationSent and NotificationFailed are heard as usual
Channels' codeChannels\TelegramChannel, SlackChannel, DiscordChannel, TeamsChannel, PushoverChannel — each one POST on Laravel's HTTP client, no SDK; message() on each is the notice in the service's shape
The adminsan Admin channel's notice goes through AdminInboxes — the people who hold the topic's capability() (else manage_notifications), found by their roles and asked one by one — to every Contracts\AdminInbox tagged AdminInbox::TAG: each admin package tags its own (Filament's bell, Nova's centre). Without one the type is not offered
Browser pushChannels\WebPushChannel (the payload: title, body, url, tag) through Push\PushSender on minishlink/web-push; Push\VapidKeys; Notifications::subscribe(); routes /notifications/push/{id} (the page, ?back= a page of the site to return to) and /notifications/push-worker.js (the service worker), behind kitloom-notifications.routes. kitloom-notifications.web_push.client takes Guzzle's options — a handler keeps a test or a demo off the network; Testing\FakesChannels::fakePush() binds a fake sender
Configurationconfig/kitloom-notifications.php — the queue, the tries, browser push (how long a push waits, Guzzle's options), the routes, the cache store of the repeats, the module's own topics, the agents' tools, the Site Health check, the admin sections

Tests ​

From the application that installs the package: php vendor/bin/phpunit --testsuite Notifications.

Read more ​

kitloom — sites on Laravel, built for you and run with AI.
Contact · Services · License · Refunds · Privacy · Community · YouTube · [email protected]