Extract and Summarize Google Trends with n8n & Bright Data

This workflow extracts Google Trend data using Bright Data’s web unlocker and summarizes it with Google Gemini AI. It automates data extraction, structured transformation, and insightful summarization to save hours on manual research and reporting.
manualTrigger
httpRequest
lmChatGoogleGemini
+7
Workflow Identifier: 1642
NODES in Use: Manual Trigger, Sticky Note, Set, HTTP Request, Chain LLM, Information Extractor, Function, Read Write File, Gmail, LM Chat Google Gemini
Automate Google Trends with n8n and Bright Data

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

Learn how to Build this Workflow with AI:

1. What This Workflow Does

This workflow fetches Google Trends data focused on YouTube automatically.
It solves the problem of slow, manual copying and messy data from the web.
The result is a clean JSON file and a short summary emailed straight to users.

The workflow takes a URL for YouTube trends, pulls markdown data using Bright Data’s web unlocker, turns it into plain text, then extracts important topics and descriptions in JSON.
Then, it summarizes this data using Google Gemini AI and emails the summary with files saved locally.


2. Tools and Services Used

  • n8n: Main automation platform to run the workflow.
  • Bright Data Web Unlocker API: Scrapes Google Trends pages with bypass technology.
  • Google Gemini AI (Palm API): Converts markdown to text, extracts structured data, and summarizes results.
  • Gmail API: Sends the summary email to recipients.
  • Local File System: Stores extracted JSON data for record keeping.

3. Workflow Inputs, Processing, and Outputs

Inputs

  • Google Trends URL: Set to focus on YouTube trends by default.
  • Bright Data API Key: Needed for web scraping requests.
  • Google Palm API Key: Required for AI text processing.
  • Gmail OAuth2 Credentials: Needed to send emails.

Processing Steps

Outputs

  • JSON file: Stored locally with extracted trend data.
  • Email summary: Sent directly to specified email address.
  • Webhook notifications: Sent at key steps for logging or alerts.

4. Beginner Step-by-Step: How to Use this Workflow in n8n

Import and Setup

  1. Download the workflow file using the Download button on this page.
  2. Open the n8n editor and select “Import from File” from the menu.
  3. Choose the downloaded workflow file to import it into n8n.
  4. After import, open the credentials section and add:
    • Bright Data API Key with HTTP Header Authentication.
    • Google Palm API credentials for Google Gemini AI.
    • Gmail OAuth2 credentials for sending emails.
  5. Open the node Set URL and Bright Data Zone.
    Update the Google Trends URL if needed or keep the default YouTube trends URL.
    Confirm the Bright Data zone is correct.
  6. Check the email recipient in the Send Summary to Gmail node and change the address if needed.

Testing and Activation

  1. Click “Execute Node” on the manual trigger node named When clicking ‘Test workflow’ to start the workflow.
  2. Confirm the workflow runs without errors and the JSON file is saved locally.
  3. Check email for the summary message.
  4. If the test is successful, activate the workflow by setting it to active in n8n.
  5. Optionally, set up a schedule trigger or external event trigger for automatic runs.

For users running self-host n8n, ensure n8n has file write permission and internet access to APIs.


5. Customizations and Tips

  • Change Target URL: In the Set URL and Bright Data Zone node, swap the URL to get trends from other Google Trend categories or locales.
  • Adjust Data Schema: Edit the JSON schema in the Structured Data Extractor node to include extra fields like traffic or timestamps.
  • Webhook URLs: Replace the current HTTP webhook URLs with own services or Slack webhooks to get notifications.
  • Email Recipients: Add multiple email addresses in the Send Summary to Gmail node for group reporting.
  • File Storage Path: Change the file path in the Write the file to disk node to fit system environment.

6. Common Issues and Troubleshooting

401 Unauthorized on Bright Data Web Request

This usually means the Bright Data API Key is wrong or expired.
Check and update HTTP Header Auth credentials with valid API Key.

Unexpected output from Markdown to Textual Data Extractor

This happens if AI prompt is unclear or markdown data is missing or invalid.
Try refining the prompt or ensure the Bright Data node returns fresh markdown.

Local file not written

Could be lack of write permission or wrong file path in Write the file to disk.
Make sure file system allows write and path is valid for the machine running n8n.


7. Final Thoughts and Results

The workflow turns complex manual work into simple automated steps.
It produces structured Google Trends data in JSON and concise email summaries without manual copying.

✓ Saves 3-4 hours weekly.
✓ Generates error-free data.
✓ Delivers fresh trend summaries by email fast.
✓ Stores local files for audit.

→ Easy to update for other trends or notifications.
→ Makes YouTube-focused trend insights quick and reliable.

Automate Google Trends with n8n and Bright Data

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Download the workflow file. Import it in the n8n editor using ‘Import from File’. Add required API keys and credentials. Update the Google Trends URL or email if needed. Test by running the manual trigger node once. Activate the workflow for production use.
The workflow requires a Bright Data API Key for web scraping, Google Palm API credentials for AI text processing, and Gmail OAuth2 credentials for sending emails.
Check the Bright Data HTTP Header Authentication credentials. Ensure the API Key is entered correctly and is not expired. Re-enter the valid API Key in the n8n credentials section.
Modify the JSON schema in the Structured Data Extractor node by adding new fields like traffic or location. Adjust the Google Trends URL in the Set URL node to target different data sources.

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.