cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User
Super User

Re: Teams bot - get User properties

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,

Power Virtual Agents course (+1.000 students): https://www.udemy.com/pva-beginners
Highlighted
New Member

Re: Teams bot - get User properties

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?

Highlighted
Super User
Super User

Re: Teams bot - get User properties

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,

Power Virtual Agents course (+1.000 students): https://www.udemy.com/pva-beginners

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

FirstImage

Experience what’s next for Power Virtual Agents

Join us for an in-depth look at the new Power Virtual Agents innovations at the free Microsoft Business Applications Launch Event.

Users online (4,627)