Automate News Extraction and Summarization
detail.loadingPreview
Streamline your information gathering with this workflow that automatically extracts news from web pages, filters by date, and generates concise summaries and keywords using AI. Stay informed effortlessly.
About This Workflow
This n8n workflow is designed to automate the tedious process of news aggregation and analysis. It begins by scraping a web page to extract specific links and dates, ensuring you only process relevant, recent information. The workflow intelligently filters these news items to include only those published within the last 70 days (configurable). For each filtered article, it then fetches the full content from its URL. Leveraging the power of OpenAI's GPT-4, the workflow generates both a brief summary (under 70 words) and extracts the three most important technical keywords. Finally, all this valuable information—links, dates, summaries, and keywords—is consolidated for easy review and further action.
Key Features
- Automated Web Scraping: Extracts specific data like links and dates from web pages.
- Intelligent Date Filtering: Focuses on news published within a specified recent timeframe.
- Content Fetching: Retrieves full article content from individual URLs.
- AI-Powered Summarization: Generates concise summaries of articles using GPT-4.
- Keyword Extraction: Identifies and lists the top 3 technical keywords from each article.
- Consolidated Output: Merges all extracted and generated data for a unified view.
How To Use
- Configure HTML Extraction: In the 'Extract the HTML with the right css class' and 'Extract date' nodes, adjust the
cssSelectorvalues to precisely target the links and dates on your desired news source. - Set Date Range: Modify the
setDate(currentDate.getDate() - 70)line in the 'Select posts of last 7 days' code node to define how far back in days you want to retrieve news. - Input URLs: Ensure the 'HTTP Request1' node is correctly configured to use the extracted links (
={{ $json["Link"] }}). - AI Model and Prompts: Configure the 'Summary' and 'Keywords' nodes with your OpenAI API key. Review and adjust the prompts if you need different summary lengths or keyword extraction criteria.
- Review and Connect: Connect the nodes according to the workflow structure. Run the workflow and examine the merged output to see your automated news extraction and summarization in action.
Apps Used
Workflow JSON
{
"id": "71576bbf-23f3-4947-a46b-b76f5309b827",
"name": "Automate News Extraction and Summarization",
"nodes": 22,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 71576bbf-23f3...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Related Workflows
Discover more workflows you might like
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.