Creating a Workflow using Digest

Digest Notifications work by collecting multiple trigger events, aggregating them into a single message, and delivering it to the user. This becomes useful when a user needs to be notified of a large amount of notifications and you want to avoid sending too many notifications.

📘

Currently, Fyno supports only the Regular Strategy for digests.

What is Regular Strategy

  • Creates a digest for each specified time window
  • Starts from the first event trigger
  • Sends the message when the digest window ends

Best For:

  • Consistent communication intervals
  • Periodic updates
  • Non-urgent, informational notifications

This approach ensures regular updates without overwhelming users, regardless of activity levels or triggers.

How Digest works

Consider the following scenario

Scenario: Notifying users about LinkedIn post likes
Problem: Sending a notification for every like could spam the user.
Solution: Use digest notifications

How it works:

  • Collect likes over a set period (e.g., 1 hour)
  • Send one summary notification

Benefits:

  • Reduces notification fatigue
  • Provides a comprehensive overview

This approach keeps users informed without overwhelming them, enhancing their experience with your app.

This use case can be implemented with the below steps.

  1. Create a Workflow with Webhook as trigger. You can read how to create it here.

  2. Digest - After adding a digest node in the workflow editor, each node below the digest node will be only triggered once in the specified digest interval. You can decide to send messages before adding a digest node and they will be triggered in real-time.

  3. Digest Key - You need to provide a unique key to identify the user. This will help the workflow to digest the notifications for that user. In this case, linkedIn profile_id will be the Digest Key.

  4. Time Period - Specify how long you want to digest the notifications. Minimum 1 second to maximum 7 days.

  5. Notification event - Add a notification event block after the digest depending on what communication you want to send.

How to use Digest data in Template

In the template, you will find System variable on the LHS of the template editor.

For example, if you want to use the users' who have liked your post in the notification. You can do it as shown

  • $digest.head will give you the top 5 payloads by default. You can see the payload in logs section
  • $digest.tail will give you the last 5 payloads by default. You can see the payload in logs section
  • $digest.count will give you the total count of the payload received.

In this example. $digest.head.user_name will give you the user's name who liked the LinkedIn post.

How to see logs for Digest

You can see the Digest logs in Logs -> Workflow. Sample logs below

  1. Summary - You will see the Digest Key and count will show the no of requests digested. Total time taken will be updated once the Digest is completed and shows the total time taken.
  2. Head - It will show the first 5 payloads received for Digest
  3. Tail - It will show the last 5 payloads received for Digest