10AI · News tool
AI News Surface
Live headlines turned into short AI-written articles you can question
A Next.js app that pulls current headlines from NewsAPI, uses a Groq-hosted Llama model to expand one into a short article, and lets the reader ask follow-up questions about it.
Headlines on their own say little, and full articles take time to read. The tool tests whether an AI can turn a headline into a short, readable explainer and then answer questions about it.
- 01Fetch trending headlines from a randomly chosen category so the feed stays varied.
- 02Generate a short, roughly 250-word article from a selected headline.
- 03Ask follow-up questions answered using that article as context.
- D-01
Keep API keys on the server
All Groq and NewsAPI calls go through Next.js API routes, so the browser never sees a key, and each route checks its keys are configured before doing any work.
Trade-offEvery action needs a server round trip, but the keys cannot leak from the client bundle.
- D-02
Scope the chat to the article
Follow-up questions are sent with the generated article as context, keeping answers about the story on screen rather than open-ended chat.
Trade-offAnswers are limited to what the article says, which is safer but less helpful for broader questions.
- AI-generated text can be wrong, so it still needs source checking before anyone relies on it.
- No saved history of generated articles yet.