Skip to content

Unable to Send Template Whatsapp Message to User from End User Social Messaging

0

Hi, I am Unable to Send Template Whatsapp Message to User from End User Social Messaging.

Please find the sample AWS CLI command. aws socialmessaging send-whatsapp-message
--message "$(echo -n '{"messaging_product":"whatsapp","to":"+91{10 digit indian phone number}","type":"template","template":{"name":"mony_general_verify","language":{"code":"en_US"},"components":[{"type":"body","parameters":[{"type":"text","text":"123456"}]}]}}' | base64)"
--origination-phone-number-id phone-number-id-{rest alphanumeric phone number id}
--meta-api-version v20.0 --debug

I am successfully receiving message Id in response. But message is not delivered to the user. Suggest me how to debug and fix the issue. I checked on Facebook Manager Portal also nothing is wrong it seems there.

Thanks

  • I have facing same problem in sending whatsapp messages using end user messaging via AWS_CLI.

    the sample code given in aws page is completely not proper. using below mentioned code the cli screen give error every time.

    aws socialmessaging send-whatsapp-message --message '{"messaging_product":"whatsapp","to":"'{PHONE_NUMBER}'","type":"template","template":{"name":"statement","language":{"code":"en_US"},"components":[{"type":"body","parameters":[{"type":"text","text":"1000"}]}]}}' --origination-phone-number-id {ORIGINATION_PHONE_NUMBER_ID} --meta-api-version v20.0

1 Answer
0

I understand you're having trouble sending a template WhatsApp message using AWS End User Messaging Social. Even though you're receiving a message ID in the response, the message isn't being delivered to the user. Here are some steps to help you debug and potentially fix the issue:

  1. Verify user opt-in: Ensure that the user has opted in to receive messages from you. This is a crucial requirement for sending template messages.

  2. Check template status: Verify that your template "mony_general_verify" is approved and active in the WhatsApp Manager. Templates with lowered status or those that are not approved cannot be sent.

  3. Confirm customer service window: Although template messages can generally be sent at any time, it's worth checking if there's an open customer service window for the recipient.

  4. Review message status: Enable a message and event destination to receive message statuses. This will help you understand if the message is failing and why.

  5. Validate phone number: Ensure that the recipient's phone number is correctly formatted and valid.

  6. Check WABA setup: Verify that your WhatsApp Business Account (WABA) is properly set up and active.

  7. Examine template components: Make sure the template components in your CLI command match exactly with the approved template structure.

  8. Monitor quality rating: If your template has a low quality rating, it might affect message delivery. Check the template's quality rating in the WhatsApp Manager.

  9. Review Facebook Manager Portal: Although you mentioned checking the Facebook Manager Portal, double-check for any alerts or issues related to your WABA or templates.

  10. Consult AWS support: If all else fails, consider reaching out to AWS support for further assistance.

By systematically going through these steps, you should be able to identify and resolve the issue preventing your template message from being delivered.
Sources
Sending messages through WhatsApp with AWS End User Messaging Social - AWS End User Messaging Social
Using message templates in AWS End User Messaging Social - AWS End User Messaging Social
Get feedback on a template's lowered status with WhatsApp Manager - AWS End User Messaging Social
Example of sending a template message in AWS End User Messaging Social - AWS End User Messaging Social

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.