How to send a weekly email with notifications using echo?
The following seems to only show the last notification and not all of the digested. How can I display all of them in the email?
8 Replies
Hi @BrunoLM, I'm an AI assistant for Novu. While a team member reviews this question, I'll see if I can find relevant sources for your question.
-----------------------------
While I generate an answer, here are some sources that might be helpful:
* How to send notifications with Nuxt.js and Vuemail
* How to send notifications with Next.js and React email
* Step Inputs
* React E-mail
-----------------------------
Answer
To send a weekly email with notifications using Echo, and ensure all digested notifications are displayed, the key is to correctly configure the
digest
step to accumulate events over the week rather than just a short period.
From your current configuration, it appears that your digest is set to accumulate over a period of only 2 minutes. This setting should be adjusted to span a week. Here is an updated snippet that configures the digest to accumulate notifications over a week:
This configuration changes the
digest
step to accumulate events over a week. The amount
is set to 1, and the unit
is changed to "week", which should compile all events of the week into your email.
Ensure that the workflow configuration in the Novu dashboard or via your Novu API corresponds to this updated setting to effectively capture and send all notifications within the designated timeframe. This approach ensures that the weekly email will contain all notifications accumulated over the week, rather than just the last few moments.
For more details on configuring workflows and handling payloads in Novu, consider referring to the official Novu documentation or community examples that might cover similar use cases (1) .Got it. Tagging @Support for additional help.
The digest step returns a response that contains the array of events digested
You can see here an example
Glad I could be helpful. Feel free to create a new thread with any new questions you may have.
Awesome @BrunoLM let me know if you will need more help 🙏