
We provide the user an option to login in or not. I would like to check if the user has authenticated and if they have not prompt them to log in if the are wanting to check statuses. I can build a power automate flow to do this but it seems like more work than should be required. This should be something you can do within PVA.
Hey there @osubuckiii,
The behavior you are trying to do should work fine with the built-in authentication conditional, as long as that is the authentication you are using. Our current authentication standards function with Azure Active Directory V1 and V2, as well as any identity provider that follows the OAuth2 standard. See reference material and authentication setup instructions here: https://docs.microsoft.com/en-us/power-virtual-agents/configuration-end-user-authentication.
If your authentication is not one supported by these providers, then a custom setup through a flow like you mentioned will be the option available to you.
Once you set up an authentication provider tied to your bot, the in-bot authentication will become functional, and following the instructions here will allow you to set that up as a conditional within a topic: https://docs.microsoft.com/en-us/power-virtual-agents/advanced-end-user-authentication
If you are simply asking about the fact that a conditional cannot be the very first node after trigger phrases, you are correct. Unfortunately, that is not something that is supported at this time, however, if you use a message node first to have the bot give a response, then you will be able to set up the authentication conditional per usual.
Although conditionals as the initial node is not a supported use case at this time, you are welcome to create an Idea for it! Ideas are community-provided suggestions to the Power Virtual Agents team, and are a great way for users to show the sorts of features they'd want to use in the future! Here's the link to the Power Virtual Agents Idea forum: https://powerusers.microsoft.com/t5/Power-Virtual-Agents-Ideas/idb-p/pva_ideas
Hope this helps!
Thank you for using Microsoft Power Platform Communities!
Bryn Baker
Support Engineer
Microsoft Power Platform
If this post helps, then please consider accepting it as the solution to help other members find it more quickly! Have a great day!