shridarpatil / frappe_whatsapp

WhatsApp cloud integration for frappe
https://www.youtube.com/watch?v=nq5Kcc5e1oc
Other
188 stars 169 forks source link

Issues with Whatsapp notifications #16

Closed elmerchanquin closed 1 year ago

elmerchanquin commented 1 year ago

Hi, I have fixed the grammar of your message without changing the images:

Hi, I have finished all the setup process.

I have created a permanent token as per the meta docs. I have used the URL that I saw in the picture in the readme.md, which is https://graph.facebook.com/. I have used both versions V15.0 and V16.0, but now I am using V16.0 because the webhook is configured with that one. I have set the phone number and business ID. I have also set the webhook verify token.

Screenshot 2023-03-08 090202

In the message list, I made many tests and found that when I send a message without receiving the first one from the number I'm messaging, the other number won't receive it. Basically, it should be a user-initiated conversation to be able to receive messages sent from the WhatsApp message functionality.

Screenshot 2023-03-08 091149

So I thought that in order to create a business-initiated conversation, I should use WhatsApp templates. I created my templates, and all were approved. Then, I added them to a WhatsApp notification using the new option to set a custom field on the mobile_no field.

I had no errors in the process, but it won't send WhatsApp messages. I tried sending the message first from the user and then performing the action to receive the notification, but nothing happened. I tried with different fields and still had the issue.

Is there an additional configuration that I need to do to be able to initiate business conversations? Or any meta documentation that I need to check? Additionally, is there any way that I can check the logs generated by this app? I tried looking in the error log, but I found nothing.

"erpnext": "14.18.0", "frappe": "14.26.4", "frappe_whatsapp": "0.0.1", "healthcare": "15.0.0-dev", "hrms": "14.1.0", "payments": "0.0.1" Host frappecloud

Thank you for tanking the time to read this and work on this project.

shridarpatil commented 1 year ago

This app currently supports only v15 can you change it to v15 and try?

elmerchanquin commented 1 year ago

Now is working with V15.0. Screenshot 2023-03-08 213639 But notifications don't work, even though I tested them with a similar configuration as the documentation. image

shridarpatil commented 1 year ago

What is the status of the template on Meta?

elmerchanquin commented 1 year ago

image Active - Quality pendig

shridarpatil commented 1 year ago

Can you show me your Whats Notification?

elmerchanquin commented 1 year ago

This is the user test: image This is the first one, using the custom field: image

shridarpatil commented 1 year ago

are there any error logs in the WhatsApp Notification log?

elmerchanquin commented 1 year ago

Don't think so. image I tried to modify the user and create a new patient appointment right now, but I haven't received any logs.

elmerchanquin commented 1 year ago

Screenshot 2023-03-08 222001 Thats one record, but I think its from the Direct Whatsapp message.

shridarpatil commented 1 year ago

This is business initiated message.

shridarpatil commented 1 year ago

have added a fix for this. Also you need to save mobile with country code.

elmerchanquin commented 1 year ago

Thank you, I'll review those details and provide my feedback.