NewsAPI to Gmail, AI digests your subscribers open
Your newsletter doesn’t fail because you “ran out of ideas.” It fails because collecting headlines, skimming articles, summarizing, formatting, and emailing everyone is a grind you can’t justify every day.
Marketing managers feel it when campaigns pile up, and newsletters slip. Founders feel it when “I’ll send it tonight” becomes “maybe next week.” And team leads trying to keep staff informed run into the same wall. This NewsAPI Gmail digest automation turns fresh headlines into a clean, ready-to-send email without you hunting links for hours.
Below you’ll see exactly what the workflow does, what you need, where the time savings come from, and the common traps that break it.
How This Automation Works
The full n8n workflow, from trigger to final output:
n8n Workflow Template: NewsAPI to Gmail, AI digests your subscribers open
flowchart LR
subgraph sg0["Schedule Flow"]
direction LR
n0@{ icon: "mdi:play-circle", form: "rounded", label: "Schedule Trigger", pos: "b", h: 48 }
n1@{ icon: "mdi:robot", form: "rounded", label: "AI Agent", pos: "b", h: 48 }
n2@{ icon: "mdi:brain", form: "rounded", label: "OpenAI Chat Model", pos: "b", h: 48 }
n3["<div style='background:#f5f5f5;padding:10px;border-radius:8px;display:inline-block;border:1px solid #e0e0e0'><img src='https://flowpast.com/wp-content/uploads/n8n-workflow-icons/httprequest.dark.svg' width='40' height='40' /></div><br/>Pull News"]
n4@{ icon: "mdi:message-outline", form: "rounded", label: "Send Mail", pos: "b", h: 48 }
n5@{ icon: "mdi:database", form: "rounded", label: "Email list", pos: "b", h: 48 }
n1 --> n5
n3 --> n1
n5 --> n4
n0 --> n3
n2 -.-> n1
end
%% Styling
classDef trigger fill:#e8f5e9,stroke:#388e3c,stroke-width:2px
classDef ai fill:#e3f2fd,stroke:#1976d2,stroke-width:2px
classDef aiModel fill:#e8eaf6,stroke:#3f51b5,stroke-width:2px
classDef decision fill:#fff8e1,stroke:#f9a825,stroke-width:2px
classDef database fill:#fce4ec,stroke:#c2185b,stroke-width:2px
classDef api fill:#fff3e0,stroke:#e65100,stroke-width:2px
classDef code fill:#f3e5f5,stroke:#7b1fa2,stroke-width:2px
classDef disabled stroke-dasharray: 5 5,opacity: 0.5
class n0 trigger
class n1 ai
class n2 aiModel
class n5 database
class n3 api
classDef customIcon fill:none,stroke:none
class n3 customIcon
The Problem: Newsletters Die in the “Prep Work”
Writing a good digest is not hard. Keeping it consistent is. You start with “I’ll pull the top stories quickly,” then 10 minutes turns into an hour because half the headlines are duplicates, a few are irrelevant, and the rest need context you don’t have time to add. Then comes formatting: greeting, sections, bullets, links, subject line, and a final skim for tone. If you have a list of subscribers, you also have the quiet fear of sending a messy email to all of them. Honestly, that’s why most digests become “occasional updates.”
It adds up fast. Here’s where it usually breaks down.
- Manually collecting headlines across sources can eat about 1 hour per issue, and you still miss breaking items.
- Summaries end up inconsistent because you’re rushing, which means more rewrites right before send time.
- Subscriber management becomes a separate chore when names, emails, and segments live in scattered tools.
- Formatting and personalization often happen at the very end, when mistakes are most likely.
The Solution: Scheduled NewsAPI Summaries Sent via Gmail
This workflow runs on a schedule (default is every 10 minutes) and pulls the latest headlines from NewsAPI based on the country, category, and relevance settings you choose. Those headlines are handed to an AI Agent powered by an OpenAI chat model, which turns the raw feed into a digest you’d actually want to read: clean sections, concise bullet summaries, and a short “what this means” style insight. Next, the workflow looks up your subscribers in Google Sheets, so each email can include the right name and address without you exporting lists. Finally, it sends the finished digest through Gmail to every subscriber on your sheet. You can review and tweak the wording, but the heavy lifting is already done.
The workflow starts with a timed trigger and pulls headlines via an HTTP request to NewsAPI. AI then curates and summarizes the batch into a consistent template. Google Sheets supplies the subscriber list, and Gmail dispatches the personalized email output.
What You Get: Automation vs. Results
| What This Workflow Automates | Results You’ll Get |
|---|---|
|
|
Example: What This Looks Like
Say you send a weekday digest to 200 subscribers. Manually, it’s usually 30 minutes to hunt stories, another 45 minutes to summarize, and about 30 minutes to format and personalize, so roughly 2 hours per send. With this workflow: the scheduled run pulls headlines and drafts the summary in about 10 minutes, then Gmail sends it out automatically. Your job becomes a quick review and a small edit pass, maybe 10 minutes. That’s about 90 minutes back, five days a week.
What You’ll Need
- n8n instance (try n8n Cloud free)
- Self-hosting option if you prefer (Hostinger works well)
- NewsAPI for headline retrieval by topic and region.
- Google Sheets to store your subscriber list.
- Gmail to send digest emails to subscribers.
- OpenAI API key (get it from your OpenAI dashboard).
- NewsAPI key (get it from your NewsAPI account settings).
Skill level: Intermediate. You’ll connect a few accounts, paste API keys, and adjust basic filters like country and category.
Don’t want to set this up yourself? Talk to an automation expert (free 15-minute consultation).
How It Works
A schedule kicks things off. The workflow runs automatically (every 10 minutes by default), so you can do “breaking alerts,” hourly rounds, or a single daily digest.
Headlines are pulled from NewsAPI. An HTTP request fetches the latest items for your chosen country, language, and categories. This is where you decide what “relevant” means for your audience.
AI turns the feed into something readable. The AI Agent uses an OpenAI chat model to produce a structured digest, usually in five bullets with a short insight section, so the email sounds intentional instead of copied.
Subscribers are looked up, then emails go out. Google Sheets provides names and email addresses, and Gmail sends the final content. If you keep the sheet clean, delivery stays smooth.
You can easily modify the news filters to change topics, countries, or the tone of the summaries based on your needs. See the full implementation guide below for customization options.
Step-by-Step Implementation Guide
Step 1: Configure the Schedule Trigger
Set the workflow to run automatically on a recurring schedule using the built-in trigger.
- Add and open Timed Run Trigger.
- Set the interval rule to run every
10minutes (field: minutesInterval). - Connect Timed Run Trigger to Retrieve Headlines.
Step 2: Connect NewsAPI Data Source
Fetch the top headlines from NewsAPI to provide content for summarization.
- Open Retrieve Headlines.
- Set URL to
https://newsapi.org/v2/top-headlines. - Enable Send Query and add query parameters:
- country:
us - apiKey:
[CONFIGURE_YOUR_API_KEY]
- country:
- Connect Retrieve Headlines to Summarize Headlines Agent.
[CONFIGURE_YOUR_API_KEY] will cause the request to fail. Use a valid NewsAPI key.Step 3: Set Up the AI Summarization
Use the AI agent to summarize the fetched headlines into digestible bullet points.
- Open Summarize Headlines Agent and set Prompt Type to
define. - Set Text to the full prompt expression:
=You are act as news expert and collect all news headlines in below and summarise in 5 bullets. {{ $json.articles[1].title }}. - Ensure OpenAI Chat Engine is connected as the language model for Summarize Headlines Agent.
- Credential Required: Connect your OpenAI credentials in OpenAI Chat Engine (credentials must be added to the parent model node, not the agent).
- In OpenAI Chat Engine, select model
gpt-4o-mini.
articles and adjust the index (e.g., [0] instead of [1]).Step 4: Configure the Email Digest Output
Pull subscriber emails from Google Sheets and send each subscriber the summarized digest.
- Open Subscriber Sheet Lookup and select the spreadsheet Document ID as
[YOUR_ID]. - Set Sheet Name to
gid=0(cached asSheet1). - Credential Required: Connect your Google Sheets credentials in Subscriber Sheet Lookup.
- Connect Summarize Headlines Agent to Subscriber Sheet Lookup, then to Dispatch Email Digest.
- Open Dispatch Email Digest and set:
- Send To to
={{ $json.Email }} - Subject to
News Headlines - Email Type to
text - Message to
=Hi {{ $json.Name }}, Please find the top news headlines as below: {{ $('Summarize Headlines Agent').item.json.output }}
- Send To to
- Credential Required: Connect your Gmail credentials in Dispatch Email Digest.
Email and Name to match the expressions in Dispatch Email Digest.Step 5: Test and Activate Your Workflow
Run a manual test to verify data flow from headlines to email delivery, then activate the schedule.
- Click Execute Workflow to run a manual test.
- Confirm Retrieve Headlines returns articles and Summarize Headlines Agent outputs a 5-bullet summary.
- Verify Dispatch Email Digest sends an email to the addresses pulled from Subscriber Sheet Lookup.
- Fix any credential prompts that appear during the test.
- Once successful, toggle the workflow to Active to enable the 10-minute schedule.
Common Gotchas
- Google Sheets credentials can expire or need specific permissions. If things break, check the n8n Credentials screen and confirm the connected Google account can access the exact spreadsheet.
- If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
- Default prompts in AI nodes are generic. Add your brand voice early or you’ll be editing outputs forever.
Frequently Asked Questions
About 30 minutes if your accounts are ready.
No coding required. You’ll mostly connect credentials and adjust a few settings like categories, country, and email copy.
Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in OpenAI API costs (often a few cents per digest) and your NewsAPI plan if you exceed the free tier.
Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.
Yes, and it’s a common tweak. Change the schedule trigger to weekly, then adjust the AI Agent prompt to write in your industry voice (for example: “focus on marketing tech,” or “assume the reader is a CFO”). You can also narrow NewsAPI filters to a specific country/category so the weekly email doesn’t feel random. If you want multiple editions, duplicate the workflow and point each one at a different set of filters and a different Google Sheet tab.
Most of the time it’s an invalid or expired API key, or the request is missing the right parameters (country, category, or query). It can also happen when you hit NewsAPI rate limits, especially if you run every 10 minutes and fetch large result sets. Check the HTTP Request node’s last error output inside n8n, then confirm your NewsAPI quota and key permissions. If the key is fine, reduce frequency or fetch fewer headlines per run.
A few hundred subscribers is usually fine, but Gmail sending limits are the real constraint.
Often, yes, because this is more than a simple “grab data, send email” zap. You’re doing scheduled fetching, AI summarization, and looping through a subscriber list, which benefits from n8n’s flexible logic and lower cost at higher volume. n8n also gives you a self-hosting path, which matters once you run frequent digests. Zapier or Make can still work if you want the simplest possible setup and don’t mind paying more as it scales. If you’re unsure, Talk to an automation expert and get a recommendation based on your list size and send frequency.
Once this is running, your “newsletter time” turns into review time. The workflow handles the repetitive stuff so you can focus on the voice and the angle.
Need Help Setting This Up?
Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.