N
Novu9mo ago
SHG-TV

Novu Unsubscribe Link in E-Mail

As of german or european law, emails should have a unsubscribe link within an email. Is it currently possible to add one, which will modify the current preferences for the workflow to set it to disabled? f.ex. when user preferences are allowed?
19 Replies
Ask Inkeep
Ask Inkeep9mo ago
Hi @SHG-TV, I'm an AI assistant for Novu. While a team member reviews this question, I'll look through relevant sources and see if I can provide suggestions. Please tag @Ask Inkeep with any follow-up questions. ----------------------------- While I generate an answer, here are some sources that might be helpful: * Preferences * Python * Security and Compliance * Outlook 365 -----------------------------
Ask Inkeep
Ask Inkeep9mo ago
Answer Yes, it is possible to manage user preferences, including unsubscribing from specific workflows or notification types, using Novu's preferences feature. While the documentation does not explicitly detail adding an unsubscribe link that directly modifies a workflow's enabled status, it outlines how to manage global and channel-specific preferences for users, which can be indirectly used for this purpose. For instance, you can update a subscriber's preferences to disable notifications for certain workflows or channels, effectively acting as an unsubscribe mechanism. This could be implemented by modifying the subscriber's preferences upon interaction with an unsubscribe link you provide in the email (1) . For managing global preferences, including disabling email notifications across all workflows, you can use the 'Update subscriber’s global preference API' as shown:
import { Novu } from '@novu/node';
const novu = new Novu('<NOVU_API_KEY>');
await novu.subscribers.updateGlobalPreference("subscriberId", {
preferences: [{
type: "email",
enabled: false
}]
});
import { Novu } from '@novu/node';
const novu = new Novu('<NOVU_API_KEY>');
await novu.subscribers.updateGlobalPreference("subscriberId", {
preferences: [{
type: "email",
enabled: false
}]
});
This mechanism can be tailored to comply with GDPR and other local regulations by ensuring the user can control their notification preferences, including the ability to unsubscribe from email notifications. Please note, the direct functionality to modify workflow enabled status via an unsubscribe link isn't detailed explicitly in the provided sources, but the preferences API can be used to achieve a similar effect from a user experience perspective.
SHG-TV
SHG-TVOP9mo ago
@Support Is it planned, that novu would add a preferences cockpit, which can be linked at the end of the email, when required? f.ex. with an one-time-token to authenticate?
Tomer Barnea
Tomer Barnea9mo ago
Hey @SHG-TV it is planned, @sokratis I think can share some thought around this. @SHG-TV can you add a request for this on the roadmap here? https://roadmap.novu.co/roadmap Thanks!!
SHG-TV
SHG-TVOP9mo ago
i did, thank you 🙂 @Tomer Barnea do you have a approximately forecast, which amount of time this will take to implement, as we are currently considdering to create a temporary workaround for this to use novu in prod.
Tomer Barnea
Tomer Barnea9mo ago
Hey @SHG-TV, I am not sure, @sokratis @Pawan Jain can you help out here?
Pawan Jain
Pawan Jain8mo ago
@SHG-TV We are working on shaping this feature. We will be able to share the ETA next week once we finalize the date
SHG-TV
SHG-TVOP8mo ago
@Pawan Jain any updates or a Issue/PR where I can see the progress on this?
Tomer Barnea
Tomer Barnea8mo ago
@Pawan Jain can you help us here? any updates?
SHG-TV
SHG-TVOP7mo ago
@Pawan Jain @Tomer Barnea any updates?
Tomer Barnea
Tomer Barnea7mo ago
Hey @SHG-TV, I'll reach out to the team now and provide a response soon. Sorry for delay.
SHG-TV
SHG-TVOP7mo ago
Thank you very much. 🙂
Tomer Barnea
Tomer Barnea7mo ago
Hey @SHG-TV, after updates to the roadmap this item was deprioritized. My personal suggestion would be to build a simple page and serve the user prefrences if that's something you can do.
SHG-TV
SHG-TVOP7mo ago
Ok, thanks for the information. I think you should revisit this later on, because this is a "Pain Point" for many people i guess and would be an additional USP for Novu itself in the future. Thank you anyways and have a nice day. @Pawan Jain @Tomer Barnea
Tomer Barnea
Tomer Barnea7mo ago
Hey @SHG-TV I am sure we will, and I think it might be quicker then we both think 😄
SHG-TV
SHG-TVOP7mo ago
sounds great 🙂
Novu_Bot
Novu_Bot7mo ago
@SHG-TV, you just advanced to level 5!
SHG-TV
SHG-TVOP7mo ago
@Tomer Barnea Hi, sorry for the revisit of this discussion. We wanted to ask if we can provide any input/support/pr/resources on this topic, because we have to implement this shortly and think it would be best suited to use a solution within novu itself.
Pawan Jain
Pawan Jain7mo ago
@SHG-TV Add {{unsubscribe}} variable in email content editor and send url value of this variable in payload. create a simple html page to fetch preferences and then use update preference api to update
Want results from more Discord servers?
Add your server