cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
OilPanic
New Member

Teams bot - get User properties

Hey all,

 

So I have created a bot for internal IT support. Connected it to a QNAMaker to answer questions. works great.

 

Now, when the bot answers our users we will follow-up with a question if their issue was resolved, if they press no the bot sends off a ticket to IT with the user question and the bot answer. Perfect. Now, the only thing missing is the user information itself - I cannot seem to figure out how to send the user email or username to Power Automate so our internal IT can see who actually made this request.

 

So I have to ask the user his/hers name which I want to avoid.

 

Any takes on this?

3 REPLIES 3
renatoromao
Super User
Super User

Hi @OilPanic ,

 

Great job!

You can create an authentication inside your bot, get the user token and send as a parameter to Power Automate and using Microsoft Graph to get user details.

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

Power Automate doc: https://docs.microsoft.com/en-us/power-virtual-agents/advanced-flow

Video to use Authentication inside PVA: https://www.youtube.com/watch?v=jjmCWw4z9N8


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

Renato Romão,

Connect with me here 😉

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

Well, its required that the users manually authenticate with the bot when they start talking to the bot. Its a way of doing it but it still gives you an extra step for the user - so not much difference in asking their email or asking them to authenticate?

You can create a question inside the topic, using the Identifier field as "Users entire response" and the answer will be staying inside the variable.

Two ways to do it.


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

Renato Romão,

Connect with me here 😉

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

Helpful resources

Announcements
V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

PVA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (984)