Automate Weekly SEO Reporting with n8n and Gmail

This n8n workflow automates weekly SEO performance reports by fetching data from Google Search Console and emailing a detailed summary. It saves marketers hours each week by eliminating manual data gathering and report creation, ensuring timely insights for SEO optimization.
cron
httpRequest
function
+1
Workflow Identifier: 1782
NODES in Use: Cron, HTTP Request, Function, Gmail

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does

This workflow automatically gets SEO data from Google Search Console every Monday at 7 AM.
It makes a clear report with clicks, impressions, CTR, and positions for the past week.
Then, it sends the report by email using Gmail.
This removes slow manual work and keeps SEO updates reliable and on time.


Who should use this workflow

This workflow is for digital marketers or SEO specialists who report SEO data for several sites.
It helps anyone with Google Search Console data and a Gmail account who wants weekly automatic reports.


Tools and services used

  • Google Search Console API: To request SEO performance data.
  • n8n automation platform: To connect nodes and automate the workflow.
  • Gmail with OAuth2 credentials: To send email reports.
  • HTTP Basic Authentication: For secure API access to Google Search Console.

Inputs, processing, and outputs

Inputs

  • Weekly cron trigger set for Monday 7 AM.
  • Google Search Console API credentials.
  • Gmail OAuth2 credentials.
  • Site URL encoded properly in the API request.

Processing steps

  • Cron Trigger node: Starts empty trigger every Monday at 7 AM.
  • HTTP Request node: Sends POST request to Google Search Console API with a JSON body for last 7 days data, focusing on search queries.
  • Function node: Runs JavaScript code to take API response rows, then makes a text report with top 10 queries and their clicks, impressions, CTR, and position.
  • Gmail node: Sends the report by email using the Gmail account with OAuth2.

Outputs

  • A clear SEO report listing top queries with key metrics.
  • An email sent every Monday morning with the SEO report.

Beginner step-by-step: How to use this workflow in n8n

1. Import the workflow

  1. Click the Download button on this page to get the workflow file.
  2. Open n8n editor.
  3. Go to “Import from File” and select the downloaded workflow.

2. Configure credentials and settings

  1. Add Google Search Console API credentials with HTTP Basic Auth.
  2. Add Gmail OAuth2 credentials for sending emails.
  3. Update the site URL in the HTTP Request node to your URL in encoded format.
  4. Change the email address in the Gmail node to the one you want to receive reports.

3. Test and activate

  1. Run the workflow manually to check the report is generated and sent.
  2. If all looks good, switch the workflow to Active to run every Monday at 7 AM.

If self hosting n8n, see self-host n8n for setup help.


Customization ideas

  • Change cron to daily or monthly for different report timing.
  • Add more dimensions like “page” or “device” in the API request body for deeper details.
  • Use HTML formatting in Gmail node to make the report easier to read.
  • Send reports to multiple email addresses by adding them with commas.

Edge cases and errors to watch for

  • HTTP 401 Unauthorized: Check Google API credentials are correct and not expired.
  • Empty report or no data: Confirm API request date range and dimensions match your data in Search Console.
  • Gmail errors: Ensure Gmail OAuth2 is set up and Google Cloud Console has Gmail API enabled.

Summary of results

✓ Saves many hours from manual SEO reporting each week.
✓ Makes SEO reports consistent and timely every Monday.
✓ Reduces mistakes in copying data.
✓ Sends a simple, clear email with the top search queries.
✓ Allows easy changes for more data or different schedules.


Frequently Asked Questions

Verify that the Google Search Console API credentials in n8n are correct and not expired. Refresh the credentials by reauthorizing the Google API if needed.
Check if the API request body has the correct date range and includes the needed dimensions. Confirm there is recent data in Google Search Console.
Yes, add multiple email addresses separated by commas in the Gmail node’s ‘Send To’ field.
Yes, n8n supports other email nodes like SMTP or Outlook, which can be configured similarly to the Gmail node.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free