n8nflow.net logo

Automated News Summarizer with GPT-4o + Email Delivery

by Amit Mehtaโ€ขUpdated: Last update 4 months agoโ€ขSource: n8n.io
Loading workflow viewer...

Getting Started

How it Works

This workflow fetches top news headlines every 10 minutes from NewsAPI, summarizes them using OpenAI's GPT-4o model, and sends a concise email digest to a list of recipients defined in a Google Spreadsheet. It's ideal for anyone who wants to stay updated with the latest news in a short, digestible format.

๐ŸŽฏ Use Case

  • Professionals who want summarized daily news
  • Newsletters or internal communication updates
  • Teams that require contextual summaries of the latest events

Setup Instructions

1. Upload the Spreadsheet

  • File name: Emails
  • Column: Email with recipient addresses

2. Configure Google Sheets Nodes

  • Connect your Google account to:
    • Email List
    • Send Email

3. Add API Credentials

  • NewsAPI Key โ†’ for fetching top headlines
  • OpenAI API Key โ†’ for summarizing headlines
  • Gmail Account โ†’ for sending the email digest

4. Activate the Workflow

  • Once active, the workflow runs every 10 minutes via a cron trigger
  • Summarized news is sent to the list of emails in the spreadsheet

๐Ÿ” Workflow Logic

  1. Trigger : Every 10 minutes via Cron
  2. Fetch News : HTTP request to NewsAPI for top headlines
  3. Summarize : Headlines are passed to OpenAI's GPT-4o for 5-bullet summary
  4. Read Recipients : Google Sheet is used to collect email recipients
  5. Send Email : Summary is formatted and sent via Gmail

๐Ÿงฉ Node Descriptions

Node NameDescription
CronTriggers the workflow every 10 minutes.
HTTP Request - NewsAPIFetches top news headlines using NewsAPI.
SetFormats or structures raw news data before processing.
AI AgentSummarizes the news content using OpenAI into 5 bullet points.
Email ListReads recipient email addresses from the 'Emails' Google Spreadsheet.
Send EmailSends the email digest to all recipients using Gmail.

๐Ÿ› ๏ธ Customization Tips

  • Modify the AI prompt for tone, length, or content type
  • Send summaries to Slack, Telegram, or Notion instead of Gmail
  • Adjust cron interval for more/less frequent updates
  • Change email formatting (HTML vs plain text)

๐Ÿ“Ž Required Files

File NamePurpose
Emails spreadsheetGoogle Sheet containing the list of email recipients
daily_news.jsonMain n8n workflow file to automate daily news digest

๐Ÿงช Testing Tips

  • Add 1โ€“2 test email addresses in your spreadsheet
  • Temporarily change the Cron node to run every minute for testing
  • Check email inbox for delivery and formatting
  • Inspect the execution logs for API errors or formatting issues

๐Ÿท Suggested Tags & Categories

#News #OpenAI #Automation #Email #Digest #Marketing