cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

PVA on Facebook Messenger

Hi all!

 

I have integrated my bot with Facebook Messenger and it works. But now, how can I get the userID and the user name that is talking with my bot? And, I can I show template messages to my users (buttons, a carrousel, media content)? Do I need to do POST requests to Facebook API?

 

Thanks for the help,

Regards,

Ruben

6 REPLIES 6
Super User
Super User

Hi @rubcosta ,

 

1- You can use the Username and the userId with Authentication inside the Azure.

 https://docs.microsoft.com/en-us/power-virtual-agents/advanced-end-user-authentication

Or you can create an idea inside the forum to get by default these properties:  https://aka.ms/pva/community/ideas

 

2- Maybe you can use the markdown inside the messages integrated to Power Automate, but you can get some limitations inside the Facebook message. https://docs.microsoft.com/en-us/power-automate/approvals-markdown-support

Or you can use the PVA questions to show buttons.

 

3- No, you will use only the chat inside the Facebook messenger. If you want to advance inside the Facebook connections, you can integrate with Power Automate to realize some POST requests. 


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+2.300 students | PROMOTIONS) : English | Português

Hi @renatoromao,

 

Thanks for the answer. I already see this answer in another topic and I also saw your videos. But to be honest, for me does not make any sense I need to authenticate a user that should be already authenticated. I mean, if you are in your Messenger app of your mobile talking with the bot, the bot needs to have soma basic information about the user, and information like id and the name, they need to have! I already tested another bot platforms and they have it! So for me, need to show a login button to user and authenticate the user, don't make sense. I'm Portuguese, we can have this discussion in Portuguese if you want.

 

About the Facebook Template messages, the only way that I have is to use the Facebook API. BUT using Facebook API to show buttons, I will not have the same behavior that we have if we use PVA questions to show buttons. Unfortunately, PVA questions just show Quick Replies in Messenger.

 

One more time, if you want to have this conversation in Portuguese, for me it's ok and I will appreciate getting some help to resolve these simples things.

 

Regards,

Ruben

 

 

Hi @rubcosta ,

 

Great, I'm very happy to see another Brazilian guy to do a lot of things using PVA! 😄 

I will send in English to help more people, but I appreciate your availability.

 

Regarding the User properties, I agree with you that using PVA chatbot has some limitations comparing to use of other chatbots. But I think that Microsoft is improving the services and this product with the user's feedback.

I recommend you post an idea because if get many votes, Microsoft can prioritize this feature inside the Roadmap.

https://aka.ms/pva/community/ideas

 

Regarding the Facebook Templates, today you just can use fixed options using Entities or fixed inside Questions into the PVA, not getting the data from Facebook or another database. You can create this idea too inside the Ideas portal.

 

And I recommend you to follow this documentation to look at which features Microsoft will prioritize in the Roadmap.

https://docs.microsoft.com/en-us/power-platform-release-plan/2020wave2/power-virtual-agents/planned-... 


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+2.300 students | PROMOTIONS) : English | Português

Hi @rentomorao,

 

Just to ensure that I understood your fist answer: If I use the Authentication node, I can get the name and the ID of the user, provided by the Facebook? And after that, can I do the POST requests to the Facebook API to show, for example, carrousels? 

 

Regards,

Ruben

 

Hi @rubcosta ,

 

It's a difficult way, but yes, you can do it.

https://docs.microsoft.com/en-us/power-virtual-agents/configuration-end-user-authentication

 

And you can use the POST API with Facebook using Power Automate, but you cannot show like options that users select because today you can just show options fixed inside PVA. 


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+2.300 students | PROMOTIONS) : English | Português

@renatomorao,

 

Ok, I got it! Thanks for the help 😉

 

Regards,

Ruben

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Virtual Agents Community Super Users!

Congratulations to our Season 1 2021 Super User Crew!

PVA Commnity Blog

NEW Power Virtual Agents Community Blog

View articles posted by fellow community members on the Power Virtual Agents Community Blog!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Users online (76,494)