Skip to content

Receiving WhatsApp Message

1

Hi all, I know Amazon Pinpoint supports sending messages to WhatsApp but is there a way to receive messages sent by a user in Whatsapp? Do I have to make use of AWS Lambda and write a custom code with WhatsApp API instead to receive messages?

1 Answer
0

While Amazon Pinpoint does support sending messages to WhatsApp, the process for receiving messages from WhatsApp users is not as straightforward and requires a custom solution.

Amazon Pinpoint allows you to create custom channels to extend its capabilities, including integration with third-party services like WhatsApp. However, for receiving messages, you would indeed need to implement a custom solution using AWS Lambda and the WhatsApp API.

To set this up, you would need to:

  1. Create an AWS Lambda function that can interact with the WhatsApp API to receive incoming messages.

  2. Configure a custom channel in Amazon Pinpoint that uses this Lambda function.

  3. Set up the necessary webhooks or API endpoints on the WhatsApp side to forward incoming messages to your Lambda function.

It's important to note that while Pinpoint provides the framework for custom channels, the actual implementation of receiving messages from WhatsApp would rely on your custom code and the WhatsApp API's capabilities.

Also, be aware that the integration of WhatsApp with Amazon Pinpoint has evolved. There's a note indicating that WhatsApp is now available through AWS End User Messaging, which might offer additional capabilities for both sending and receiving messages. You may want to explore this newer solution for potentially more streamlined WhatsApp integration.

Remember to review the terms of service for any third-party messaging service you integrate with, as Amazon Pinpoint is not responsible for these external services.
Sources
Send WhatsApp messages via Amazon Pinpoint | AWS Messaging & Targeting Blog
Custom channels in Amazon Pinpoint - Amazon Pinpoint

answered a year 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.