N
Novuβ€’8mo ago
Harshit_Mishra

Adding Whatsapp chat provider to Novu

hey folks i am working on adding D7 Network Whatsapp Chat Provider and i have setuped the provider using Novu's guide to building a provider and need a bit of guidance on what i have to do next with the D7's whatsapp API https://github.com/novuhq/novu/issues/4369#issuecomment-1750744015
24 Replies
Pawan Jain
Pawan Jainβ€’8mo ago
@Harshit_Mishra Please share your doubts πŸ™‚
Novu_Bot
Novu_Botβ€’8mo ago
@Harshit_Mishra, you just advanced to level 1!
Harshit_Mishra
Harshit_Mishraβ€’8mo ago
@Pawan Jain i have did this much
No description
Harshit_Mishra
Harshit_Mishraβ€’8mo ago
Send Whatsapp Message | D7 Networks
Explore the steps to getting start with Online Whatsapp API
Harshit_Mishra
Harshit_Mishraβ€’8mo ago
as there are many ways like one to one, one to many and many to many
Pawan Jain
Pawan Jainβ€’8mo ago
Hi @Harshit_Mishra As of now you can go with one to one sending message to one person https://d7networks.com/docs/Whatsapp/Send-Whatsapp-Message/
Send Whatsapp Message | D7 Networks
Explore the steps to getting start with Online Whatsapp API
Pawan Jain
Pawan Jainβ€’8mo ago
I feel whatsapp provider should be in sms channel because it requires subscriber phone number to send whatsapp message
Harshit_Mishra
Harshit_Mishraβ€’8mo ago
hey @Pawan Jain this is the provider that i have made if everything seems right i will make the PR
Harshit_Mishra
Harshit_Mishraβ€’8mo ago
No description
Pawan Jain
Pawan Jainβ€’8mo ago
Feels ok Please check api and payload in postman as well
Harshit_Mishra
Harshit_Mishraβ€’8mo ago
ok i don't have the API key for making the api call as D7 networks does not allow @gmail.com emails for registering on their platform and i don't have any other one πŸ˜…, although without the API key when i made the post request it did gave me Not authenticated as response
Pawan Jain
Pawan Jainβ€’8mo ago
As per this https://d7networks.com/docs/SMS/Send-SMS/ Api key with Bearer should go in header
No description
Harshit_Mishra
Harshit_Mishraβ€’8mo ago
No description
Harshit_Mishra
Harshit_Mishraβ€’8mo ago
i guess this should be it @Pawan Jain , user will have a apiKey from D7 that they will use, originator and recipients will come from options and type of message should be TEXT as we are sending text instead of template and that text will come from options.content, then we are making config that has the Authorization set to this.apiKey and after that using axiosInstance we are making a post request to url along with config and data and all of this is in accordance with https://d7networks.com/docs/Whatsapp/Send-Whatsapp-Message/ with message type set to text
Send Whatsapp Message | D7 Networks
Explore the steps to getting start with Online Whatsapp API
Harshit_Mishra
Harshit_Mishraβ€’8mo ago
No description
Pawan Jain
Pawan Jainβ€’8mo ago
πŸ‘πŸ»
Harshit_Mishra
Harshit_Mishraβ€’8mo ago
hey @Pawan Jain i have made the PR please review it
https://github.com/novuhq/novu/pull/4676
GitHub
whatsapp chat provider added by harshit-senpai Β· Pull Request #4676...
What change does this PR introduce? Why was this change needed? This PR should close #2953 Other information (Screenshots)
dentricedev
dentricedevβ€’8mo ago
Hi @Harshit_Mishra This is a great feature. I have a suggestion on this also, in a case where a company has its own whatsapp api server, could you consider adding like a custom integration for whatsapp where the user inputs the url and the api keys in the configurations?
Novu_Bot
Novu_Botβ€’8mo ago
@dentricedev, you just advanced to level 2!
Harshit_Mishra
Harshit_Mishraβ€’8mo ago
Hey @dentricedev that's a nice suggestion that can be considered working on. of using api server of any other company, but for this particular feature it was requested to make whatsapp provider using D7 networks api. but you can propose this as a feature to the Team and they might consider it, and i would also be delighted to work on
Novu_Bot
Novu_Botβ€’8mo ago
@Harshit_Mishra, you just advanced to level 3!
dentricedev
dentricedevβ€’8mo ago
@Pawan Jain Do you think this is a feature worth considering?
Pawan Jain
Pawan Jainβ€’8mo ago
@dentricedev Yes sure we can include this Could you please create new feature request on github for this? !feature