Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Unanswered

How do I retrieve a PSID from the Facebook Messenger webhook when starting a new bot conversation in PVA?

(0) ShareShare
ReportReport
Posted on by

I have a Power Virtual Assistant I've created that is connected to a Facebook Messenger app/page. This is working. As PVA only allows you kickoff the bot using phrases, I'm using the "get started" phrase from Messenger to start my bot conversation. But, I want to retrieve the page scoped ID (PSID) from messenger in order to make a call to the Facebook User Profile API in order to retrieve that user's name, email address etc... I would like to then create variables from that info I can use in my bot. But, I can't figure out how to get the PSID when the bot starts. It would be better if I could use the webhook to start the bot and retrieve the PSID for that user/session but any other method would work. Any ideas?

  • JoseA Profile Picture
    20 on at
    Re: How do I retrieve a PSID from the Facebook Messenger webhook when starting a new bot conversation in PVA?

    Have you tried the call-an-action process?

     

    call an action -> create a flow -> insert new step -> search for HTTP

     

    Did you visit this page? - Add input and output variables - Power Virtual Agents | Microsoft Learn

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 25

#1
Pablo Roldan Profile Picture

Pablo Roldan 25

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard