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 / Unique replies to same...
Copilot Studio
Answered

Unique replies to same query by users

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

We are in process of building a chatbot where the business has 2 set of personas. One needs to be authenticated via AAD and we need to create a sign in for these set of users, the other persona does not need a sign in. Is this possible to create 2 personas on PVA. Additionally if this is possible for these 2 personas can PVA throw different answers to their queries. 

Example: Team from billing persona -Team A asks for payment method options - this is the group that needs to be authenticated and then see a response. 

Other users from outside organization does not need to login and sees only basic information. 

Please suggest if this is a possibility. 

 

Thanks, Shivi

Categories:
I have the same question (0)
  • HenryJammes Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    I'm not 100% sure if the bot can work both unauthenticated and authenticated at the same time.

    Couple of reference documents that may help:

     

    For your question about contextualized topic logic based on the user context, this should possible if you set variables (e.g. AuthenticatedUser yes or no) and base condition nodes on these values.

     

    Out of curiosity, given the different scenarios, have you considered creating 2 chatbots?

     

    Henry

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @HenryJammes thank you so much for the reply, slight miscommunication from my end - in all cases user has to be authenticated but the medium of authentication would be different - example: AAD vs OAuth 2.0 and OpenID Connect standard-compliant authentication service. I was researching that it is possible by creating/ using Global Variables options. UNfortuantely in the admin tab i am not able to figure where to locate this option. 

    The help link is also broken: https://docs.microsoft.com/en-us/power-virtual-agents/global-variables-create

     

    Could you please route if there is a link or way to create global variables from admin portal. 

     

    Thank you.

  • HenryJammes Profile Picture
    Microsoft Employee on at

    Hi @Anonymous, can you share a screenshot of where that link was displayed?

     

    In the current version of PVA, this is where PVA 'global' variables are described: Work with chatbot variables - Power Virtual Agents | Microsoft Learn. In that version, variables can be created as a question output of a Bot Framework Composer custom dialog output.

     

    In the unified authoring canvas (now in preview), variable management is much easier: Reuse variables across topics (preview) - Power Virtual Agents | Microsoft Learn

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Henry 

    i did check stackoverflow and GTP3 to get the reply, added a screen shot for reference. it also suggested how to create it using if then else statement: 

    Shivi82_0-1677705457239.png and this 

    Shivi82_1-1677705503142.png

    In our scenario we have 3 types of users- unidentified i.e. not signed in, then sign in through SSO and OAuth 2.0. 

     

    Thanks, Shivi

     

  • Verified answer
    HenryJammes Profile Picture
    Microsoft Employee on at

    Not sure about the guidance from ChatGPT, I'm guessing it's providing examples for a custom chat control? 

    On creating and setting global variables in the production version of PVA, you can get inspiration from this recent post I did: Set and update global variables using Bot Framework Composer and how to retain conversation context when interacting with OpenAI GPT models

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you Henry for all your help. 

     

    Regards, Shivi

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
11manish Profile Picture

11manish 225

#2
sannavajjala87 Profile Picture

sannavajjala87 220 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 184

Last 30 days Overall leaderboard