Arielb135
Arielb135
NNovu
Created by Arielb135 on 1/6/2025 in #💬│support
What's the proper strategy of dropping repeating notifications for a while?
In my use case my system tries to do some actions in an undetermined time. Let's say, send data to a webhook. This can happen a lot. If the webhook is misconfigured, I want to notify on it (as an inbox message), then set 7 days that additional repeating message will be dropped (meaning - I don't want to digest and collect it , then send it after a week again, because it might be user fixed the issue already). Is there any way to achieve this?
4 replies
NNovu
Created by Arielb135 on 1/6/2025 in #💬│support
Can anyone share how to create a back off digest workflow?
The API is super unclear, and the AI assistant also doesn't give good results, i've tried to create a backoff digest, but when triggering it - the body/subject is not passed on. i can't debug it as workflow editor crashes (the editor doesn't support backoff configuration) I've tried this curl but subject and body are not sent curl --request PUT \ --url https://api.novu.co/v1/workflows/677bedfba349a0b72e9d30d7 \ --header 'Authorization: ApiKey zz' \ --header 'Content-Type: application/json' \ --data '{ "name": "Digest Workflow", "description": "Workflow with digest and in-app notification", "notificationGroupId": "677bc6ac7e6bad582ab0db47", "active": true, "steps": [ { "name": "Digest Step", "template": { "type": "digest", "content": "" }, "metadata": { "amount": 20, "unit": "seconds", "type": "backoff", "backoffAmount": 20, "backoffUnit": "seconds", "digestKey": "{{subscriber.subscriberId}}-{{payload.id}}" } }, { "name": "In-App Notification", "template": { "type": "in_app", "content": "{{payload.body}}", "title": "{{payload.subject}}" } } ], "triggers": [ { "type": "event", "identifier": "digest-workflow-trigger", "variables": [ { "name": "id" }, { "name": "subject" }, { "name": "body" } ] } ] }'
4 replies