Appearance
Notifications
Orders, bookings, form messages and failed backups sent to Telegram, Slack, Discord, Teams, Pushover, browser push or email.
kitloom/ · admins: kitloom/, kitloom/
Video lessons
Recorded in the Filament admin; the Nova admin works the same way.
- Notifications in the admin's bell
- Notifications in the browser, on your phone
- Discord, Teams and Pushover channels
- Notification settings
- Notifications in Telegram
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:
| Type | What it needs |
|---|---|
| Telegram | A bot's token from @BotFather and the chat: a person who wrote to the bot, or a group the bot was added to (-), or a public channel's @name. |
| Slack | An incoming webhook URL: https://. |
| Discord | A webhook of the channel: https://. |
| Teams | A Workflows webhook of the channel: https:// or https://. |
| Pushover | An application token and your user key, or a delivery group's. |
| One address or several, separated by commas. | |
| Browser | Nothing to type: the channel is turned on in the browser that should be told (see Browser notifications). |
| Admin | Nothing 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, *.) the links are written out instead of buttons: Telegram refuses those.
A Telegram channel
- In Telegram, open @BotFather, send
/, give the bot a name and a username ending innewbot bot. BotFather answers with the token,123456789:.AAE… - 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.
- In the admin, Notifications → Channels → New channel: a name, Send to Telegram, the bot token.
- 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.)
- Tick the news, save, and Send test.
The bot only sends; it reads nothing the chat writes back.
A Slack channel
- At api.slack.com/apps, Create New App → From scratch, in your workspace.
- Incoming Webhooks: turn them on, Add New Webhook to Workspace, choose the channel. Slack shows the webhook URL,
https://.hooks. slack. com/ services/ … - 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
- 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/ … - 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.
- 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://or, for flows made since 2025,…. logic. azure. com/ workflows/ … https://.…. environment. api. powerplatform. com/ … - 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.
- At pushover.net, the dashboard shows Your User Key (30 characters). For a team, make a delivery group and take its key instead.
- Create an Application/API Token: name it after the site; Pushover shows the application's API token (30 characters).
- 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
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.
- 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.
- 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 …").
- 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
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.
- Notifications → Channels → New channel: a name ("Team"), Send to Admin, tick the news, save.
- 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_.
The news
| Group | Topic | Ticked on a new channel |
|---|---|---|
| Comments | comment. — a comment waits for approval | yes |
| Security | user. — too many wrong passwords for a login | no |
| Security | user. — a user got a role that may do more | no |
| Security | module. — a module was switched on or off | no |
Other modules add theirs, each behind kitloom-:
| Module | Topic | Ticked on a new channel |
|---|---|---|
| Shop | order. — an order to fulfil, when the shop's "New order" email goes | yes |
| Shop | order. — an order on hold or in processing was cancelled | yes |
| Shop | order. — the payment of a waiting order failed | no |
| Shop | order. — money went back, in full or in part | yes |
| Shop | product. — a product reached its low stock threshold or ran out | yes |
| Shop | product. — sold past the stock, on backorder | no |
| Shop | customer. — a customer created an account | no |
| Shop | product_ — a product review waits for approval | yes |
| Bookings | booking. — a new booking, saying whether it waits for confirmation | yes |
| Bookings | booking. — the client cancelled | yes |
| Listings | enquiry. — a visitor asked about a listing | yes |
| Courses | course. — a student got a course | no |
| Courses | course_ — a course review waits for approval | yes |
| Contact forms | form. — a message got through a form | yes |
| Privacy | privacy. — a request for personal data to answer, with the date | yes |
| Site Health | health. — a check fails or warns | yes |
| Backup | backup. — a backup or its cleanup failed | yes |
| Link checks | links. — links broke since the day before | no |
| Sign In As | user. — an admin signed in as another user | no |
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
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_), changes their name, topics and on or off (notifications_ — "stop telling the shop chat about reviews") and sends a test (notifications_). 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_ 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\ tagged Notification (see AGENTS.md, "A notification for the site's owner"):
php
$this->app->tag([ReviewHeld::class], NotificationTopic::TAG);notice($event) returns a Kitloom\ — 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.
| What | Where |
|---|---|
| Channels | table notification_ (the site's table prefix in front), model Kitloom\ through the ModelRegistry |
| Writing channels | Kitloom\ — create(), update(), test(), telegram, with the acting user |
| Sending | Laravel's notifications: one Site per channel from the Send job, so Notification and Notification are heard as usual |
| Channels' code | Channels\, Slack, Discord, Teams, Pushover — each one POST on Laravel's HTTP client, no SDK; message() on each is the notice in the service's shape |
| The admins | an Admin channel's notice goes through Admin — the people who hold the topic's capability() (else manage_), found by their roles and asked one by one — to every Contracts\ tagged Admin: each admin package tags its own (Filament's bell, Nova's centre). Without one the type is not offered |
| Browser push | Channels\ (the payload: title, body, url, tag) through Push\ on minishlink/web-push; Push\; Notifications::; routes / (the page, ?back= a page of the site to return to) and / (the service worker), behind kitloom-. kitloom- takes Guzzle's options — a handler keeps a test or a demo off the network; Testing\ binds a fake sender |
| Configuration | config/ — 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/.