novu icon indicating copy to clipboard operation
novu copied to clipboard

[NV-782] - WhatsApp Provider

Open escobar5 opened this issue 2 years ago • 12 comments

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 avatar Aug 12 '22 16:08 escobar5

@escobar5 interested in working on this?

oba2311 avatar Aug 14 '22 08:08 oba2311

@escobar5 interested in working on this?

yes, let me check the code first

escobar5 avatar Aug 14 '22 13:08 escobar5

@scopsy & maintainers can i work on this issue for Hacktoberfest 2022? So can it be assigned to me?

Smartmind12 avatar Oct 08 '22 07:10 Smartmind12

@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?

escobar5 avatar Oct 19 '22 13:10 escobar5

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 ?

scopsy avatar Oct 20 '22 10:10 scopsy

Yes, sounds good, @scopsy can you assign this to me, so I continue working on it?

escobar5 avatar Oct 20 '22 11:10 escobar5

@escobar5 do you still want to take a look at this?

scopsy avatar Nov 27 '22 13:11 scopsy

Really hope this feature is implemented as planned

inglesuniversal avatar Dec 31 '22 19:12 inglesuniversal

@escobar5 are you working on this?

vipulsharma144 avatar Mar 08 '23 12:03 vipulsharma144

@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

escobar5 avatar Mar 08 '23 12:03 escobar5

I did a simple implementation using the whatsapp business api here #3575 , is still in draft and can be improved. Any opinion on that ?

antoniodinovi avatar Jun 23 '23 09:06 antoniodinovi

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.

bitpickle avatar Feb 08 '24 16:02 bitpickle