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.760 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.760 students) : English | Português

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

Canadian Cloud 2022 768x460.png

Register for a free PVA chatbot creation workshop.

Learn how to respond rapidly to your customers and employees at scale, using intelligent conversational chatbots.

Top Solution Authors
Users online (1,136)