Data Sync & ETL
Send daily AI news digest to Slack with OpenAI and PostgreSQL
On a schedule, it moves and syncs data with OpenAI / ChatGPT using Postgres, Slack.
What it does
## How This Workflow Works - The workflow starts automatically using a scheduled trigger configured in n8n. - Latest news articles are fetched from external news APIs in real time. - Raw API responses are cleaned and transformed into structured article objects for consistent processing. - AI-related filtering removes unrelated news articles and keeps only relevant technology and AI updates. - OpenAI analyzes every article individually and generates useful insights such as summaries, sentiment, categories, importance scores, and trend keywords. - Original article details and AI-generated insights are merged together into a single structured dataset. - Before storing data, the workflow checks whether the article already exists in the database to prevent duplicate records. - Stored articles are analyzed again to identify trending keywords and prepare a digest-ready payload. - OpenAI generates a professional executive AI news digest using the collected insights and trend analysis. - Finally, the workflow automatically sends the generated digest to Slack, allowing teams to stay updated with important AI industry developments daily. ## Workflow Setup Steps - Create a scheduled trigger to automatically run the workflow at a fixed time every day. Configure the news API request node to fetch the latest AI-related news articles from trusted news sources. - Normalize and process the fetched news data into a clean structured format for easier filtering and analysis. - Apply AI-related keyword filtering to keep only relevant articles focused on artificial intelligence, machine learning, automation, and emerging technologies. - Send filtered articles to OpenAI for summarization, sentiment detection, category classification, importance scoring, and trend keyword extraction. - Parse the AI response and merge it with the original article data to create a complete enriched dataset. - Validate duplicate articles using PostgreSQL queries before storing records into the database. - Generate trend analytics and prepare a structured payload containing summarized articles and trending topics. - Use OpenAI again to generate a professional executive-style daily AI news digest based on the processed data. - Automatically deliver the final digest to Slack for daily team updates and monitoring.
The steps
- Fetch Latest News Articles
- Daily News Scheduler
- Process Individual Articles
- Filter AI Related News
- Analyze News with AI
- Parse AI Analysis Response
- Merge Article & AI Insights
- Check Existing Articles
- Validate Duplicate Articles
- Store News Insights
- Prepare Daily Digest Payload
- Generate Executive AI Digest
- Send Slack News Digest
Similar automations