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
š¬ 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 geo parameter in a request to the trends.google.com/trending/rss endpoint š 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 Trigger and Send a text message nodes š (Optional) Customize Language: The text and labels in the Code node can be easily translated to any language you prefer
Related Templates
Automatic News Summarization & Email Digest with GPT-4, NewsAPI and Gmail
š° AI News Digest Agent: Auto News Summarizer & Email Newsletter Create an intelligent news curation system that automat...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
Auto-classify Gmail emails with AI and apply labels for inbox organization
Who is this for? Professionals and individuals who receive high volumes of emails, those who want to automatically organ...
š Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments