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
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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.

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Center-of-Excellence-Starter-Kit-cropped 768x460.png

The Total Economic Impact™ of Power Virtual Agents

Read this 2021 commissioned study, conducted by Forrester Consulting.

Top Solution Authors
Users online (1,978)