Generic in-app notifications in the same workflow
Hi, I want to create a workflow which sends a notification whose text and avatar will be dynamic, decided by data passed in payload, i.e
{
"text": "<desired text>",
"avatar": "<image URL>"
}
Is this or something similar possible to achieve?
1 Reply
@Nir
I am assuming you are using V1 workflows and
@novu/notification-center
package to display in-app notification.
notification content (text) can be dynamic
use any variable like this {{notification_message}}
and send its value in payload
Avatar is picked from the avatar
field of actor
checkout this doc
https://v0.x-docs.novu.co/notification-center/client/react/get-started#avatar-icons
In v1, it is not possible to send avatar value from payload