novuhq / novu-python

Python SDK for Novu - The open-source notification infrastructure for engineers. 🚀
https://novu-python.readthedocs.io
MIT License
74 stars 32 forks source link

FEATURE: A helper to create workflow #13

Open ryshu opened 1 year ago

ryshu commented 1 year ago

Add a helper to create a workflow

Danimoz commented 1 year ago

I want to work on this

unicodeveloper commented 1 year ago

@ryshu Please can you shed more light on how this is supposed to be or work?

ryshu commented 1 year ago

@unicodeveloper

No idea in deep but it's a must-have if we want to help you on the support side.

The idea here is that it's very complex to manage the definition of workflows from the API.

In my opinion, users should eventually be able to simply declare a template using the SDK like that:

template = Template(name="my template")
template.add_step(InAppNotification("A message of in-app notification"))
template.add_step(Digest(timeout=3600))
template.add_step(EmailNotification(subject="A subject of email", content="...."))
template.synchronize_with_novu()
sumitsaurabh927 commented 10 months ago

Hey @Danimoz you still interested in this?

Danimoz commented 10 months ago

Yes I am

On Mon, Oct 23, 2023, 18:45 Sumit Saurabh @.***> wrote:

Hey @Danimoz https://github.com/Danimoz you still interested in this?

— Reply to this email directly, view it on GitHub https://github.com/novuhq/novu-python/issues/13#issuecomment-1775706606, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKJAZJ6TDOPCZZS2LXF3O3YA2UNFAVCNFSM6AAAAAAVA5FIUOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZVG4YDMNRQGY . You are receiving this because you were mentioned.Message ID: @.***>