Hi, I am creating a PVA chat bot using power automate.
Check out the above screenshot, in place of email, whoever is using the PVA bot, their email should come dynamically, whats the expression.?
Hi, @Jupyter123 . You'll have to pass an email address to any Power Automate flows you call (or pass something like the UserID which you can use to find the email in Power Automate).
In order to get user variables automatically, you need an authenticated bot; the simplest kind is an "Only for Teams" authentication one, and which will expose User.Email for you to utilize, which you can send as a variable into your flow(s). If you don't have authentication setup, you can ask your user for their email in a Question node, and set the Identity to email, to ensure a valid entry.
Find this post helpful? Please mark it as the solution and/or provide kudos so that it will help others in the future.
Cheers,
Matt