From Sitemap to Article: Building a Responsible Content Pipeline
One of the projects that taught me the most was building a pipeline that discovers new articles through a sitemap, extracts their content, and rewrites it in Indonesian with the help of an AI model. The sources were publications such as Search Engine Journal and Search Engine Land. Technically the flow is simple. What makes it challenging lies elsewhere.
A sitemap is a polite way in
A sitemap lists pages together with their update dates. By reading it, the pipeline does not need to crawl a whole site. It only checks what is new since the last visit. This is cheaper and kinder to the source's server.
The flow
- Read the sitemap and pick article URLs that have not been processed yet.
- Fetch the page, then extract only the main content and drop navigation, ads and the rest.
- Send the content to an AI model with instructions to rewrite it in Indonesian, with a clear structure and style.
- Save the result as a draft, not published straight away, then schedule publication.
What decides quality
- Respect the source site's rules. Read
robots.txt, leave gaps between requests, and do not overload their server. - Do not copy. Rewriting means composing your own sentences from the same facts. Name the source and link to the original article.
- Check facts and numbers. A model can change a number or add a detail that is not in the source. For sensitive topics, human review before publishing is not optional.
- Record what has been processed, so the same article is not handled twice.
The biggest lesson
Automation makes content production cheap. Precisely because it is cheap, the quality standard has to live inside the workflow itself: a clear source, attribution and a review stage. Without them, what you produce is more text, not more information you can trust.