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
Automate SEO reports with n8n and Gmail

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

Learn how to Build this Workflow with AI:

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.


Automate SEO reports with n8n and Gmail

Visit through Desktop to Interact with the Workflow.

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 Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.