Skip to main content

News search & categorization chatbot with Google News, SerpAPI, and OpenAI

Workflow preview

Workflow preview
100%
News search & categorization chatbot with Google News, SerpAPI, and OpenAI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

‍ Description This workflow connects SerpApi with OpenAI inside n8n to automate Google News monitoring and analysis. It’s built for market researchers, analysts, communications teams, and busin...

Best for

  • AI Chatbot automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-serpapi.serpapi, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.stickynote, n8n-nodes-base.splitout, n8n-nodes-base.aggregate, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.chattrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Robert Breen.

Original n8n.io source

1.1 Workflow description

Title
News search & categorization chatbot with Google News, SerpAPI, and OpenAI
Workflow name
News search & categorization chatbot with Google News, SerpAPI, and OpenAI

🧑‍💻 Description

This workflow connects SerpApi with OpenAI inside n8n to automate Google News monitoring and analysis.

It’s built for market researchers, analysts, communications teams, and business leaders who need to stay on top of fast-changing news without wasting time scrolling through endless headlines. Instead of manually searching, this workflow automatically fetches news, groups it into meaningful categories, and recommends the most relevant articles.

Problem it solves:

  • Reduces time spent manually monitoring news.
  • Helps track competitors, industries, or emerging trends.
  • Provides structured, actionable insights from unstructured headline feeds.

Disclaimer: this template can only be used on self-hosted installations.


📌 Use Cases

  • Market Intelligence: Track industry-specific news to guide strategy.
  • Competitor Monitoring: Automatically surface competitor mentions in the press.
  • Research Support: Organize articles into categories for academic or professional projects.
  • Executive Briefings: Deliver a curated daily digest to stakeholders.
  • Trend Spotting: Detect recurring topics to understand where coverage is growing.

⚙️ Setup Instructions

Preconditions

  • You need a self-hosted n8n instance (this template doesn’t run on n8n.cloud).
  • A valid SerpApi account + API Key.
  • An OpenAI API Key with billing enabled.
  • Optional: Connected Slack, Email, or Google Sheets credentials if you plan to extend output.

1️⃣ Set Up SerpApi Connection

  1. Create a free account at SerpApi
  2. Copy your API Key from the dashboard
  3. In n8n → Credentials → New → SerpApi
    • Paste your API Key → Save
  4. In the workflow, select your SerpApi credential in the Google News Search node.

2️⃣ Set Up OpenAI Connection

  1. Go to OpenAI Platform
  2. Navigate to Billing and ensure your account has credits/funding
  3. Copy your API Key into the OpenAI credentials in n8n

🧠 Workflow Breakdown

  1. Chat Trigger → A user enters a search query (e.g., “EV market 2025”).
  2. Google News Search (SerpApi) → Fetches the latest headlines for that query.
  3. Split Out Links → Separates articles into individual items.
  4. Aggregate Node → Merges article titles and links into a structured list.
  5. OpenAI Agent → Summarizes, categorizes, and selects the most relevant article per category.
  6. Response Output → Returns a clean, categorized digest with clickable links.

🎛️ Customization Guidance

  • Adjust Categories: Change the OpenAI system prompt to return 3, 5, or 10 categories depending on the depth you want.
  • Regional Focus: Use SerpApi’s filters (gl=us, hl=en) to restrict results by geography or language.
  • Delivery Methods: Add Slack, Email, or Google Sheets nodes to automatically share the digest with your team.
  • Automation Frequency: Add a Schedule Trigger to run daily, weekly, or at custom intervals.
  • Extended Analysis: Modify the prompt to include sentiment analysis, top keywords, or executive summaries.
  • Multi-Query Runs: Duplicate the SerpApi node to monitor multiple industries or competitors in one workflow.

💬 Example Q&A

Question: “What’s happening in renewable energy today?”
Response:

  • Policy: “US expands solar subsidies” – [link]
  • Innovation: “New battery breakthrough announced” – [link]
  • Market Moves: “Wind energy stocks surge” – [link]
  • Competition: “Shell invests in offshore projects” – [link]
  • Sustainability: “Community solar initiatives expand” – [link]

📬 Contact

Need help customizing this template (e.g., tracking multiple industries, adding auto-delivery, or integrating dashboards)?

📧 [email protected]
🔗 Robert Breen
🌐 ynteractive.com

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Google_news search

Type / Role
n8n-nodes-serpapi.serpApi - serpApi
Config choices
Version 1

Block 2 - OpenAI Chat Model6

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 3 - Simple Memory2

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 4 - Sticky Note59

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note16

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Split Out Links

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 7 - Combine into one field

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 8 - Chat with Google News

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 9 - Sample Chatbot

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.3

Block 10 - Sticky Note27

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note28

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow News search & categorization chatbot with Google News, SerpAPI, and OpenAI
Complexity intermediate
Nodes 11
Categories AI Chatbot, Multimodal AI
Author Robert Breen
Published 22 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7741/7741.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does News search & categorization chatbot with Google News, SerpAPI, and OpenAI do?

‍ Description This workflow connects SerpApi with OpenAI inside n8n to automate Google News monitoring and analysis. It’s built for market researchers, analysts, communications teams, and busin...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your AI Chatbot, Multimodal AI use case.