Magic links on topic-based e-mail notifications
Self-hosted user here. I've hit on a problem that I don't know how to solve.
We have setup topics and have workflows attached to them with an e-mail step. We'd like to have links from the e-mail to contain magic links so that users receiving the email notifications can click through to the site.
With individual notifications, we achieved this by passing a magic link the
payload
at the point of triggering the workflow, so the links could be embedded in the e-mail. But with topics, it's creating new messages for each subscriber. So we can't use the same approach.
Has anyone else encountered this problem? Is there an approach with Novu? Or will I need to implement it outside? I imagine it's a similar situation with push although I've not tested this yet.5 Replies
Bump @Support @engineering
@dmgarland could you please explain this a bit more ?
>> But with topics, it's creating new messages for each subscriber. So we can't use the same approach.
is that magic link different for all subscribers?
Yes so I'm triggering the topic with a payload, but I don't know how to pass each subscriber to that topic a different link so they can one click login. It works with sending one email direct to a recipient, because I know who they are and can create a magic link. But for topics Novu is generating the messages presumably with the same payload to each?
@dmgarland, you just advanced to level 5!
@dmgarland
Yeah you are correct. Novu sends same payload value to each subscriber in topic