n8n

How to Automate Gmail Trend Insights?

Get web trend data turned into a clear email summary. Built for marketing and content teams that watch online interest and need fast updates they can trust.

The flow starts when you click Test workflow. A Set node holds the target page and your Bright Data zone. A web request goes to Bright Data Web Unlocker to fetch the page. Google Gemini converts the page into clean text, then an information extractor pulls structured fields like topics and descriptions using a defined schema. A webhook call sends a quick status update. The data is saved to disk as a JSON file. A second Gemini step creates a short summary. Another webhook sends a final status. Gmail then delivers the summary to your inbox.

Use this build to track Google Trends or other pages that need an unlocker. Add your own URL and zone, and replace the webhook links with your own. Expect faster research, fewer copy and paste steps, and cleaner results. Teams can use it for content planning, seasonal campaigns, or quick market checks. Once set, it can be reused for new sources with only small changes.

What are the key features?

  • Bright Data web request fetches pages that need an unlocker and returns raw content
  • Markdown to text conversion cleans the page into plain text for easier parsing
  • Structured data extraction uses a schema to capture topics and descriptions
  • Gemini model supports both extraction and summarization with one credential
  • Webhook notifications send progress updates after key steps
  • File writer saves the extracted JSON to disk for records or later use
  • Gmail node emails the final summary to chosen recipients
  • Set node stores the target URL and Bright Data zone for simple edits

What are the benefits?

  • Reduce manual research from 2 hours to 5 minutes per report
  • Automate about 80 percent of data collection and formatting
  • Improve data accuracy by removing copy and paste errors
  • Handle more sources without extra staff time
  • Connect Bright Data, Google Gemini, Webhook.site and Gmail in one place

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Google Gemini, Bright Data, Gmail and Webhook.site. See the Tools Required section above for links to create accounts with these services.
  3. Open the Set URL and Bright Data Zone node and enter your target page URL and your Bright Data zone name. Save the node.
  4. Configure Bright Data: In the n8n credentials manager, create a new HTTP Header Auth credential. Add your Bright Data Authorization header or token. Return to the Perform Bright Data Web Request node and select this credential.
  5. Connect Google Gemini: Double click each Gemini node. In the Credential to connect with dropdown, click Create new credential, choose Google Gemini PaLM API, and add your API key. Select the model models gemini 2.0 flash exp.
  6. Update webhook monitoring: In both webhook request nodes, paste your unique Webhook.site URL. Click Test in Webhook.site to see incoming events during runs.
  7. Set file output: Open Write the file to disk and choose a path the n8n host can write to. Use a .json extension. Save the node.
  8. Authorize Gmail: Open the Send Summary to Gmail node. Create a new Gmail OAuth2 credential and allow email send permission. Set To, Subject, and message fields.
  9. Run a test: Click Test workflow. Confirm Webhook.site receives two events, a JSON file is created on disk, and the summary email arrives in your inbox.
  10. Tune extraction: In the Structured Data Extractor node, adjust the schema fields if your target page uses different labels. Keep topics and desc if you follow the current pattern.
  11. Check Bright Data errors: If the request fails, verify the zone name, plan access to Web Unlocker, and that the header token is valid.
  12. Gmail or model issues: If the email does not send, recheck Gmail scopes. If the model is not available, pick another Gemini chat model from the list and test again.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Bright Data

Sign up

Pay as you go: $1.5 per 1K records (Web/LinkedIn Scraper API)

Gmail

Sign up

No cost: Personal Gmail (Gmail API has no usage-based pricing; quotas apply)

Google Gemini

Sign up

Free tier: $0 via Gemini API; e.g., Gemini 2.5 Flash-Lite free limits 1,000 requests/day (15 RPM, 250k TPM). Paid from $0.10/1M input tokens and $0.40/1M output tokens.

Webhook.site

Sign up

Free tier: $0, public API available; free URLs expire after 7 days and accept up to 100 requests

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.