DocsMessages & jobs
On this page

Group related notifications

Group delivery history and choose message windows.

Before you begin: Manage notification delivery.

Use batch in your notification payload to combine a burst of related events:

frl

Rule excerpt: add this to a complete FRL rule before running it. Try a complete example →

The first event starts a fixed window. Events for the same site, channel set, and key join that window. Later events do not extend the deadline. The latest event supplies the title, message, and link. Use {{count}} anywhere in the title or message to insert the number of collected events when delivery begins. {{count}} is the number of events in this window, not the number of unprocessed orders. Use different keys for different intents, such as new orders and cancelled orders.

Choose a delay from 1 to 300 seconds and a key up to 120 characters. Messages may contain up to 3,000 characters. Omit batch when a notification should be sent without a collection window. Delivery timing may be slightly later during retries or high load. Recipients and channel availability are checked when delivery begins.

Browser unread counts and dashboard updates remain immediate. Background browser popups combine new messages over two seconds and use the newest unread total; returning to the tab before that deadline cancels the popup. Email and Telegram use the site’s configurable new-message window described above.

Configure the system message window

In Notifications → Notification settings → Settings → New messages, admins can turn Group messages before sending on or off. With grouping on, choose a whole number from 1 to 300 seconds; new sites start at 10 seconds. With grouping off, each new visitor message is queued without a collection window. Delivery still runs asynchronously and can take a little longer during retries; local development checks queued work every five seconds.

Changes apply to new windows. A window already waiting keeps its original deadline. Switching grouping off does not cancel a waiting alert. The unread count and whether an admin is viewing Messages are checked at dispatch for both grouped and ungrouped alerts. A count of zero or an admin actively viewing Messages suppresses the external alert. Turning grouping off does not disconnect recipients or disable this channel. To stop delivery, remove its recipients or pause them.

You do not declare or call system.messages in your theme. Frontbacked sends these notifications automatically for visitor messages. Configure recipients and timing in the dashboard; custom FRL channels choose their own batch options when calling notification.send.

Continue with Choose notification batching.