Skip to main content

News research and sentiment analysis AI agent with Gemini and SearXNG

Workflow preview

Workflow preview
100%
News research and sentiment analysis AI agent with Gemini and SearXNG preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This n8n workflow operates as a two agent system where each agent has a specialized task. The process flows from initial user input to a final analysis, with a seamless handoff between the agents. ...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.datetimetool, @n8n/n8n-nodes-langchain.toolsearxng, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
News research and sentiment analysis AI agent with Gemini and SearXNG
Workflow name
News research and sentiment analysis AI agent with Gemini and SearXNG

This n8n workflow operates as a two-agent system where each agent has a specialized task. The process flows from initial user input to a final analysis, with a seamless handoff between the agents.

How it works

  1. The Chat Trigger The entire process begins when you send a message using n8n's chat interface. This message serves as the initial prompt or query for the system.

  2. The Research Agent Takes Over The user's message is first sent to the Research Agent. This agent's job is to understand the query and gather relevant information. To do this, it has access to:

    • LLM: Google Gemini, which acts as the agent's "brain" to process language and make decisions. Tools:
    • web_search: It uses this tool (powered by your self-hosted SearXNG instance) to perform live searches on the internet.
    • get_current_date: It can access the current date, which is useful for context-aware or time-sensitive research.

    The Research Agent uses these tools to find the most relevant information related to your query and then compiles it into a concise summary.

  3. Handoff to the Sentiment Analysis Agent Once the Research Agent has completed its task, it passes its findings directly to the Sentiment Analysis Agent.

  4. The Final Analysis The Sentiment Analysis Agent receives the text from the Research Agent. Its sole purpose, as defined by its system prompt, is to analyze the sentiment of the provided information. It determines if the content is positive, negative, or neutral and formulates a final response.

This final analysis is then sent back to you in the chat, completing the workflow.

Set up steps

  1. Select the Language Model (LLM): This workflow is pre-configured with Google Gemini. You can select a different model for the agents as needed.
  2. Configure LLM Credentials: Ensure that valid credentials for your chosen LLM are correctly set up within your n8n instance.
  3. Set Up the SearXNG Connection: Configure the node to connect to your self-hosted SearXNG instance. This enables the agent's web search capabilities.
  4. Define the Research Agent's Task: Customize the system prompt for the "Research Agent" to define its role, instructions, and how it should conduct its research.
  5. Define the Sentiment Analysis Agent's Task: Adjust the system prompt for the "Sentiment Analysis Agent" to specify how it should analyze the information provided by the Research Agent.
  6. Test the Workflow: Use the built-in chat interface in the n8n canvas to send a message and verify that the agents are functioning correctly.

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 - When chat message received

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

Block 2 - get_current_date

Type / Role
n8n-nodes-base.dateTimeTool - dateTimeTool
Config choices
Version 2

Block 3 - web_search

Type / Role
@n8n/n8n-nodes-langchain.toolSearXng - toolSearXng
Config choices
Version 1

Block 4 - Research Agent

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

Block 5 - Sentiment Analysis Agent

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

Block 6 - Gemini 2.5 Flash

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 7 - Sticky Note

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

3. Summary Table

Workflow News research and sentiment analysis AI agent with Gemini and SearXNG
Complexity intermediate
Nodes 7
Categories Market Research, AI Chatbot
Author Mihai Farcas
Published 25 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5286/5286.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 research and sentiment analysis AI agent with Gemini and SearXNG do?

This n8n workflow operates as a two agent system where each agent has a specialized task. The process flows from initial user input to a final analysis, with a seamless handoff between the agents. ...

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 Market Research, AI Chatbot use case.