Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure backoff digest? #7441

Open
3 tasks
arielbeckjit opened this issue Jan 6, 2025 · 2 comments
Open
3 tasks

How to configure backoff digest? #7441

arielbeckjit opened this issue Jan 6, 2025 · 2 comments
Labels

Comments

@arielbeckjit
Copy link

  • 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)

image

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"
          }
        ]
      }
    ]
  }'
Copy link

linear bot commented Jan 6, 2025

@github-actions github-actions bot added the triage label Jan 6, 2025
@SokratisVidros
Copy link
Contributor

Hi @arielbeckjit, can you please clarify which Workflow editor crashes? Is it about the one at https://dashboard-v2.novu.co/?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants