Skip to main content

Fetch country-specific Google Trends reports via Telegram bot

Workflow preview

Workflow preview
100%
Fetch country-specific Google Trends reports via Telegram bot preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Telegram Google Trends Bot Workflow This workflow creates a powerful, multi country Google Trends bot on Telegram. Users can request the top...

Best for

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

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.xml, n8n-nodes-base.code, n8n-nodes-base.telegram, n8n-nodes-base.telegramtrigger, 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 M Sayed.

Original n8n.io source

1.1 Workflow description

Title
Fetch country-specific Google Trends reports via Telegram bot
Workflow name
Fetch country-specific Google Trends reports via Telegram bot

🚀 Telegram Google Trends Bot Workflow

This workflow creates a powerful, multi-country Google Trends bot on Telegram. Users can request the top trending search queries for any country by simply sending its two-letter country code (e.g., EG, US, SA). The bot fetches the latest data, formats it into a clean report, and sends it back to the chat.

✨ Key Features

  • 🌍 Dynamic Country Selection: Get trends for any country on the fly by providing its geo code
  • 📡 Automated RSS Fetching: Pulls the latest data directly from Google's official daily trends RSS feed
  • 📊 Clean, Formatted Reports: Uses a custom code node to generate a beautiful, Markdown-formatted message that is easy to read on mobile
  • 📈 Rich Information: Each trend includes:
    • 🔍 The search query title
    • 📊 Approximate search traffic volume (e.g., "20K+ searches")
    • 📰 Links to the top 2 related news articles, complete with their sources
  • 🌟 Optimized for Arabic: The report headers and labels are in Arabic, making it perfect for users in the MENA region, but can be easily adapted

⚙️ How It Works

  1. 💬 Telegram Trigger: A user sends a message containing a two-letter country code (e.g., EG)
  2. 🌐 HTTP Request: The workflow uses this code as the geo parameter in a request to the trends.google.com/trending/rss endpoint
  3. 📄 XML Parser: The native XML node converts the raw RSS feed data into a structured JSON format
  4. 💻 Code (Format Report): A JavaScript function processes the JSON data. It extracts the top 5 trends, formats the titles, traffic, and news items, and constructs the final Markdown text for the report
  5. 📤 Send to Telegram: The final, formatted report is sent back to the user who requested it

🛠️ Setup

  1. 🔐 Telegram Credentials: Add your Telegram API credentials to the Telegram Trigger and Send a text message nodes
  2. 🌐 (Optional) Customize Language: The text and labels in the Code node can be easily translated to any language you prefer

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 - HTTP Request

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 2 - XML

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

Block 3 - Code

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

Block 4 - Send a text message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 5 - Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 6 - Sticky Note

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

Block 7 - Sticky Note1

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

Block 8 - Sticky Note2

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

Block 9 - Sticky Note3

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

Block 10 - Sticky Note4

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

3. Summary Table

Workflow Fetch country-specific Google Trends reports via Telegram bot
Complexity intermediate
Nodes 10
Categories Market Research
Author M Sayed
Published 18 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6108/6108.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 Fetch country-specific Google Trends reports via Telegram bot do?

Telegram Google Trends Bot Workflow This workflow creates a powerful, multi country Google Trends bot on Telegram. Users can request the top...

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 use case.