This workflow automates the generation of a daily stock market report, identifying the top gainers and losers among the top 100 stocks. It fetches real-time stock data, processes it to highlight significant price movements, and delivers formatted alerts via WhatsApp and email.
Quick Notes
- Ensure the Twelve Data API key and stock symbols are correctly configured.
- Verify recipient lists for WhatsApp and email alerts are up-to-date.
- Confirm the workflow triggers at 5:00 PM (IST) from Monday to Friday.
Process Flow
- Trigger the workflow daily at 5:00 PM (IST) with the
Daily Market Change Trigger
node.
- Configure API key, stock symbols, and alert recipients using the
Configuration Variables
node.
- Fetch stock data from Twelve Data API with the
Fetch Stock Data from Twelve Data
node.
- Process stock data to identify top gainers and losers with the
Process Stock Movements
node.
- Format WhatsApp messages with the
Format WhatsApp Message
node.
- Send WhatsApp alerts with the
Send WhatsApp Alert
node.
- Format email content with the
Format Email Content
node.
- Send email alerts with the
Send Email Alert
node.
Output

Getting Started
- Import the workflow into n8n and configure Twelve Data API credentials.
- Set up WhatsApp and email service integrations.
- Run a test execution to ensure data fetching and alert delivery work as expected.
Tailored Adjustments
- Adjust the
Process Stock Movements
node to change the number of top gainers/losers.
- Modify the
Configuration Variables
node to include additional stock symbols or recipient lists.