🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

Google Trends to Gmail, clean summaries sent fast

Lisa Granqvist Partner Workflow Automation Expert

Pulling insights out of Google Trends sounds simple until you’re staring at messy pages, half-structured snippets, and notes scattered across docs and tabs. Then you still have to rewrite it into something your team will actually read. Every week.

SEO analysts feel this when keyword interest shifts overnight. A content strategist needs clean takeaways for next week’s plan. And if you run an agency, Trends Gmail automation is the difference between “we’ll send it later” and consistent updates that make you look sharp.

This workflow turns a Google Trends page into a clear AI summary, then emails it through Gmail and pushes it to a webhook. You’ll see what it does, what you need, and how to adapt it for your own reporting.

How This Automation Works

The full n8n workflow, from trigger to final output:

n8n Workflow Template: Google Trends to Gmail, clean summaries sent fast

The Problem: Google Trends insights are a weekly time sink

Google Trends is great at showing movement, but it’s not built to hand you a decision-ready summary. You copy sections into a doc, reformat weird chunks, try to explain what matters, then send an email that still feels a little fuzzy. Do that for a few topics or regions and you’ve burned most of a morning. The worst part is the mental load: you’re doing low-value cleaning work while the actual opportunity (new content angles, quick reactions, budget shifts) is getting colder by the hour.

It adds up fast. Here’s where it breaks down.

  • You spend about 30–60 minutes per report just turning messy page content into readable text.
  • Manual summaries drift in style and quality, so stakeholders stop trusting the “weekly trends email.”
  • Copy-paste mistakes happen, especially when you’re comparing multiple regions or time windows.
  • If someone asks for the raw output later, you often can’t find what you used or how you interpreted it.

The Solution: Google Trends pages in, clean summaries out

This n8n workflow takes a Google Trends URL, pulls the content through Bright Data’s Web Unlocker, and converts it into clean text you can actually work with. From there, it extracts structured information (so the AI isn’t guessing what’s important), then asks Google Gemini to generate a clear, human-readable summary with key takeaways. Finally, it sends that summary via Gmail and posts it to a webhook for whatever your team uses next. It also writes the structured output to disk, which is quietly valuable when you need an audit trail or want to build a trend archive over time.

The workflow starts when you run it (manual trigger by default) and sets the target URL and Bright Data zone. Bright Data fetches the page, n8n converts the content to plain text, and the AI steps extract structure and generate a summary. Gmail delivers the final write-up, and the webhook pushes the same summary into your other systems.

What You Get: Automation vs. Results

Example: What This Looks Like

Say you publish a “weekly trends” email covering 5 topics. Manually, you might spend about 20 minutes per topic to extract, clean, and rewrite, plus another 30 minutes to format and send, which is roughly 2 hours each week. With this workflow, you drop in 5 URLs (or run it 5 times), let the scraper + AI process, and you mainly review the summaries before they go out. That’s usually closer to 20 minutes total, not a whole working block.

What You’ll Need

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • Bright Data Web Unlocker to reliably scrape Trends pages.
  • Google Gemini to extract structure and write the summary.
  • Bright Data token (get it from your Web Unlocker zone settings).

Skill level: Intermediate. You’ll connect credentials, paste a webhook URL, and tweak prompts without breaking the flow.

Don’t want to set this up yourself? Talk to an automation expert (free 15-minute consultation).

How It Works

A run begins with a URL. The workflow starts from a manual trigger in n8n, then assigns the Google Trends page URL you want to analyze along with your Bright Data zone name.

The page is fetched and cleaned. Bright Data Web Unlocker pulls the page content, then n8n converts markdown/HTML into plaintext. That “clean text” step matters because AI summaries get weird when the input is full of layout junk.

AI turns raw text into usable insight. An information extractor produces structured fields, then the summarization chain asks Google Gemini for key takeaways in a readable format. This is where you tune the prompt to match your brand voice and the kind of insights you want.

Distribution and archiving happen automatically. The summary is sent via Gmail, posted to your webhook endpoint, and the structured output is written to a file so you can audit, compare, or reuse it later.

You can easily modify the input source to read from Google Sheets instead of a single URL based on your needs. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Manual Trigger

Set up the manual trigger to start the workflow on demand for testing or one-off runs.

  1. Add the Manual Start Trigger node to your workflow (or keep it if already present).
  2. Leave Manual Start Trigger with default settings since it requires no configuration.
  3. Optionally keep Flowpast Branding as a visual note block (no configuration required).

Step 2: Connect Bright Data and Set the Target

Define the Google Trends URL and zone, then send it to Bright Data for markdown retrieval.

  1. In Assign Target URL & Zone, set url to https://trends.google.com/trends/explore?gprop=youtube&hl=en-US.
  2. In Assign Target URL & Zone, set zone to web_unlocker1.
  3. Open Bright Data API Request and set URL to https://api.brightdata.com/request.
  4. Set Method to POST, Send Body to true, and Send Headers to true.
  5. In Body Parameters, set zone to {{ $json.zone }} and url to {{ $json.url }}?product=unlocker&method=api.
  6. Add format = raw and data_format = markdown in the body parameters.
  7. Credential Required: Connect your httpHeaderAuth credentials in Bright Data API Request.

Step 3: Set Up AI Processing and Extraction

