Back to Catalog

Schedule AI-formatted Google News digests with Gmail approval workflow

Massimo BensiMassimo Bensi
48 views
2/3/2026
Official Page

Automate Google News Digests with AI & Gmail Approval Workflow in n8n

<img src="https://massimobensi.com/shared/main-img.png">

Overview

This n8n automation template shows how to automatically collect and format daily Google News digests on your chosen topics, send them to your Gmail inbox for quick approval, and—if declined—generate the next set of curated news articles until you approve.

==⚠️ Disclaimer: This workflow template uses community nodes and works only on n8n self-hosted instances. ==

Use case

Streamline content curation for social media, newsletters, or blog posts by scheduling an AI-formatted Google News workflow that saves time in finding trending stories.

How to use

⏰ Schedule the automation to run at your preferred time.

🔎 Fetch the latest trending Google News on your selected topic with SerpApi integration.

🤖 Send articles in batches of 10 to an AI content formatter that generates clean HTML output.

📧 Receive an approval email in your Gmail inbox with the AI-formatted news digest.

❌ Decline the digest to trigger the next batch of 10 curated news articles until you approve.

📊 Workflow logic uses AirTable counters and a custom Code node to manage batching.

Setup instructions

  • Connect your SerpApi, AirTable, OpenAI, and Gmail accounts. In the Gmail node, set the variable $env.EMAIL_ADDRESS_ME or replace the “To” field with your email.

  • In AirTable, create a free-tier base with two columns: WorkflowID and Counter. The workflow will manage row creation and deletion automatically.

  • Define your news topic or keyword in the SerpApi “Search Query (q)” field.

  • Run the workflow and check your Gmail inbox for your curated AI-powered news digest.

Requirements

  • AirTable account
  • Gmail account
  • SerpApi account
  • OpenAI account

Customising this workflow

⏱ Adjust the schedule in the “Schedule Trigger” node for daily, weekly, or custom timing.

🔑 Enter your niche news keyword in the “Search Query (q)” field of the SerpApi node.

📦 Change the batch size (default 10) inside the Code node “Extract Details.”

🎨 Personalize the Gmail approval email template inside the AI Agent node “Prepare Content Review Email” for branding or formatting preferences.

Schedule AI-Formatted Google News Digests with Gmail Approval Workflow

This n8n workflow automates the process of generating AI-formatted news digests from Google News and sending them for approval via Gmail before final delivery. It ensures that only curated and approved content is distributed.

What it does

This workflow performs the following key steps:

  1. Schedules Execution: Triggers the workflow at a predefined interval (e.g., daily, weekly).
  2. Fetches Data from Airtable: Retrieves configuration or source data from an Airtable base. This could include topics, keywords, or recipient lists for the news digests.
  3. Generates AI-Formatted Content: Uses an AI Agent (likely powered by LangChain and an OpenAI Chat Model) to process the retrieved data and generate a structured news digest. This step likely involves fetching news articles (though not explicitly shown as a separate node, it's implied by "Google News Digests" in the title and the AI's role), summarizing them, and formatting them according to specific criteria.
  4. Sends for Gmail Approval: Dispatches the AI-generated digest via Gmail to a designated approver. This is a "Human-in-the-Loop" (HITL) step, allowing for human oversight.
  5. Conditional Logic: (Implied by the "If" node) The workflow likely waits for a response from the Gmail approval step and proceeds based on whether the digest is approved or rejected. (The subsequent nodes for "true" or "false" branches are not present in the provided JSON, but the "If" node indicates this capability).
  6. Custom Code Execution: Allows for custom JavaScript logic to be executed, potentially for further data manipulation, formatting, or integration with other services.
  7. Sticky Note: Includes a sticky note for documentation or reminders within the workflow.

Prerequisites/Requirements

To use this workflow, you will need:

  • n8n Instance: A running instance of n8n.
  • Airtable Account: Configured with the necessary base and table containing your news digest configurations (e.g., search terms, categories).
  • Gmail Account: Configured as a credential in n8n for sending approval emails.
  • OpenAI API Key: Required for the OpenAI Chat Model used by the AI Agent.
  • LangChain Integration: The @n8n/n8n-nodes-langchain package installed and configured in your n8n instance.

Setup/Usage

  1. Import the Workflow: Import the provided JSON into your n8n instance.
  2. Configure Credentials:
    • Set up your Airtable credentials.
    • Set up your Gmail credentials.
    • Set up your OpenAI credentials for the OpenAI Chat Model node.
  3. Customize Airtable Node: Adjust the Airtable node to point to your specific base and table where news digest configurations are stored.
  4. Configure AI Agent and OpenAI Chat Model:
    • Review and adjust the prompts and parameters within the AI Agent and OpenAI Chat Model nodes to define how your news digests should be generated and formatted.
  5. Customize Gmail Approval:
    • Modify the Gmail node to specify the recipient email address for approvals, the subject, and the body of the approval email.
  6. Adjust Schedule Trigger: Set the desired schedule (e.g., daily at a specific time) for the workflow to run using the Schedule Trigger node.
  7. Implement Approval Logic (Optional but Recommended): The If node is present, but its branches are not defined. You would typically connect the "True" output of the If node to actions for approved digests (e.g., send to a distribution list, post to Slack) and the "False" output to actions for rejected digests (e.g., notify sender, log rejection).
  8. Review Code Node: If the Code node contains specific logic, review and adjust it as needed for your use case.
  9. Activate the Workflow: Once configured, activate the workflow to begin automated news digest generation and approval.

