web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / How to answer (in my c...
Copilot Studio
Answered

How to answer (in my chatbot) to users who do not meet the prerequisite

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

  • Expiscornovus Profile Picture
    33,997 Most Valuable Professional on at

    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.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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

    Peggy2019_0-1671438865679.png

     

  • Expiscornovus Profile Picture
    33,997 Most Valuable Professional on at

    Hi @Anonymous,

     

    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'))

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

     

    hi @Expiscornovus 

    thank you for your quick reply.

    I added a condition after the array:

     

    Peggy2019_4-1671441428293.png

    and i added this condition in the PVA bot

    Peggy2019_5-1671442219197.png

     

     

  • Verified answer
    Expiscornovus Profile Picture
    33,997 Most Valuable Professional on at

    Hi @Anonymous,


    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.

     

    checkmailaddress.png

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Mohsin Ali Profile Picture

Mohsin Ali 308

#2
Valantis Profile Picture

Valantis 154 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 133 Super User 2026 Season 2

Last 30 days Overall leaderboard