Announcements
hi everyone,
I have built a chatbot in PVA and a flow in Power automate in order to send the legal entity of each internal user (the data source is an excel file and does not contain the external employees). When i test my bot as external, i would like the bot to answer something like "sorry you are external so you don't have legal entity". Do i have to create a condition in PVA? thank you
Hi @Anonymous,
You could add a condition within your flow. Can you share a screenshot of your current Power Automate flow setup?
It would also be useful to see a screenshot of the outputs of the When a Power Virtual Agent calls a flow action when you test it with that external user. This way we can prepare a expression for your condition action.
hi @Expiscornovus
This is my flow ; Fyi the internal users are in a excel file (stored in a SharePoint site). The condition would be if the user is not present in the excel file, then it is not concerned ... the thing is that i don't know when to put this condition? thank you for your help
Where in the flow are you matching the user name? Is that in the Filter Array? In that case I would place a condition after that Filter Array.
You can probably also use an expression as well. Just check the output of the Filter Array for empty (again assuming that you are matching for users in that action). Try the expression below in a compose below the Filter Array action
if(empty(body('Filter_Array')), 'No user found', body('Filter_Array'))
thank you for your quick reply.
I added a condition after the array:
and i added this condition in the PVA bot
Don't know if it helps but I would implement it like below.
Btw, I am a bit confused about the Filter Array. I would have expected you would check the input of the Power Virtual Agent in that array 😅
Below would be my suggested setup:
I used a Initialize variable action of type string and called it strResult (that is not in my screenshot). Based on the outcome of the condition you can sent back different messages to the Power Virtual agent with the same string variable.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Mohsin Ali 308
Valantis 154 Super User 2026 Season 2
11manish 133 Super User 2026 Season 2