Related Templates

Track competitor SEO keywords with Decodo + GPT-4.1-mini + Google Sheets

This workflow automates competitor keyword research using OpenAI LLM and Decodo for intelligent web scraping. Who this is for SEO specialists, content strategists, and growth marketers who want to automate keyword research and competitive intelligence. Marketing analysts managing multiple clients or websites who need consistent SEO tracking without manual data pulls. Agencies or automation engineers using Google Sheets as an SEO data dashboard for keyword monitoring and reporting. What problem this workflow solves Tracking competitor keywords manually is slow and inconsistent. Most SEO tools provide limited API access or lack contextual keyword analysis. This workflow solves that by: Automatically scraping any competitor’s webpage with Decodo. Using OpenAI GPT-4.1-mini to interpret keyword intent, density, and semantic focus. Storing structured keyword insights directly in Google Sheets for ongoing tracking and trend analysis. What this workflow does Trigger — Manually start the workflow or schedule it to run periodically. Input Setup — Define the website URL and target country (e.g., https://dev.to, france). Data Scraping (Decodo) — Fetch competitor web content and metadata. Keyword Analysis (OpenAI GPT-4.1-mini) Extract primary and secondary keywords. Identify focus topics and semantic entities. Generate a keyword density summary and SEO strength score. Recommend optimization and internal linking opportunities. Data Structuring — Clean and convert GPT output into JSON format. Data Storage (Google Sheets) — Append structured keyword data to a Google Sheet for long-term tracking. Setup Prerequisites If you are new to Decode, please signup on this link visit.decodo.com n8n account with workflow editor access Decodo API credentials OpenAI API key Google Sheets account connected via OAuth2 Make sure to install the Decodo Community node. Create a Google Sheet Add columns for: primarykeywords, seostrengthscore, keyworddensity_summary, etc. Share with your n8n Google account. Connect Credentials Add credentials for: Decodo API credentials - You need to register, login and obtain the Basic Authentication Token via Decodo Dashboard OpenAI API (for GPT-4o-mini) Google Sheets OAuth2 Configure Input Fields Edit the “Set Input Fields” node to set your target site and region. Run the Workflow Click Execute Workflow in n8n. View structured results in your connected Google Sheet. How to customize this workflow Track Multiple Competitors → Use a Google Sheet or CSV list of URLs; loop through them using the Split In Batches node. Add Language Detection → Add a Gemini or GPT node before keyword analysis to detect content language and adjust prompts. Enhance the SEO Report → Expand the GPT prompt to include backlink insights, metadata optimization, or readability checks. Integrate Visualization → Connect your Google Sheet to Looker Studio for SEO performance dashboards. Schedule Auto-Runs → Use the Cron Node to run weekly or monthly for competitor keyword refreshes. Summary This workflow automates competitor keyword research using: Decodo for intelligent web scraping OpenAI GPT-4.1-mini for keyword and SEO analysis Google Sheets for live tracking and reporting It’s a complete AI-powered SEO intelligence pipeline ideal for teams that want actionable insights on keyword gaps, optimization opportunities, and content focus trends, without relying on expensive SEO SaaS tools.

Ranjan DailataBy Ranjan Dailata
161

Automate Dutch Public Procurement Data Collection with TenderNed

TenderNed Public Procurement What This Workflow Does This workflow automates the collection of public procurement data from TenderNed (the official Dutch tender platform). It: Fetches the latest tender publications from the TenderNed API Retrieves detailed information in both XML and JSON formats for each tender Parses and extracts key information like organization names, titles, descriptions, and reference numbers Filters results based on your custom criteria Stores the data in a database for easy querying and analysis Setup Instructions This template comes with sticky notes providing step-by-step instructions in Dutch and various query options you can customize. Prerequisites TenderNed API Access - Register at TenderNed for API credentials Configuration Steps Set up TenderNed credentials: Add HTTP Basic Auth credentials with your TenderNed API username and password Apply these credentials to the three HTTP Request nodes: "Tenderned Publicaties" "Haal XML Details" "Haal JSON Details" Customize filters: Modify the "Filter op ..." node to match your specific requirements Examples: specific organizations, contract values, regions, etc. How It Works Step 1: Trigger The workflow can be triggered either manually for testing or automatically on a daily schedule. Step 2: Fetch Publications Makes an API call to TenderNed to retrieve a list of recent publications (up to 100 per request). Step 3: Process & Split Extracts the tender array from the response and splits it into individual items for processing. Step 4: Fetch Details For each tender, the workflow makes two parallel API calls: XML endpoint - Retrieves the complete tender documentation in XML format JSON endpoint - Fetches metadata including reference numbers and keywords Step 5: Parse & Merge Parses the XML data and merges it with the JSON metadata and batch information into a single data structure. Step 6: Extract Fields Maps the raw API data to clean, structured fields including: Publication ID and date Organization name Tender title and description Reference numbers (kenmerk, TED number) Step 7: Filter Applies your custom filter criteria to focus on relevant tenders only. Step 8: Store Inserts the processed data into your database for storage and future analysis. Customization Tips Modify API Parameters In the "Tenderned Publicaties" node, you can adjust: offset: Starting position for pagination size: Number of results per request (max 100) Add query parameters for date ranges, status filters, etc. Add More Fields Extend the "Splits Alle Velden" node to extract additional fields from the XML/JSON data, such as: Contract value estimates Deadline dates CPV codes (procurement classification) Contact information Integrate Notifications Add a Slack, Email, or Discord node after the filter to get notified about new matching tenders. Incremental Updates Modify the workflow to only fetch new tenders by: Storing the last execution timestamp Adding date filters to the API query Only processing publications newer than the last run Troubleshooting No data returned? Verify your TenderNed API credentials are correct Check that you have setup youre filter proper Need help setting this up or interested in a complete tender analysis solution? Get in touch 🔗 LinkedIn – Wessel Bulte

Wessel BulteBy Wessel Bulte
247

🎓 How to transform unstructured email data into structured format with AI agent

This workflow automates the process of extracting structured, usable information from unstructured email messages across multiple platforms. It connects directly to Gmail, Outlook, and IMAP accounts, retrieves incoming emails, and sends their content to an AI-powered parsing agent built on OpenAI GPT models. The AI agent analyzes each email, identifies relevant details, and returns a clean JSON structure containing key fields: From – sender’s email address To – recipient’s email address Subject – email subject line Summary – short AI-generated summary of the email body The extracted information is then automatically inserted into an n8n Data Table, creating a structured database of email metadata and summaries ready for indexing, reporting, or integration with other tools. --- Key Benefits ✅ Full Automation: Eliminates manual reading and data entry from incoming emails. ✅ Multi-Source Integration: Handles data from different email providers seamlessly. ✅ AI-Driven Accuracy: Uses advanced language models to interpret complex or unformatted content. ✅ Structured Storage: Creates a standardized, query-ready dataset from previously unstructured text. ✅ Time Efficiency: Processes emails in real time, improving productivity and response speed. *✅ Scalability: Easily extendable to handle additional sources or extract more data fields. --- How it works This workflow automates the transformation of unstructured email data into a structured, queryable format. It operates through a series of connected steps: Email Triggering: The workflow is initiated by one of three different email triggers (Gmail, Microsoft Outlook, or a generic IMAP account), which constantly monitor for new incoming emails. AI-Powered Parsing & Structuring: When a new email is detected, its raw, unstructured content is passed to a central "Parsing Agent." This agent uses a specified OpenAI language model to intelligently analyze the email text. Data Extraction & Standardization: Following a predefined system prompt, the AI agent extracts key information from the email, such as the sender, recipient, subject, and a generated summary. It then forces the output into a strict JSON structure using a "Structured Output Parser" node, ensuring data consistency. Data Storage: Finally, the clean, structured data (the from, to, subject, and summarize fields) is inserted as a new row into a specified n8n Data Table, creating a searchable and reportable database of email information. --- Set up steps To implement this workflow, follow these configuration steps: Prepare the Data Table: Create a new Data Table within n8n. Define the columns with the following names and string type: From, To, Subject, and Summary. Configure Email Credentials: Set up the credential connections for the email services you wish to use (Gmail OAuth2, Microsoft Outlook OAuth2, and/or IMAP). Ensure the accounts have the necessary permissions to read emails. Configure AI Model Credentials: Set up the OpenAI API credential with a valid API key. The workflow is configured to use the model, but this can be changed in the respective nodes if needed. Connect the Nodes: The workflow canvas is already correctly wired. Visually confirm that the email triggers are connected to the "Parsing Agent," which is connected to the "Insert row" (Data Table) node. Also, ensure the "OpenAI Chat Model" and "Structured Output Parser" are connected to the "Parsing Agent" as its AI model and output parser, respectively. Activate the Workflow: Save the workflow and toggle the "Active" switch to ON. The triggers will begin polling for new emails according to their schedule (e.g., every minute), and the automation will start processing incoming messages. --- Need help customizing? Contact me for consulting and support or add me on Linkedin.

DavideBy Davide
1616