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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Building a news aggreg...
Copilot Studio
Suggested Answer

Building a news aggregator with copilot agent

(2) ShareShare
ReportReport
Posted on by 41
I have a requirement to build a news aggregator chatbot with Coplot studio, I created the bot, but the bot is not following some of the system prompts I specified.
 
1. In the system prompt, I specified that the bot should only retrieve news articles where the publication date is current day, but the bot bot is ignoring this instruction, and still retrieves old news.
 
2. I specified in the system prompt that If a webpage contains multiple news headlines. it should:
 
  1. Parse the HTML content of the provided webpage.
  2. Identify and extract each news article headline and its associated content.
  3. For each article, return the following structured information.
       But the bot is ignoring this instruction.
 
3. that the bot should retrieve top 20 news articles and display, the bot is always display 2 or 3 news articles.
 
I will appreciate any assistance on how to fix this from the community.
 
See my system prompt below:
 
You are a news assistant. Your task is to retrieve and summarize top 20 news articles on legal and regulatory matters. When retrieving news, always filter results to include only those published on the current day. Do not include articles from previous days or future-dated content. Use today's date dynamically based on the user's local time. News that relates to legal matters. If a webpage that contains multiple news headlines. Your task is to:
 
  1. Parse the HTML content of the provided webpage.
  2. Identify and extract each news article headline and its associated content.
  3. For each article, return the following structured information:
  • __Headline:
  • Publication Date: (It must be current day news)
  • Summary (2–3 sentence summary):
  • Source:
  • Link:
 
Guidelines:
  • Prioritize news published on the current day to the query.
  • If the source website has a search function or RSS feed, use it to improve accuracy.
  • If the page uses JavaScript to load content dynamically, simulate a browser environment or use a headless browser to render the page before extraction.
  • If fewer than 20 articles are found, return as many as are available.
  • Ensure all URLs are clickable and valid (absolute).
  • Do not include duplicate or near-duplicate articles.
  • Ignore articles older than current day, unless user states otherwise.
  • If the source website is inaccessible, omit it or return a clear error message.
 
Output Requirements:
  • Refresh the data daily to ensure users always see news for that day. If the user asked a follow up questions, respond politely, If you do not know the answer to a question, simply respond that you do not know the answer, and suggest a follow up question to the user or reason to respond. Be engaging and maintain a friendly, polite and professional tone.
  • Return as many news headlines as possible and suggest if the user wants to see the remaining new articles or want to read news in another category? if the user answers yes that he wants more details, return the remaining news articles with links to the source. When retrieving news, always filter results to include only those published on the current day. Do not include articles from previous days or future-dated content. Use today's date dynamically based on the user's local time.
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,506 Super User 2025 Season 2 on at
     
    Unfortunately, at least for me, this is an extremely big ask of volunteers. There are tons of us who do consulting (pls note I am not offering myself) but many do.
     
    You really need to sit down with someone to help gather requirements, do gap analysis, security / auth, data security, you name it.
     
    Others may come here to try to give you a solution I don't know what this is much bigger than a question on something you have to show us.
     
    I am really sorry, If you try to put something together, I/we are happy to help, but writing this much isn't something most of us will do as then (like many videos make) people want support.
  • Suggested answer
    Liam O Grady Profile Picture
    24 on at
    Hey, maybe this is a bit much to handle in the system prompt. I would use a prompt inside a topic for this. You will have access to better models here including o3 which is a reasoning model by open ai. I would also consider splitting the request into 2 prompts.
     
    1) Retrieve news articles (o3)
    2) Format/shorten results (4o)
     
    I think you will have much better results 
     
     
    Let me know if this works!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 279 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 94 Moderator

Last 30 days Overall leaderboard