Multiple Push Webhook
Hi, I'm having a problem with push providers. I have a user configured in 2 providers, the idea is that each provider would be used in a different workflow. When activating a workflow, 2 push webhooks are being selected, I would like to activate only 1. I tried to use the conditions of providers and tenants so that only 1 push webhook is selected, but the 2 push webhooks continue to be used.
Does anyone know if I'm using the resources correctly or if there is an alternative? in the image I show the event that is triggered with the tenants and the conditions of the providers
3 Replies
Hi @EweRRRton, I'm an AI assistant for Novu. While a team member reviews this question, I'll see if I can find relevant sources for your question.
-----------------------------
While I generate an answer, here are some sources that might be helpful:
* Step Conditions
* Workflows
* Push Webhook
* Variants
-----------------------------
Answer
Based on the information provided in the documents, there isn't a direct reference to configuring multiple push webhook providers for different workflows in such a way that allows selecting a specific one based on conditions within the workflows. Novu does provide a robust system for managing workflows, including conditions that can be applied to steps within those workflows (1) , and while there's support for push webhook as a provider (2) , the documentation doesn't elaborate on managing multiple push webhook providers with the specificity your scenario requires.
The Discord discussions highlight user experiences and implementations related to push webhooks (3) (4) (5) , indicating varied use cases and setups, but they don’t directly address the scenario of activating a specific webhook provider based on workflow conditions.
If you're finding that both push webhooks continue to be activated despite your configuration, it might be an indication of a limitation or a need for a more granular control feature within Novu that's not documented or explicitly supported yet. Given the situation, a potential workaround could involve custom logic on your server to differentiate the webhook calls once they're received, although this moves the logic outside of Novu's purview.
For your specific use case of wanting to activate only one of the push webhooks based on certain conditions, it appears this might be an area where Novu's current features don't provide a straightforward sol
ution as per the existing documentation. It may be beneficial to explore Novu’s community discussions further or examine the possibility of a feature request to address this capability directly within Novu’s platform.
@EweRRRton
I can reproduce the issue
Thanks for reporting. I will share a github issue for this.
https://github.com/novuhq/novu/issues/5548