Convert the markdown to text, parse structured trend data, and generate summaries using Gemini-powered AI.

  1. In Markdown Text Converter, set Text to =You need to analyze the below markdown and convert to textual data. Please do not output with your own thoughts. Make sure to output with textual data only with no links, scripts, css etc. {{ $json.data }}.
  2. Ensure Markdown Text Converter uses the Gemini model connected via Gemini Chat for Extraction.
  3. Credential Required: Connect your googlePalmApi credentials in Gemini Chat for Extraction (credentials must be added to the parent Gemini node, not the chain node).
  4. In Structured Info Parser, set Text to =Extract the Google Trend Data in JSON. Here's the content: {{ $json.text }}.
  5. In Structured Info Parser, set Schema Type to manual and Input Schema to { "type": "array", "properties": { "topics": { "type": "string" },"desc": { "type": "string" } } }.
  6. Ensure Structured Info Parser uses the Gemini model connected via Gemini Chat for Struct Parse.
  7. Credential Required: Connect your googlePalmApi credentials in Gemini Chat for Struct Parse (credentials must be added to the parent Gemini node, not the extractor node).
  8. In Generate Trend Summary, set Chunking Mode to advanced.
  9. Ensure Generate Trend Summary uses the Gemini model connected via Gemini Chat for Summary.
  10. Credential Required: Connect your googlePalmApi credentials in Gemini Chat for Summary (credentials must be added to the parent Gemini node, not the summarization node).

Markdown Text Converter outputs to both Send Markdown Text Webhook and Structured Info Parser in parallel.

Structured Info Parser outputs to both Build Binary Payload and Generate Trend Summary in parallel.

Generate Trend Summary outputs to both Post Summary Webhook and Email Summary via Gmail in parallel.

Step 4: Configure Output Delivery and Storage

Send raw markdown, save structured JSON, post summaries to a webhook, and email results.

  1. In Send Markdown Text Webhook, set URL to https://webhook.site/3c36d7d1-de1b-4171-9fd3-643ea2e4dd76 and keep Send Body enabled.
  2. In Send Markdown Text Webhook, set the body content to {{ $json.text }}.
  3. In Build Binary Payload, keep the Function Code as provided to encode JSON into a binary payload.
  4. In Write Output File, set Operation to write and File Name to d:\google-trends.json.
  5. In Post Summary Webhook, set URL to https://webhook.site/3c36d7d1-de1b-4171-9fd3-643ea2e4dd76 and set the body content to {{ $json.response.text }}.
  6. In Email Summary via Gmail, set Send To to [YOUR_EMAIL], Subject to Google Trends Summary, and Message to {{ $json.response.text }}.
  7. Credential Required: Connect your gmailOAuth2 credentials in Email Summary via Gmail.

⚠️ Common Pitfall: The file path in Write Output File is Windows-specific. Update File Name if your n8n instance runs on Linux or macOS.

Step 5: Test and Activate Your Workflow

Verify the complete execution path and then enable the workflow for regular use.

  1. Click Execute Workflow on Manual Start Trigger to run a test.
  2. Confirm Bright Data API Request returns markdown and Markdown Text Converter outputs clean text.
  3. Verify Structured Info Parser emits JSON, Write Output File creates d:\google-trends.json, and Post Summary Webhook receives the summary.
  4. Check your inbox for the email from Email Summary via Gmail.
  5. When successful, toggle the workflow to Active for production use.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Common Gotchas

  • Bright Data credentials can expire or need specific permissions. If things break, check your Web Unlocker zone token and header auth credential in n8n first.
  • If you’re using Wait nodes or external processing, timings vary. Bump up the wait duration if downstream steps run before the scrape or AI response is actually ready.
  • Default Gemini prompts are generic. Add your preferred summary format and tone early or you will be editing outputs every week.

Frequently Asked Questions

How long does it take to set up this Trends Gmail automation?

About 30 minutes if you already have Bright Data and Gemini ready.

Do I need coding skills to automate Google Trends summaries?

No. You’ll mostly paste credentials, set the URL, and adjust the Gemini prompt.

Is n8n free to use for this Trends Gmail automation workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in Bright Data usage and Gemini API costs based on how often you run summaries.

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

Can I customize this Trends Gmail automation workflow for weekly multi-topic reporting?

Yes, but you’ll want to change the input. Replace the “Assign Target URL & Zone” step with a Google Sheets read so each row is a Trends URL, then keep the same extraction and summarization steps. Common tweaks include adding a “Weekly Google Trends Summary – {{date}}” subject line in Gmail, sending to a mailing list, and adjusting the Gemini prompt to output “Key shifts, why it matters, content ideas.”

Why is my Bright Data connection failing in this Trends Gmail automation?

Usually it’s an expired token or the wrong header format in n8n credentials. Confirm your Web Unlocker zone is active, then regenerate the token and update the Header Auth value (it should look like a Bearer token). If it still fails, check whether the target URL is blocked or redirecting, because that can change what the scraper returns. Rate limiting can also show up when you run many URLs back-to-back.

How many summaries can this Trends Gmail automation handle?

On n8n Cloud’s Starter plan, you can run a few thousand workflow executions per month, which is plenty for weekly reporting. If you self-host, there’s no execution cap, so it mainly depends on your server and your Bright Data/Gemini quotas. Practically, most teams run anywhere from a handful of URLs to a few dozen per week without issues once prompts and rate limits are tuned.

Is this Trends Gmail automation better than using Zapier or Make?

For this use case, usually yes. You’re combining scraping, text cleanup, structured extraction, summarization, file writing, and multi-channel delivery, and n8n handles that kind of “real workflow” logic without getting fragile or expensive. Zapier and Make can work, but the moment you add branching, retries, or storage, it gets awkward. Also, self-hosting is a big deal if you want unlimited runs. If you want help choosing, Talk to an automation expert and you’ll get a straight answer.

Once this is running, your “weekly trends” doesn’t depend on someone having a spare hour and the patience to format. The workflow handles the repetitive parts, so you can focus on what the trend means and what to do next.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal