πŸ“Š Fetch country-specific Google Trends reports via Telegram bot

⚑ 539 views Β· πŸ“Š Market Research & Insights

Description

πŸš€ Telegram Google Trends Bot Workflow

Screenshot 20250718 at 3.38.32β€―AM.png

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

βš™οΈ 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

πŸ”— Nodes Used

HTTP Request, Telegram, Telegram Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup