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

Community site session details

Session Id :
Copilot Studio - Bot Administration
Answered

I can't seem to find a way to train an agent from a private, login-only web site.

(1) ShareShare
ReportReport
Posted on by 13
Subj tells the issue.    I have need of training an agent with the files  in a web site that's a cloud app called "GoIcon" for a senior living community.
Not Teams or SharePoint related.   
Thoughts anyone ?
Categories:
I have the same question (2)
  • Verified answer
    Jerry-IN Profile Picture
    180 on at
    I can't seem to find a way to train an agent from a private, login-only web site.
    Hello
     
    Greetings!
     
    That is a very relevant question as many organizations have their knowledge locked behind private, login-only websites.
     
    You are correct that you cannot directly point a Microsoft Copilot Studio (formerly Power Virtual Agents) agent to a private website for training using the standard "generative answers" feature. The underlying service that fetches and indexes the web content cannot log in to access the information.
     
    However, you can absolutely achieve this by using Power Automate as an intermediary to handle the authentication and data retrieval.
     
    The Power Automate Solution
    The standard and most effective method is to create a Power Automate flow that the Copilot agent calls when it needs information from the private source. The flow will be responsible for authenticating, fetching the data, and returning it to the agent to present to the user.
     
    Here's a high-level overview of the process:
     
    1. Create a Topic in Copilot Studio: Within a topic, instead of using a standard message, you'll add an action to call a Power Automate flow. You can pass user inputs (like their search query) to this flow.
    2. Build the Power Automate Flow:
      • The flow will be triggered by Copilot Studio.
      • Use the HTTP action or a custom connector within the flow to connect to your private website or its underlying data source (e.g., an internal API, a database, or a SharePoint list). This is where you will handle the authentication, passing credentials, API keys, or using OAuth tokens.
      • Once authenticated, the flow can query the data source based on the user's request.
      • The flow then sends the retrieved information back to Copilot Studio as an output variable.
    3. Display the Information: Back in your Copilot Studio topic, the agent will receive the data from the flow and can then display it to the user.
    Special Case: SharePoint and Internal Dataverse
     
    If your private data is stored in SharePoint Online or Dataverse, the process is much simpler. Copilot Studio has built-in connectors for these services that can handle user authentication automatically. When you enable authentication for your bot, it can leverage the logged-in user's identity to search SharePoint sites they have access to.
     
    While it requires a few more steps than using a public website, this Power Automate approach is powerful and secure, allowing your agent to access a wide range of internal, authenticated data sources.
     
    I hope this helps you build a more knowledgeable agent!
     
    Best regards,
    Jerald Felix
  • IA-08091510-0 Profile Picture
    13 on at
    I can't seem to find a way to train an agent from a private, login-only web site.
    The later reply (A person whose name begins with Chiarra or somewhere close to that ) is incredibly important:  that using a connector with REST API will NOT enable the use of the Website Q&A template functionality,  and does not allow the traversing of the "private" web site to incorporate agent knowledge.
     
    That's very disappointing, because the template is exactly what I need to make menu traversal easier (obsolete) for my fellow senior living center residents,  but the web site is a private one.  The older one gets, the harder it is to remember "where was that maintenance form "
     
    If there is any MS contact to plead the case for opening up the Website Q&A for use with private web sites,  please let me know whom to contact ?
     
    Webite Q&A is wonderful,  but I need to get under the API rest covers,  too ?
     
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Copilot Studio

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 506 Super User 2025 Season 2

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 387 Super User 2025 Season 2

#3
DAnny3211 Profile Picture

DAnny3211 132

Last 30 days Overall leaderboard

Featured topics