N
Novu2mo ago
BrunoLM

Is it possible to setup a schedule with echo?

I have a digest setup to send weekly emails
const digestResult = await step.digest("weekly", async () => {
return {
amount: 1,
unit: "weeks",
};
});
const digestResult = await step.digest("weekly", async () => {
return {
amount: 1,
unit: "weeks",
};
});
Is it possible to configure the same way I can on the webapp?
No description
4 Replies
Ask Inkeep
Ask Inkeep2mo ago
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: * Digest Action Step * Digest Engine * How to Add Digest to Email Notifications * Workflows -----------------------------
Ask Inkeep
Ask Inkeep2mo ago
Answer In Novu's Echo system, you can indeed set up schedules directly in the code, similar to how you configure them via the webapp. The code snippet you provided for a weekly digest setup is a good example of how to configure this programmatically:
const digestResult = await step.digest("weekly", async () => {
return {
amount: 1,
unit: "weeks",
};
});
const digestResult = await step.digest("weekly", async () => {
return {
amount: 1,
unit: "weeks",
};
});
(1) This setup in Echo effectively creates a digest that aggregates events over a week before sending them out. This mirrors the capability you have in the web-based workflow editor where digests can be set to accumulate notifications over specified intervals before dispatch. If you need to adjust the timing or specifics of the digest beyond weekly intervals, you can modify the amount and unit in the code to fit your needs, such as days, hours, or minutes. For more detailed examples and configurations, you might find the official Novu documentation on Echo Workflows helpful, which outlines various strategies and settings for digests.
Ask Inkeep
Ask Inkeep2mo ago
Got it. Tagging @Support for additional help.
Dima Grossman
Dima Grossman2mo ago
Hi @BrunoLM unfortuently at the moment it's not possible. I believe that we will deliver this capability in the next 3-4 weeks