Open
Description
-
I'm submitting a question about how to create a workflow with digest backoff policy - via REST
- bug report
- feature request
- question about the decisions made in the repository
- [Z ] question about how to use this project
-
Summary
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)
please assist, i need to finish evaluation and decide if i should buy
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"
}
]
}
]
}'