novu
novu copied to clipboard
[NV-782] - WhatsApp Provider
What?
It would be nice to have a provider to send WhatsApp notifications
Why?
WhatsApp is being currently used in many use cases to notify users about deliveries, app updates, etc.
How?
Integrating WhatsApp for Business API. The difficult part, I think, may be the WhatsApp enterprise onboarding, after that, integrating the API is simpler. Another option would be Twillio Messaging for WhatsApp.
@escobar5 interested in working on this?
@escobar5 interested in working on this?
yes, let me check the code first
@scopsy & maintainers can i work on this issue for Hacktoberfest 2022? So can it be assigned to me?
@oba2311, @scopsy, I'm now creating the WhatsApp Provider using WhatsApp Business API, I have a question though, there's an IChatOptions
interface, I first thought as WhatsApp is a chat application I may use this, but it doesn't have a to
property, maybe ISmsOptions
may be a better option, it does have the to
property and also attachments
. What do you think?
I think that IChatOptions
is the way to go, tho I think we should extend to also work with the to
field for a phone number. We would need to do a conditional in the send-chat-message.usecase, so depending on provider we either use the to field or the webhook URL.
What do you think about this approach @escobar5 ?
Yes, sounds good, @scopsy can you assign this to me, so I continue working on it?
@escobar5 do you still want to take a look at this?
Really hope this feature is implemented as planned
@escobar5 are you working on this?
@escobar5 are you working on this?
Hi, no, not working on it, I was awaiting for confirmation from maintainers, but now I have no availability unfortunately
I did a simple implementation using the whatsapp business api here #3575 , is still in draft and can be improved. Any opinion on that ?
I was wondering if it would be possible to use a webhook provider (email, for example) to tap into an api integrated with VenomBot.
The api will handle all the whatsapp part, novu just needs to deliver the message via webhook.
I'll test it and bring you news.