whaticket-community icon indicating copy to clipboard operation
whaticket-community copied to clipboard

[Feature Suggestion] Webhooks for automation

Open deepesh-agarwal opened this issue 4 years ago • 7 comments

I would like to suggest and ask for guidance on where to start looking for implementing webhooks, the idea is to push automated messages like this api.backend.com/?num=xxxxxxxx&action=quickreply1 we can also use the same to activate quick replies from the frontend as well.

deepesh-agarwal avatar Sep 11 '20 11:09 deepesh-agarwal

I would like to suggest and ask for guidance on where to start looking for implementing webhooks, the idea is to push automated messages like this api.backend.com/?num=xxxxxxxx&action=quickreply1 we can also use the same to activate quick replies from the frontend as well.

@deepesh-agarwal Really nice suggestion, that will be very very useful so that we could perform actions via http request.

I tried out https://github.com/pranavms13/whatsapp-node-api and it worked pretty well. But im not using it in real environment/situation, im using Whaticket instead, because it fits better in my use-case.

Would be awesome to have webhooks in Whaticket in the future!

esteves67 avatar Sep 13 '20 17:09 esteves67

@deepesh-agarwal i've just implemented an Webhook API, take a look and see if it works for you, the files that changed are just the wbotMessageListener.ts, i tested in my machine and it all works good.

esteves67 avatar Jan 07 '21 10:01 esteves67

please tell me how it works..

swalayan-hasbuna avatar Feb 19 '21 14:02 swalayan-hasbuna

Ola, essa função foi implementada?

maxivane avatar Sep 20 '21 15:09 maxivane

Ola, essa função foi implementada?

@esteves67 I have the same doubt. Could you confirm please? And in what way is it used? From already thank you very much

Gecko2087 avatar Sep 21 '21 22:09 Gecko2087

Ola, essa função foi implementada?

@esteves67 I have the same doubt. Could you confirm please? And in what way is it used? From already thank you very much

https://github.com/canove/whaticket/pull/103/files

I got it, this link contains the working file.. put it in the backend/src/services/WbotServices/ folder and then run the npm run build command

maxivane avatar Sep 22 '21 03:09 maxivane

npm run build.. error image

diazzaid avatar Sep 22 '21 05:09 diazzaid