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 get the agent's...
Copilot Studio
Answered

How to get the agent's knowledge source to refresh every 30 minutes?

(1) ShareShare
ReportReport
Posted on by 6
I am building a custom agent for my daily workflow to run some scripts on excel, and according to the modified excel which is also added in knowledge source it should answer some questions, but I want this to reflected every 30 minutes or so or whenever the excel gets updated. So my question is how do I get the knowledge source to get updated without manual intervention?
 
I have the same question (0)
  • Suggested answer
    Vish WR Profile Picture
    3,748 on at
    30-Minute Refresh Isn't Possible (Natively) .This refresh job runs automatically in the background, refreshing and reindexing content — but you cannot manually trigger a refresh, and the interval is not configurable.

    The background sync cadence documented by Microsoft is 4–6 hours for SharePoint/OneDrive sources — nowhere near 30 minutes.
    Additionally, knowledge indexing and cache  are asynchronous. There is currently no way to force immediate re-indexing or purge the cache
     
     
    Please  Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like 
    Visit my blog My Tech Space    LinkedIn  
  • Verified answer
    rezarizvii Profile Picture
    352 on at
    Hi @CU09041801-1, hope you are doing well.
     
    You can't force refresh a knowledge source in Copilot Studio. Knowledge sources are meant for static/semi-static data that don't change much like websites, PDFs, etc.
     
    To query a live, constantly changing data, you should instead try to store the data in a more traditional place like SharePoint or Dataverse and query them at run-time using actions and tools.
     
    Alternatively, you can add your ever-so-changing excel file to a SharePoint document library and query it using tools at run-time. This is the most optimal way to avoid stale data when using the agent without changing much of your infra.
     

     
    Reza M. Rizvi
    Reza M. Rizvi
    LinkedIn  |  Email
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!
  • Verified answer
    Vish WR Profile Picture
    3,748 on at
    Hi Reza

    Querying it using tools at run-time might slow down the response. I would suggest removing and adding a knowledge source via Power Automate 
     

    @CU09041801-1, You can try using the Power Automate option to see if it solves your problem 
     
     
    Please  Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like 
     
    Social :  My Tech Space    LinkedIn  
     
     
  • Suggested answer
    Sayali-MSFT Profile Picture
    Microsoft Employee on at
    Hello   ,
    Knowledge sources in Copilot Studio are designed for static reference content and are not intended for frequently changing operational data such as Excel files updated by scripts. When you add an Excel file as a knowledge source, Copilot Studio does not read it live at runtime—instead, the file is chunked, embedded, and indexed as a semantic snapshot during ingestion. This means that even if the Excel file is updated in SharePoint or OneDrive, the agent continues answering based on the last indexed version unless the knowledge source is manually refreshed. Because automatic re‑embedding does not occur, scenarios requiring updates every 30 minutes cannot be reliably supported through knowledge ingestion.
    The recommended approach is to shift from knowledge‑based grounding to action‑based dynamic retrieval by using a Power Automate flow to fetch live Excel data at runtime, convert it into JSON, and pass it into the agent through an action. This enables the agent to respond using the most current spreadsheet data without requiring re‑indexing, manual intervention, or scheduled refresh cycles, making it a more stable and production‑safe solution for daily workflow automation involving frequently updated datasets.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 277

#2
11manish Profile Picture

11manish 206

#3
sannavajjala87 Profile Picture

sannavajjala87 156 Super User 2026 Season 1

Last 30 days Overall leaderboard