- A subscription topic with a digest schedule (how often to send)
- Two automations: one that collects events, and one that fires when the schedule triggers
- A notification template that renders the batched data
Prerequisites
- A Courier account with a configured provider (email, push, etc.)
- A published notification template for the digest content
- Familiarity with Courier Automations
Building a Digest
Create a subscription topic with a digest schedule
Head to the Preferences Editor and create a new subscription topic for your digest (e.g. “Daily Activity Summary”).Once created, enable the Digests toggle. This unlocks schedule and category settings.Add at least one schedule (e.g. “Every day at 9am”). You can add multiple schedules to let users choose their preferred frequency through the hosted preference page.

Notification templates don’t need to be mapped to the digest subscription topic. The digest is triggered through an automation, not a direct template mapping.
Configure a digest category
Every digest needs at least one category. The category key (default:

For example, with “10 highest” and a sort key of
digest) determines how batched data is grouped and released to the automation.You can configure the retain strategy to control which events are kept:| Strategy | Description |
|---|---|
| All items | Keep every event in the batch |
| 10 highest | Keep the 10 events with the highest value for a sort key |
| 10 lowest | Keep the 10 events with the lowest value for a sort key |

likes, Courier will batch incoming events and keep only the 10 with the most likes. A sample incoming event payload might look like:Create the 'add to digest' automation
You need two automations for a digest. The first one collects incoming events into the digest bucket.In the Automations Designer, create an automation with:
Every time this automation runs, it adds the event data to the digest bucket for the relevant user.
- A trigger that fires on the events you want to digest (e.g. a Segment event, API call, etc.)
- A digest node mapped to the subscription topic you created in Step 1

Create the 'digest trigger' automation
The second automation fires when the digest schedule triggers. It receives the batched event data and sends the notification.Create a new automation with:
Make sure all your templates are published before sending any events.
- A digest trigger step linked to the same subscription topic
- A send step that references your digest notification template

Verify in the logs
Once events start flowing, you can track the digest in two places:Automation Logs: Each incoming event appears as an 
When the schedule fires, you’ll see the trigger event with the accumulated data (in our example, the top 10 posts by likes).
Message Logs: The sent message will contain the full digested data payload that was passed to the notification template.
add-to-digest entry.

