Stock market daily digest with Bright Data scraping & Gemini AI email reports
This workflow makes it easier to keep track of the stocks market and get an email with a summary of the daily highlights on what happened, key insights and trends Setup Guide 1. Define the schedule (days, times, inter...
Template notes
This workflow makes it easier to keep track of the stocks market and get an email with a summary of the daily highlights on what happened, key insights and trends
Setup Guide
1. Define the schedule (days, times, intervals). 2. Replace sample stock data with your desired stock list (ticker, name, etc.) in JSON format. 3. Split Out the fields to have a clean list of the stocks to monitor 4. set keyword node Extracts the stock ticker from each item and sets it to the keyword property. 5. Financial times scraper Triggers the Bright Data Datasets API to scrape financial data. Set the node as below
Method: POST URL: https://api.brightdata.com/datasets/v3/trigger Query Parameters: datasetid: Replace with your Bright Data dataset ID. includeerrors: true type: discovernew discoverby: keyword Headers: Authorization: Bearer YOURBRIGHTDATAAPIKEY Replace with your Bright Data API key. Body: JSON, ={{ $('set keyword').all().map(item => item.json)}} Execute Once: Checked. 6. Get progress node Checks the status of the Bright Data scraping job if complete, or running Setup: URL: https://api.brightdata.com/datasets/v3/progress/{{ $json.snapshotid }} Headers: Authorization: Bearer YOURBRIGHTDATAAPIKEY Replace with your Bright Data API key.
7. Get snapshot + data retrieves the scraped data from the Bright Data API. Pass the request as URL: https://api.brightdata.com/datasets/v3/snapshot/{{ $json.snapshotid }} Query Parameters: format: json Headers: Authorization: Bearer YOURBRIGHTDATAAPIKEY Replace with your Bright Data API key.
8. Aggregate. Combines the data from each stock item into a single object 9. Update to sheet and add all items to [This sheet](https://docs.google.com/spreadsheets/d/1I5CvpHlmDsIFOfnGg4DEtniem0oTiumWWzGs4CV6AuM/edit?usp=sharing). Make a copy before you can map the data
10. create summary node generates a summary of the scraped stock data using the Google Gemini AI model and notifies you via Gmail. Setup: Prompt Type: define Text: Customize the prompt to define the AI's role, input format, tasks, output format (HTML email), and constraints. 11. Google Sheets. Appends the scraped data to a Google Sheet. This should be set to automap so as to adjust to the results found in the request
Important Notes: