- First thing that we need to do is: Create a developer account on meta developer. https://developers.facebook.com/
- Then, we need to create an app
- Type of application (customer’s decision)

- click next, add a name and create the app

- we need to add a product
- we need to select WhatsApp



Then, go to my apps and select the app you created

- we need to create a webhook.
- Go to WhatsApp > configuration.
- There we need to add the callback URL and a token (How to do it?)

Go to power automate and create a new flow
Actions that we need to add in the flow
- Trigger: When a HTTP request is received
- Second action: Parse Json
- Third action: response
Configuration
Trigger:

Parse Json:
We need to add the expression that is highlighted in the screenshot

We need to add the following schema
Schema:
{ "type": "object", "properties": { "hub.mode": { "type": "string" }, "hub.challenge": { "type": "string" }, "hub.verify_token": { "type": "string" } }

Response
In the body, we need to add the hub.challenge from the dynamic content

Save the flow.
Copy the URL that was generated in the trigger.

Go to WhatsApp > Getting started and copy the temporary access token.

Go to WhatsApp > configuration.
There we need to add the URL and the verify token.

Add the token and click “verify and save”
The configuration is ready
If you want to trigger the flow when an user received a message we need:
Removed the “Get” method from the trigger

Remove the parse json and response action. Instead of that, add the connectors you want to use based on your needs.