See llms.txt for all machine-readable content.
This workflow runs weekly to scan a Google Sheets dividend watchlist, pulls upcoming ex-dividend and fundamentals data via HTTP requests, scores yield-trap risk, uses OpenAI to explain high-risk candidates, stores results in Google Sheets and Supabase, and sends a digest to Slack and Gmail.
Modify the Read Dividend Watchlist and Prepare Watchlist Context nodes if the spreadsheet structure changes.
The enabled-record logic is contained in Prepare Watchlist Context.
Modify Get Upcoming Ex-Dividend Data1 and Get Dividend Fundamentals1 when replacing the configured HTTP endpoints with another data provider.
Make sure the replacement API returns the fields required by the downstream Code nodes.
Customize Calculate Dividend Sustainability1 if the scoring methodology needs to change.
The current calculation considers:
Customize Calculate Yield Trap Risk1 to change the risk scoring methodology or risk-level boundaries.
The current threshold for further analysis is configured in Risk Above Threshold.
Modify Identify Yield Trap Red Flags1 when adding or removing dividend sustainability warning conditions.
Modify Message a model to change the OpenAI model or adjust the generated caution analysis.
The expected output structure should remain compatible with Normalize AI Response.
Modify Log Flagged Risks to Google Sheets if the Risk Results spreadsheet structure changes.
Modify Store Flagged Risks in Supabase if the Supabase table or database field names change.
Modify the Slack and Gmail nodes if the notification destination changes.
The workflow currently sends separate notifications for flagged-risk and no-risk executions.
The workflow can be extended with additional capabilities while keeping its current processing structure.
Replace the configured HTTP endpoints with a production dividend calendar and fundamentals provider.
Store previous risk scores and compare them with the current scan to identify improving or worsening dividend sustainability.
Add logic to notify stakeholders when a stock's risk score increases significantly compared with the previous scan.
Additional n8n notification integrations can be added if risk alerts need to reach other communication systems.
Additional financial indicators can be introduced into the scoring and AI analysis stages when the upstream data source provides them.
Automatically review enabled stocks every week and identify candidates that reach the configured dividend risk threshold.
Use payout ratio, earnings growth, revenue growth, dividend growth, and dividend history to identify potential sustainability concerns.
Identify stocks where unusually high dividend yields are accompanied by other warning signals.
Highlight stocks with previous dividend cuts and combine that information with other fundamental indicators.
Generate concise AI-based caution notes, key concerns, and investor questions for stocks requiring additional review.
These are the primary use cases, but the workflow can support additional dividend monitoring and financial screening scenarios by extending its data sources, scoring rules, storage, and notification logic.
| Issue | Possible Cause | Solution |
|---|---|---|
| No stocks are processed | No watchlist records are enabled | Verify the enabled field contains true, yes, 1, or Boolean true. |
| No dividend candidates are returned | Dividend dates are outside the workflow's seven-day filtering window | Verify the dividend calendar response and the configured ex-dividend dates. |
| Fundamentals are missing | The fundamentals endpoint did not return matching symbols | Confirm that the fundamentals response contains the same symbols returned by the dividend calendar. |
| Risk scores are unexpectedly low | Fundamental values may be missing or returned with unexpected formats | Check payout ratio, growth, dividend, and risk-related fields returned by the API. |
| No OpenAI analysis is generated | The stock did not meet the configured risk threshold | Check the Risk Above Threshold condition and the calculated risk score. |
| AI fields are empty | The OpenAI response is not valid JSON or does not contain the expected fields | Review the Message a model output and confirm that it returns caution_note, key_concern, and investor_question. |
| Google Sheets records are not saved | Google credentials or sheet configuration is incorrect | Verify the Google Sheets credential, spreadsheet ID, sheet name, and column mappings. |
| Supabase records are not saved | Supabase credentials or table configuration is incorrect | Verify the Supabase credential and confirm that dividend_risk_analysis contains the required fields. |
| Slack notification fails | Slack credentials or channel configuration is incorrect | Verify the Slack credential and configured channel ID. |
| Gmail notification fails | Gmail credentials or recipient configuration is incorrect | Verify the Gmail OAuth credential and configured recipient address. |
| No-risk digest is generated unexpectedly | No record has a risk score of 60 or higher | Review the calculated risk scores and the Risk Above Threshold condition. |
| HTTP Request nodes fail | The configured endpoint is unavailable or inaccessible | Confirm that the endpoint is running and reachable from the n8n environment. |
The workflow can be customized for different data providers, dividend screening rules, risk thresholds, databases, spreadsheets and notification requirements. Additional automation can also be added for historical analysis, advanced risk monitoring, alerts, reporting and other financial research workflows. For help with workflow setup, integration, customization, troubleshooting or building similar n8n automations, contact WeblineIndia.