Email News Briefing by Keyword from Bright Data with AI Summary - n8n Workflow | Neura Market
Email News Briefing by Keyword from Bright Data with AI Summary
This n8n workflow automatically retrieves recent Reuters news articles related to a user-specified keyword, summarizes the main findings using Google Gemini, formats the output into styled HTML, and sends a clean email report to a specified address.
**What It Does**
- Collects news data from Bright Data's Reuters dataset.
- Sorts and filters the top 10 most recent news articles by publication date.
- Sends structured news data to Gemini Flash for summarization.
- Converts Gemini's response (in Markdown) into styled HTML.
- Delivers a concise news briefing via email, including clickable source links and topic highlights.
**Step-by-Step Setup**
1. User Form: Accepts a keyword from the user via an n8n form trigger.
2. Bright Data API: Posts a discover_new request to Bright Data's Reuters dataset using the keyword.
3. Snapshot Polling: Waits and checks for dataset readiness using the snapshot ID.
4. Data Retrieval: Downloads the news data once the snapshot is complete.
5. Parsing: Filters and sorts the latest 10 articles using a Python Code node.
6. AI Analysis: Google Gemini summarizes the filtered content into one briefing.
7. Markdown to HTML: Converts AI response into styled HTML using Markdown + Code node.
8. Email Delivery: Sends the briefing as an email to a predefined recipient.
**How It Works**
- Polling Control: Uses Wait and If nodes to handle Bright Data snapshot readiness.
- Date Sorting: Publication dates (ISO 8601 format) are parsed and used for sorting.
- AI Summarization: Gemini condenses multiple articles into one cohesive summary.
- Formatting: Clean HTML with readable styles is generated dynamically before sending.
**Final Output**
The email includes:
- A brief summary of the most important developments
- Date range of the collected news
- Topics covered
**Credentials Used**
- **Bright Data API** (replace YOUR_API_KEY in the HTTP nodes)
- **Google Gemini** (Flash) API
- **Email SMTP** (configured in Email Send node)
**Notes**
- You must replace all **YOUR_API_KEY** placeholders in Bright Data request headers with your actual Bright Data API key.
- You can customize the keyword prompt and output style freely.
- I would recommend keeping the sort = relevance option for best chronological results - sorting by date is handled later.
Platform
n8n
Category
Communication
Price
Free
Creator
Gleb D
if
code
wait
markdown
emailSend
stickyNote
formTrigger
httpRequest
chainLlm
lmChatGoogleGemini
How to import this workflow into n8n
1Purchase or download the workflow to get the n8n workflow JSON file.
2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
3Open each node marked with a credential warning and connect your own accounts and API keys.
4Run the workflow once manually to verify the data flow, then toggle it to Active.