Exceptions
The Exceptions page, the exception types, geofence attendance exceptions, the acknowledge flow, the 8am and 9pm digest, and what happens when a store closes with exceptions pending.
10 min read
Overview
An exception is something that needed a person's attention: a flagged clock-in, a store that did not open, a customer chat nobody answered. Kagami collects them in one place, the Exceptions page, and emails owners and managers a roll-up at the start and end of each day. Exceptions no longer send one email each.

Exceptions are not the same thing as the notification bell. The bell shows every alert. The Exceptions page and the digest show only the types in the table below. Many other alerts (new bookings, feedback, referrals, expenses) are deliberately left out so they do not drown the real problems.
Where to find it
| What | Where | Who |
|---|---|---|
| Exceptions page | Dashboard, Exceptions (/dashboard/exceptions) |
super_admin, org_owner, brand_manager, location_manager. Any other role is sent back to the dashboard |
| Today's exceptions card | Top of the Dashboard, "N exceptions need attention today", with an Open Exceptions button. Lists unresolved geofence clock records plus up to 10 of the day's exception alerts for the selected store | Dashboard viewers (the Open Exceptions page itself is managers only) |
| Digest settings | Settings, Alerts, Exceptions digest (/dashboard/settings/alerts) |
super_admin, org_owner, brand_manager can change it |
| Settings for each exception type | Settings, Alerts | Same |
The page shows one day at a time, newest first, with Previous day, Next day and Today buttons. Days follow Indian time (Asia/Kolkata). You can open a day directly with /dashboard/exceptions?date=YYYY-MM-DD; the digest email links to the right day this way. A day shows at most the latest 200 exceptions.
A manager who is limited to some stores only sees exceptions for those stores, plus organisation-wide ones that belong to no store.
The exception types
The page, the dashboard card, the digest and the store-closing check all use the same list of 10 types.
| Type | Shown as | Raised when | Severity |
|---|---|---|---|
| Flagged check-in | "Name, flagged check-in" | A staff clock-in with no GPS, outside the store's radius, or at a store with no location set. See "Geofence attendance exceptions" below | Critical |
| Flagged login | "Name, flagged login" | A staff sign-in with no GPS, outside the store's radius, or at a store with no location set. Owners' own sign-ins are never flagged | Critical |
| Opening checklist incomplete | "Store, opening checklist incomplete" | The daily opening checklist is still unfinished at the store's alert time (default 10:00) | Warning |
| Store not opened | "Store is not open yet" | The day is still not opened at the alert time (default 10:00), for brands that require it. See Open and Close Salon | Warning |
| Double booking | "Name, double booking at Store" | A stylist has two overlapping appointments after a booking or a reschedule | Warning |
| Billing time alert | "Fast billing" or "Slow billing" | A bill was closed much faster or slower than the booked service time (see below) | Warning |
| AI reply held | "AI reply held: customer is waiting" | The AI was not confident enough to answer, so a customer is waiting for a person | Critical |
| Handed-over chat unanswered | "Handed-over chat STILL unanswered" | The AI told a customer the team will reply and nobody has replied | Critical |
| AI assistant could not reply | "AI assistant could not reply" | The AI failed to answer a customer | Warning |
| WhatsApp reply not delivered | "WhatsApp reply could not be delivered" | The AI's reply to a customer failed to send | Warning |
The page labels each row Critical or Warning. Every row has a time and, when it has one, an Open in Attendance or Open in Section link to the place where you fix it.
Billing time alert
The alert compares the time a bill took (from the appointment going in progress to the bill being closed) with the expected service time.
| Setting | Default | Range | Meaning |
|---|---|---|---|
| Fast bill under (minutes) | 5 | 0 to 120 | Any bill closed sooner than this is "fast" |
| Allowed difference from expected time (%) | 10 | 0 to 100 | A 30 minute service alerts before 27 or after 33 minutes |
A bill that took more than 3 times the expected time is treated as an appointment that was left open and is logged but not alerted. If any service on the bill has no duration, the expected time is unknown and only the "fast" floor applies. Change the values in Settings, Alerts, Billing time alert.
AI alerts and escalation
The first page for a held AI reply or a handed-over chat is a push notification to the store. It becomes an exception when it escalates.
| Step | Held AI reply | Handed-over chat |
|---|---|---|
| 1. Immediately | Front desk and store manager (bell and push) | Front desk and store manager (push only) |
| 2. After 5 minutes | Store manager and brand manager | Store manager and brand manager (this is the first exception row) |
| 3. Owner | 10 minutes after the alert (5 minutes after step 2) | 30 minutes after the handoff, with an email to the owner |
The owner is then re-paged every 10 minutes, up to 8 pages in total. Acknowledging the alert in the Inbox stops the paging. Replying to the customer from the Inbox closes it.
Geofence attendance exceptions
A geofence exception is a clock record that could not be location-checked. These records are separate from the bell rows above and are tracked on the attendance record itself.
| Method | Meaning |
|---|---|
gps_denied |
The device would not share a location |
out_of_range |
The staff member was farther from their store than its radius, and not at another store of the same brand. The default radius is 200 metres; each store can set its own |
no_gps_set |
The store has no coordinates (or the staff member has no home store), and no other branch matched |
A flagged clock-in creates a critical "flagged check-in" alert at the same time. Clocking in at another branch of the same brand is not an exception (see Cross-branch notes).
Closing a geofence exception
An exception stays open until a manager verifies it with CCTV. On Staff Operations, Attendance, a banner reads "N geofence exceptions need CCTV verification before they can be closed". Use Verify with CCTV on the row:
- Attach a CCTV snapshot. JPEG, PNG or WebP, under about 650 KB.
- Choose Verified present - approve or Not present - reject.
- Add a note if you want (up to 500 characters).
- Click Resolve.
Only super_admin, org_owner, brand_manager and location_manager can do this, and a store manager only for their own stores. The snapshot is kept in a private storage bucket and can be reopened later with View CCTV (a link valid for 2 minutes).
| Message | Cause |
|---|---|
| You don't have permission to do this | The signed-in role is not a manager |
| Choose a decision. | Neither approve nor reject was picked |
| A CCTV snapshot image (JPEG, PNG or WebP, under ~650 KB) is required to close this exception. | The snapshot is missing, the wrong type or too large |
| Clock record not found | The record is in another organisation or a store you cannot access |
| This record is not a geofence exception. | The clock record has a normal clock-in method |
| This exception is already resolved. | Another manager closed it first |
| No snapshot attached. / The snapshot file is missing from storage. | Viewing evidence that was never attached or was removed |
Informational cross-branch alerts
When staff clock in or sign in at a different store of the same brand, and their phone's GPS places them inside that store's radius, managers get an informational note: "Name, clocked in at Store" or "logged in at Store". It is not an exception. It does not appear on the Exceptions page, in the digest, or in the store-closing count. It is a bell alert (Settings, Alerts: Clock-in at another branch and Login at another branch) for managers only.
Acknowledge flow
Each row on the Exceptions page has an Acknowledge / Answer button. Clicking it marks that notification as read. The button changes to Answered and a message reads "Exception answered and marked resolved".
Things to know:
- Acknowledging is shared. It sets one read flag on the notification, so it is answered for everyone in the organisation, not just for you.
- It also clears the item from the bell as read.
- It only closes the alert. It does not fix the cause. A geofence exception stays open on the attendance record until a manager resolves it with CCTV. A held AI reply stays held until someone replies in the Inbox.
- If the save fails, you see the real error as a toast and the row stays unanswered.
The exceptions digest
The digest replaces the old one-email-per-event messages. It lists every exception raised in a time window, once per person.
| Digest | Sent | Covers |
|---|---|---|
| Morning | 08:00 IST (02:30 UTC) | Yesterday 21:00 to now |
| Evening | 21:00 IST (15:30 UTC) | Today 08:00 to now |
The two windows join with no gap and no overlap. If a window has no exceptions for a person, they get no email. The digest includes exceptions that were already acknowledged.
Who gets it
By default org_owner, brand_manager and location_manager. Each person sees only their own scope:
| Role | Sees |
|---|---|
| Owner, or a manager with no brand or store assigned | The whole organisation |
| Brand manager | Their brand, plus organisation-wide rows |
| Store-bound role (for example a location manager with a store) | Their store, plus organisation-wide rows |
People an owner picks by name in the alert settings see the whole organisation.
Delivery
- Email carries the full list: up to 25 items, with "N more" when there are more, and a link to the Exceptions page on the right day. It uses the Indian time of each item.
- Bell, push and WhatsApp, if you switch them on, get a short summary instead: "N exceptions since last evening" (or "since this morning") with the first two titles and a link.
- Change who gets it, which channels, or switch it off in Settings, Alerts, Exceptions digest. Default channel is email only. If it is switched off, or no channel is selected, nobody is sent anything.
- A person who has turned email off in their own notification preferences does not get the email.
- A person with no email address is skipped and reported to monitoring as a data problem, so it does not fail the run.
- A duplicate fire of the same job is ignored: nobody gets a second digest within 3 hours.
The job
Two scheduled jobs (salonos-exceptions-digest-morning, salonos-exceptions-digest-evening, created by migration 0263) call /api/cron/exceptions-digest?window=morning or ?window=evening. The route needs the cron secret in an x-cron-secret or Authorization: Bearer header.
| Response | Meaning |
|---|---|
| 401 Unauthorized | Missing or wrong secret |
| 400 "Query param window must be 'morning' or 'evening'" | The window is missing or misspelled |
| 500 | At least one organisation failed. The body lists each failure, so a bad run shows up in the job history instead of being hidden by a 200 |
| 200 | Counts of organisations checked, emails sent, skipped (nothing to report, already sent, turned off) and warnings |
On a local database that has no scheduler, the migration does nothing, so the digest does not run by itself.
Closing a store with exceptions pending
Unanswered exceptions never block a store from closing. Instead:
- The Open / Close Salon page shows a yellow note while you close: "N exception(s) are still unanswered. You can close now: they will be sent to the owner." with links to resolve the attendance exceptions with CCTV and to answer the alerts on the Exceptions page.
- The day closes normally.
- Owners get a warning "Store closed (date) with N pending item(s)". It says the manager closed the store while attendance exceptions and exception alerts were still unanswered, and links to that day on the Exceptions page.
The count is the unresolved geofence clock records of that business date at the store, plus the unread exception alerts created that day for the store (or organisation-wide for the brand). If the count itself cannot be loaded, the close is not blocked and the error goes to monitoring. See Open and Close Salon for the full close routine.
Related
See also Open and Close Salon, Cash Register, Staff Operations, Staff Management, Roles and Permissions, and Settings.