DevConnectDevConnect
Sign up Β· Log in
← back to the feed
1

πŸ€– AI News Bot

An AI-powered news summarization automation built with n8n. Users submit a topic through a simple form, the workflow fetches live news headlines, summarizes them using Google Gemini, and automatically logs the results to Google Sheets β€” a complete no-code automation pipeline combining data retrieval, AI reasoning, and structured storage. 🎯 What It Does A user submits a topic (e.g. "technology", "cricket", "AI regulation") through a web form. The workflow fetches the 5 most recent news headlines on that topic from Google News RSS. An AI Agent (Google Gemini) reads the headlines and generates a concise 4–6 sentence summary of the key trends and takeaways. The summary β€” along with the topic and a timestamp β€” is automatically appended as a new row in a Google Sheet. 🧩 Tech Stack Component Tool Automation engine n8n AI summarization Google Gemini (gemini-2.0-flash) News source Google News RSS (free, no API key) Data storage Google Sheets User input n8n Form Trigger βš™οΈ How It Works (Workflow Breakdown) Form Trigger (topic input) ↓ HTTP Request β†’ Google News RSS (fetch headlines) ↓ Code Node β†’ Extract & clean top 5 headlines ↓ AI Agent (Google Gemini) β†’ Summarize headlines ↓ Set Node β†’ Prepare row (Date, Topic, Summary) ↓ Google Sheets β†’ Append row Node-by-node Get Topic (Form Trigger) β€” collects the topic from the user via a simple web form. Fetch News RSS (HTTP Request) β€” calls https://news.google.com/rss/search?q={topic} to retrieve recent headlines, no API key required. Extract Headlines (Code) β€” parses the raw RSS/XML response and extracts the top 5 clean headline titles. AI Summarizer (AI Agent + Google Gemini Chat Model) β€” generates a concise, neutral summary of the headlines with one notable takeaway. Prepare Row (Set) β€” formats the output (timestamp, topic, summary) for storage. Save to Google Sheets (Google Sheets β€” Append Row) β€” logs each request as a permanent record. πŸš€ Setup Import the workflow into your n8n instance (Workflows β†’ Import from File/Clipboard). Connect credentials: Google Gemini API key (aistudio.google.com β€” free tier available) Google Sheets OAuth2 (connect your Google account) Create a Google Sheet with the headers: Date | Topic | Summary Select that sheet + tab in the Save to Google Sheets node. Activate/Publish the workflow. Open the form's Production URL (found in the "Get Topic" node) to use it. πŸ“ Example Input topic: technology Output summary: Recent technology headlines highlight major developments in AI regulation, new product launches, and industry partnerships. Several reports point to increased investment in AI infrastructure, while regulatory bodies continue to scrutinize data privacy practices. One notable trend: smaller startups are increasingly partnering with established tech giants rather than competing directly. ⚠️ Known Limitations Uses Google Gemini's free tier, which has rate limits (requests per minute). Heavy or concurrent use may return a quota error. Google News RSS occasionally returns no results for very obscure or narrow topics. This is a learning/demo project β€” no authentication or spam protection is implemented on the form. πŸ’‘ Next Steps / Ideas Add rate-limiting or submission caps for public use Support multiple languages/regions for news search Add a scheduled daily digest mode instead of on-demand only Deliver summaries via email/Slack in addition to Google Sheets πŸ› οΈ Built By Built as a hands-on learning project to explore AI agent orchestration, webhook/API integration, and no-code automation with n8n.
0:00 / 0:00
Add a comment
0/2000