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 - Autonomous Agents
Suggested answer

Links to web articles not populating in response - getting broken links

(1) ShareShare
ReportReport
Posted on by 9
I am building an autonomous agent in Copilot Studio with a trigger = Daily at 5 am. The agent is designed to search the web for articles on particular topics and send me an email with links to the articles it found along with a short summary of the contents of the article. When testing the agent, I do see that it is searching for articles and it does provide a decent output (not always consistent) but when I click the link to the article, I always get 'Page Not Found' messages. When looking at the url the agent provided me, it is consistently grabbing the parent URL and adding the name of the article right after it. However, in most cases, the articles lives a few levels deep, which is not being captured in the url. 
 
I need help figuring out how to instruct the agent to give me valid links. I've add specific websites as knowledge and still get broken links. I tried removing all websites from the knowledge and still get broken links. 
 
Another issue I'm experiencing is when I test the trigger, I can see the summary of articles in the test chat but I don't always receive an email with the output. When I ask the agent for the email, it does send it but as plain text and not in rich text, like it was configured. But again, I had to prompt it to send me the email, which defeats the purpose of this being an autonomous agent. 
 
Here are the instructions I am using, for reference: 

Trigger
Run daily at 5:15 AM CST

Step 1: Search and Select Articles
Retrieve up to 20 articles published within the last 24 hours
Include at least 3 articles per topic:
-Consulting industry developments
-Leadership insights and trends
-Artificial Intelligence (AI) advancements
Use
primary sources only (e.g., Forbes, MIT Technology Review, Harvard Business Review, etc.)
Exclude
aggregator sites (e.g., Flipboard, Pocket)
If fewer than 3 articles are found for a topic, include as many as available
If no articles are found within 24 hours, expand the search to include articles published within the
last 72 hours

Step 2: Verify URLs
Ensure each URL returns a 200 OK status
Exclude any links that:
-Redirect to homepages
-Return errors (e.g., 404, 403)
-For each article, extract the
actual, complete URL from the page’s metadata.
Prioritize the <link rel="canonical"> tag if available.
If the canonical tag is missing or invalid, use the final resolved URL after following any redirects.
Do not use placeholder URLs (e.g.,
Validate each URL by performing a GET request and confirming:The response status is
200 OKThe page content matches the article title and summaryThe URL includes all necessary path segments and does not redirect to a homepage or error page
If a valid URL cannot be found, skip the article and continue processing the rest.
-Confirm each link leads
directly to the article
If a link is broken:
-Search for a valid alternative from the same source
-If none found, skip the article and continue processing the rest

Step 3: Send an Email using (added the Send an Email tool here)
Format the selected articles into a rich text email using HTML or Markdown.
Start the email with:
"Hi [Recipient Name], here is your daily news on key topics:"
For each article, include:
-Title as a
clickable hyperlink

-Source name in italics or (parentheses)
-1–3 sentence summary explaining relevance to the topic
The email must include:
-
Bold section headers (e.g., Consulting Industry Developments)
-Clickable hyperlinks embedded in article titles
-Source name in
italics or (parentheses)
-Bullet points or spacing between articles for readability
-A clean, professional layout with visual hierarchy
If any topic has fewer than 3 articles, include a note indicating
limited coverage for that section

Do Not Ask Questions

-The email should be informative only

-Do not include questions or prompts to the user

I have the same question (0)
  • rzaneti Profile Picture
    4,108 Super User 2025 Season 2 on at
    Links to web articles not populating in response - getting broken links
     
    I don't have an answer, but will share what I found so far about this problem, since I faced this same limitation a few months ago. 
     
    About the invalid links, it seems to be a hallucination issue. I tried to replicate your Agent from my end and got the same issue, and also noticed that even the article titles are hallucinated (e.g.: I received "AI and the Future of Work" from HBR, and could not find online any article with this exact same name from this source). I tried with and without the base URLs as knowledge sources, and no luck.
     
    I did some additional research and found that we could solve the problem of an hallucination for links by adopting a RAG strategy to the data source (basically organize it in a tabular format, with a column containing the URLs), but it seems not to be something feasible for your case. 
     
    Some sources from this research - unfortunately, the current MS docs say nothing about this topic:
     
     
    Let me know if it works for you or if you need any additional help!
     
    If this solved your issue, please mark it as Accepted Answer.
    👍 If it helped, feel free to give it a like!

    🌐 Explore more Power Platform content on my Website or on my ▶️ YouTube
    💼 Find me on LinkedIn
  • Suggested answer
    DAnny3211 Profile Picture
    83 on at
    Links to web articles not populating in response - getting broken links
    Hi,
    
    The issue you're experiencing with broken article links and inconsistent email formatting in your autonomous agent likely stems from how URLs are being extracted and validated, as well as how the email content is being composed and triggered.
    
    ### 1. **Broken Article Links**
    The agent appears to be constructing URLs by appending article titles to base domains, which often results in invalid paths. To improve this:
    
    - **Use the `<link rel="canonical">` tag**: This tag typically contains the full, correct URL of the article. Your agent should extract this from the article’s metadata.
    - **Follow redirects**: If the canonical tag is missing, the agent should follow HTTP redirects to resolve the final destination URL.
    - **Validate URLs**: Before including them in the email, perform a GET request to ensure the URL returns a `200 OK` status and that the page content matches the article title. Microsoft recommends this approach in their [Copilot Studio documentation on knowledge sources and URL validation](https://learn.microsoft.com/en-us/microsoft-copilot-studio/knowledge-copilot-studio) [1](https://learn.microsoft.com/en-us/microsoft-copilot-studio/knowledge-copilot-studio).
    
    You might also consider integrating a URL validation service like [Email Veritas – URL Checker](https://learn.microsoft.com/en-us/connectors/emailveritasurlcheck/) [2](https://learn.microsoft.com/en-us/connectors/emailveritasurlcheck/), which can help detect redirects and broken links before sending.
    
    ### 2. **Email Not Sent or Sent in Plain Text**
    This is a known issue with the **Send an Email (V2)** action in Copilot Studio. A recent update may have affected how dynamic content is rendered in the email body. To work around this:
    
    - **Use a variable to store the formatted HTML or Markdown content**, then reference that variable in the email body using the code editor. This ensures the formatting is preserved.
    - See this [Power Platform Community thread](https://community.powerplatform.com/forums/thread/details/?threadid=8d75cf59-f747-f011-877a-7c1e52189d0f)[3](https://community.powerplatform.com/forums/thread/details/?threadid=8d75cf59-f747-f011-877a-7c1e52189d0f) for a detailed workaround.
    
    Also, ensure that the email action is triggered automatically within the agent flow and not only in response to user prompts. You may need to review the trigger logic and ensure the email action is not conditional on user interaction.
    
    Thanks and best regards,  
    Daniele  
    *Note: This response was prepared with support from Copilot to ensure clarity and completeness.*

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 390 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
chiaraalina Profile Picture

chiaraalina 91

Last 30 days Overall leaderboard