N
Novu3mo ago
J

Is it possible to override which channels are using when triggering an event?

I've searched for this but couldn't seem to find an answer. I want to know if it's possible to specify / override which channels in a workflow would be used when triggering an event? I have one instance where I just want to send emails from one trigger but no in-app notification and another where I just want to send in-app messages but don't want to have to create multiple workflows.
4 Replies
Ask Inkeep
Ask Inkeep3mo ago
Hi @J, I'm an AI assistant for Novu. While a team member reviews this question, I'll look through relevant sources and see if I can provide suggestions. Please tag @Ask Inkeep with any follow-up questions. ----------------------------- While I generate an answer, here are some sources that might be helpful: * Messages * Email * Start Point * SMS Channel Overview -----------------------------
Ask Inkeep
Ask Inkeep3mo ago
Answer Yes, it is possible to override certain aspects of a notification, including channel-specific configurations, when triggering an event in Novu. While there isn't a direct mention of selectively disabling channels like email or in-app notifications as part of the trigger process in the official documentation, you can utilize the overrides feature to modify how notifications are sent through specific channels for an event. This could potentially include redirecting or altering the channels' behavior at runtime, depending on the setup of your workflow and the capabilities of the channels you are using (1) . However, for a more precise control over which channels are used per trigger without creating multiple workflows, consider structuring your workflows with conditions or utilizing the API to programmatically manage the channels used for each notification scenario within a single workflow. This approach might require a combination of workflow design and dynamic payload manipulation through the overrides feature. For detailed utilization of channel-specific overrides, including how to override provider configurations, please refer to the documentation on triggering events with overrides. If you're looking to control the flow within your existing workflow setup, you might need to explore conditional logic within your workflow design or use the overrides option to adjust the notification behavior dynamically.
J
J3mo ago
I think the robot has given me the answer. I'm guessing the way to do this would be to use workflow conditions and pass something in the payload.
Ask Inkeep
Ask Inkeep3mo ago
Glad I could be helpful. Feel free to create a new thread with any new questions you may have. Glad I could be helpful. Feel free to create a new thread with any new questions you may have.
Want results from more Discord servers?
Add your server
More Posts