web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to use power autom...
Power Automate
Answered

How to use power automate with WhatsApp

(2) ShareShare
ReportReport
Posted on by 8

 

 

 

 

  1. 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)

yei_1-1687192279290.png

 

  • click next, add a name and create the app

yei_2-1687192279304.png

 

 

 

 

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

yei_3-1687192279325.png

 

 

yei_4-1687192279330.png

 

 

yei_5-1687192279347.png

 

 

 

 

 

 

 

 

 

 

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

yei_6-1687192279361.png

 

 

  1. 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?)

yei_7-1687192279366.png

 

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:

yei_8-1687192279371.png

 

 

Parse Json:

We need to add the expression that is highlighted in the screenshot

yei_9-1687192279376.png

 

 

 

 

 

 

 

 

 

We need to add the following schema

Schema:

{ "type": "object", "properties": { "hub.mode": { "type": "string" }, "hub.challenge": { "type": "string" }, "hub.verify_token": { "type": "string" } }

 

 

yei_10-1687192279381.png

 

 

Response

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

yei_11-1687192279385.png

 

 

 

 

Save the flow.

Copy the URL that was generated in the trigger.

yei_12-1687192279388.png

 

 

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

yei_13-1687192279405.png

 

Go to WhatsApp > configuration.

There we need to add the URL and the verify token.

yei_14-1687192279408.png

 

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

yei_15-1687192279434.png

 

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

 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @yei ,

     

    Thanks for sharing!

     

    Best Regards,

    Wearsky

  • ivyroom Profile Picture
    5 on at

    Thank you so much. This works smoothly.

  • Bcram_Fotoseg Profile Picture
    8 on at

    I get error on validation everytime.

  • Verez88 Profile Picture
    on at

    I have the same error everytime

  • yei Profile Picture
    8 on at

    can you share the error? @Verez88 @Bcram_Fotoseg 

  • davidjj Profile Picture
    45 on at

    Great solution, thank you!!!
    The Schema have an error, should be this one: { "type": "object", "properties": { "hub.mode": { "type": "string" }, "hub.challenge": { "type": "string" }, "hub.verify_token": { "type": "string" }}}

  • andrealuciani Profile Picture
    2 on at

    @yei thank you very much!

    Following your exact instructions,

    I actually am experiencing the following issue during webhook registration.

     

    whatsapp_webhook_registration_failed.png

     

    I don't have any reasonable idea of why this doesn't work.

    Do you? Did your example worked on the first shot?

     

    thanks

    Andreas

  • davidjj Profile Picture
    45 on at

    the flow should be run in test mode first, then you can verify.

  • batista9607 Profile Picture
    64 on at

    You can integrate WhatsApp with Power Automate using third-party services or APIs

  • davidjj Profile Picture
    45 on at

    just the whatsapp API.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard