Block 1 - Simple Memory
- Type / Role
- @n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
- Config choices
- Version 1.3
This workflow is provided as-is. Please review and test before using in production.
Workflow Documentation – Stock Market Daily Digest Introduction Wake up to a clean, analyst style stock digest in your i...
@n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.scheduletrigger, n8n-nodes-base.set, n8n-nodes-base.splitout, n8n-nodes-base.httprequest, n8n-nodes-base.switch, n8n-nodes-base.wait
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Baptiste Fort.
Original n8n.io sourceWake up to a clean, analyst-style stock digest in your inbox—top gainers/losers, a readable performance table, 3–5 insights, and upcoming events—no spreadsheets, no manual scraping, no copy-paste.
This article explains, step by step, how to build a robust, daily, end-to-end automation that collects market data (Bright Data), waits until scraping is done, aggregates results, asks an AI model (OpenAI) to draft a styled HTML email, logs everything to Airtable, and finally sends the report via Gmail.
You’ll find a friendly but technical tour of every single node, so you can rebuild or adapt the same pipeline with confidence.
Daily Stocks| Ticker | Company | Price | Change % | Sentiment | Date |
|---|---|---|---|---|---|
| AAPL | Apple Inc. | 225.80 | +1.4% | 🟢 Positive | 2025-09-18 09:00 |
| MSFT | Microsoft Corporation | 415.20 | -0.7% | 🔴 Negative | 2025-09-18 09:00 |
| NVDA | NVIDIA Corporation | 124.55 | +2.1% | 🟢 Positive | 2025-09-18 09:00 |
| TSLA | Tesla Inc. | 260.00 | -3.0% | 🔴 Negative | 2025-09-18 09:00 |
| META | Meta Platforms Inc. | 310.45 | +0.5% | 🟡 Neutral | 2025-09-18 09:00 |
> Keep API keys in n8n Credentials (never hard-code secrets).
Start the automation at a precise time each day so nobody needs to push a button.
Time Interval or Cron 1 Day (or your preferred cadence) UTC (or your own) 09:00)Define the universe of stocks to monitor. This acts as the seed data for scraping.
Fixed JSON (array of objects) true ticker, name, market_cap (you may add sector, isin, etc.)Turn the array into individual items so each ticker is processed independently (scraping, polling, results).
Split Out Items Create a keyword field (typically equal to ticker) for Bright Data discovery.
Add Field keyword {{ $json.ticker }})Trigger the Bright Data dataset to start collecting information for the keyword. Returns a snapshot_id to poll later.
POST https://api.brightdata.com/datasets/v1/trigger Authorization: Bearer <token> (header) dataset_id: your Bright Data dataset ID discover_by: usually keyword keyword: the value prepared above> Add a retry/backoff policy on 429/5xx in node options.
Poll Bright Data to see whether the snapshot is running or ready.
GET https://api.brightdata.com/datasets/v1/snapshots/{snapshot_id} Authorization: Bearer <token> status field (running, ready)Pause between progress checks to avoid rate limits and give Bright Data time to finish.
Wait a fixed amount of time 30 seconds (tune to your dataset size)Route logic based on the polled status.
status running → go to Wait for Data (then re-check) ready → proceed to Fetch Scraper Results> Loop pattern: Check → Wait → Check, until ready.
Download the completed snapshot data once Bright Data marks it ready.
GET https://api.brightdata.com/datasets/v1/snapshots/{snapshot_id}/data Authorization: Bearer <token> format=json > Normalize fields with a Set/Code node if needed.
Combine all individual items into one consolidated object so the AI can analyze the entire market snapshot.
Aggregate (merge to a single item) ticker, name, price, change, sentiment (plus any extra fields captured) Ask the model to convert raw data into a styled HTML email: headline, top movers, table, insights, and (optional) upcoming events.
output, message, text)Log each item (or the roll-up) to Airtable for history, filtering, and dashboards.
Create Record Daily Stocks Ticker ← {{ $json.ticker }} Company ← {{ $json.name }} Price ← {{ $json.price }} Change % ← {{ $json.change }} Sentiment ← {{ $json.sentiment }} Date ← {{ $now.toISO() }}> Use a Single-Select for Sentiment (🟢 / 🟡 / 🔴) to build clean Airtable views.
Deliver the AI-generated HTML digest to your recipients.
Send Email [email protected]) Daily Stock Market Digest – {{ $now.format("yyyy-MM-dd") }} {{ $('Generate Daily Summary').first().json.output }}) false (keep the email clean)> Test in Gmail, Outlook, and mobile to validate inline CSS.
%, cast numbers to float before insert. For advanced no-code & AI projects, see 0vni – Agence automatisation.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
Showing the first 24 of 27 workflow blocks. Download the JSON for the full node graph.
| Workflow | Automated daily stock market report with Bright Data, GPT-4.1, Airtable/Gmail |
|---|---|
| Complexity | advanced |
| Nodes | 27 |
| Categories | Crypto Trading, Multimodal AI |
| Author | Baptiste Fort |
| Published | 18 Sept 2025 |
Use the JSON export at /data/workflows/8724/8724.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Workflow Documentation – Stock Market Daily Digest Introduction Wake up to a clean, analyst style stock digest in your i...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Crypto Trading, Multimodal AI use case.