📊 Send Google Search Console performance reports to Gmail and Telegram

⚡ 4 views · 📊 Market Research & Insights

Description

Quick overview

This workflow runs daily (or on demand) to pull Google Search Console Discover page performance for a domain, builds an HTML “best posts” report with key metrics and top pages, emails the report via Gmail, and optionally converts the HTML to an image to send to Telegram.

How it works

  1. Runs on a daily 7 AM cron schedule or via a manual trigger.
  2. Sets reporting parameters (lookback days plus minimum clicks and impressions) and calculates the start and end dates.
  3. Calls the Google Search Console Search Analytics API (Discover, dimension: page) to fetch up to 25,000 page rows for the selected date range.
  4. Aggregates total clicks/impressions and average CTR across all pages, filters pages that meet the click/impression thresholds, and sorts qualifying pages by clicks.
  5. Generates a responsive HTML report showing key metrics, criteria, and a top-10 table of qualifying pages.
  6. Sends the HTML report as the email body using Gmail and, in parallel, renders the same HTML into a PNG image.
  7. Posts the report image to a configured Telegram chat with a caption including the period, date range, and headline metrics.

Setup

  1. Add a Google OAuth2 API credential with access to your Google Search Console property and enable the Google Search Console API in your Google Cloud project.
  2. Update the Search Console API request URL to use your verified property (replace sc-domain:exampale.com with your domain).
  3. Add a Gmail OAuth2 credential (with Gmail API enabled) and set the recipient email address in the email step.
  4. (Optional) Add a Telegram bot credential, set the target Telegram chat ID, and ensure your n8n environment can run the HTML-to-image conversion (Chromium/Puppeteer for node-html-to-image).
  5. Adjust the reporting configuration values (days, minClicks, minImpressions) to match your reporting needs.

Requirements

Customization

Additional info

This workflow helps website owners identify which blog articles are gaining the most attention based on Google Search Console performance data.

It shows which articles are:

This information helps the user understand which content is performing well and which articles are gaining increased audience interest, so they can make better content and SEO decisions.

đź”— Nodes Used

HTTP Request, Telegram, Gmail, Schedule Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup