digest
step allows you to group events by a specified key and digest them together. This is useful when you need to group events by a specific key, such as a user ID, and then digest them together.
The result of the digest
step is an array of events that have been digested together, allowing you to create a single notification for each group of events.
subscriberId
and the digestKey
.The digest key must match the payloadSchema
key provided on the workflow.lookbackWindow
will be specified, the digest engine will check if any event was triggered within the past lookbackWindow
period.
If so, it will create a digest. Otherwise, it will send a message immediately and skip the digest creation. Learn more about the Look-Back strategy here.@novu/framework
SDK exports a utility enum called CronExpression
to help you build cron expressions.subscriberId
and the digestKey
.