crmrest.blogg.se

Whatsapp send msg api
Whatsapp send msg api














The payload along with the endpoint data should contain the WhatsApp message template name as part of the Custom Data field. Amazon Pinpoint campaign or journey using endpoint type CUSTOM invokes an AWS Lambda function.The API call contains the WhatsApp access token, the customer’s mobile number and the WhatsApp message template name. Specifically, Pinpoint invokes an AWS Lambda function and performs an API call to WhatsApp. Outbound messagesįor outbound messages Amazon Pinpoint integrates with WhatsApp via its custom channel allowing users to send WhatsApp messages using Pinpoint campaigns and journeys. The solution uses Amazon Pinpoint custom channel, AWS Lambda, Amazon API Gateway, AWS Cloudformation and AWS Secrets Manager. The next section dives deeper into the architecture for both outbound and inbound messages.

whatsapp send msg api

Solution & ArchitectureĪn integration between Amazon Pinpoint and WhatsApp can be achieved for both outbound and inbound messages. Amazon Web Services isn’t responsible for any third-party service that you use to send messages with custom channels. Note: WhatsApp is a third-party service subject to additional terms and charges. It reached 2.3 billion active users in 2022 while in January 2022, WhatsApp was the most downloaded chat and messaging app worldwide, amassing approximately 40.6 million downloads across the Apple App Store and the Google Play Store. Among many other possibilities, you can use custom channels to send messages to your customers through any API-enabled service, for example WhatsApp.Īccording to statista, WhatsApp is one of the most used apps in the world and the most popular messaging app in over 100 countries. Using Amazon Pinpoint’s custom channel you can extend its capabilities via a webhook or AWS Lambda function.

Whatsapp send msg api install#

Sudo apt install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.In this blog you will deploy a solution that integrates Amazon Pinpoint with WhatsApp for outbound and inbound messages.Īmazon Pinpoint is a multichannel customer engagement platform allowing you to engage with your customers across 6 different channels ( push notifications, email, SMS, voice, in-app messages and custom channel). And after your next deploy, this buildpack to use puppeter will be installed with your app. To do it, you have to access the app on Heroku and go to the menu "Settings" -> "Buildpacks" -> "Add buildpack", fill out the Buildpack URL with "jontewks/puppeteer" and click in "Save changes" button. So if you are getting some log like this ".loading shared libraries: libnss3.so: cannot open shared object file." you will have to install a "Buildpack" in your app. Paas hosting (Heroku): This project uses whatsapp-web.js package that uses Puppeter and it is based on chrome. /tokens: Return a qrCode image and also render this QrCode on command line prompt to be read using an whatsapp and record that number to send new messages./sessions: Sign in to get the access token.# Default credentials: # username: admin # password: 123456 # Well done, project is started! 👨🏻‍💻 Endpoints # Or you can run separately the API/WhatsApp message client # Run this command to start the server in development mode $ CREATE USER 'username 'localhost ' IDENTIFIED BY 'password ' # Make a copy of '.env.example' to '.env' # and set with YOUR environment variables

whatsapp send msg api

# Creates a new mysql user (changes the username and password) # To connect with mysql database you can use a tool like DBeaver for example $ docker run -name "whatsapp " -e MYSQL_ROOT_PASSWORD= "mysql_password " -p 3306:3306 -d mysql:5.7.30 # Creates a docker container or use your own mysql installation (changes the password)














Whatsapp send msg api