π 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
- π Dynamic Country Selection: Get trends for any country on the fly by providing its
geocode - π‘ 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
- π¬ Telegram Trigger: A user sends a message containing a two-letter country code (e.g.,
EG) - π HTTP Request: The workflow uses this code as the
geoparameter in a request to thetrends.google.com/trending/rssendpoint - π XML Parser: The native XML node converts the raw RSS feed data into a structured JSON format
- π» 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
- π€ Send to Telegram: The final, formatted report is sent back to the user who requested it
π οΈ Setup
- π Telegram Credentials: Add your Telegram API credentials to the
Telegram TriggerandSend a text messagenodes - π (Optional) Customize Language: The text and labels in the
Codenode 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