Insfrastructure capable of measuring signals in WhatsApp conversations.
There are two deployments supported today, Serverless Application Model (SAM) project to deploy an AWS Cloudformation or Terraform for GCP.
Requirements:
- aws-cli
- aws-sam-cli
- Node 18:
- Install nvm:
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash - Make sure to set the environment variable with the command that is outputted by the previous step.
- Then you install Node:
nvm install 18
- Install nvm:
Deploy:
- build:
sam build -t iac.yaml - deploy:
sam deploy -g --stack-name <lowercase-stack-name>(make sure the stack name is all lowercase) - copy the outputted endpoint as it is going to be used in the next session (if you didn't copy you can still copy it visiting the Outputs tab in Cloudformation CLI)
- Import the postman collection WMG.postman_collection.json in your Postman account
- Set the variable
wmg_domainwith the outputted endpoint of your Cloudformation deploy (ATTENTION: make sure you don't leave an empty space at the end! Otherwise you might receive this error when calling the endpoint:Authorization header requires 'Credential' parameter.(...)) - Set the variable
wmg_security_tokenwith the token chosen during the deploy of the stack - Set the variable
wmg_waba_idwith the WABA ID whose phone number is going to be used - Set the variable
whatsapp_cloud_api_tokenwith a token with permissions:whatsapp_business_management,whatsapp_business_messagingandbusiness_management. - Manage the keywords using the endpoints:
Get keywords,Get Keyword by id,Create Keywords,Update Keywords - Send WhatsApp messages to the
Routerendpoint instead of calling WhatsApp Cloud API directly - Call the
Campaigns performanceendpoint whenever you want to check conversations and signals of your phone numbers.
WMG is MIT licensed.
