Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / Email Automation

Email Automation

Detect NSE options anomalies with Supabase, OpenAI, Google Sheets and Gmail

On a schedule, it handles email with OpenAI / ChatGPT using Gmail, Google Sheets, Supabase.

What it does

# NSE Options Anomaly Detection and Alert Workflow ## How Workflow Works The workflow automatically monitors NSE option contracts according to the configured schedule and watchlist. It first reads enabled symbols from Google Sheets and fetches their option chain data through the configured data endpoint. The returned contracts are normalized and compared against historical option data stored in Supabase. The workflow calculates volume ratios, open interest ratios, and z scores before filtering contracts that meet the anomaly conditions. Detected anomalies are stored as snapshots, analyzed by OpenAI, and saved with their AI interpretation in Supabase. The same anomaly records are logged into Google Sheets for reporting and tracking. Finally, all anomalies from the execution are combined into one Gmail digest containing the complete contract information and AI analysis. ## Setup Steps Configure the Google Sheets watchlist with symbols, exchange, scan mode, strike count, and enabled status. Configure the option chain HTTP endpoint and ensure it returns the expected NSE option contract fields. Create and configure the Supabase option snapshot and anomaly tables and connect the Supabase credentials. Configure the anomaly calculation thresholds and historical comparison logic according to your monitoring requirements. Connect the OpenAI, Google Sheets, Supabase, and Gmail credentials and verify that anomaly records are saved correctly. Set the scanner schedule, execute a test run, verify the Supabase and Google Sheets records, and confirm that all detected anomalies arrive in one Gmail digest.

The steps

  1. Market Scanner Schedule
  2. Read NSE Watchlist
  3. Prepare Watchlist Symbols
  4. Fetch NSE Option Chain
  5. Normalize Option Contracts
  6. Fetch Historical Option Data
  7. Calculate Option Anomaly
  8. Filter Anomalous Contracts
  9. Save Option Snapshot
  10. Generate AI Anomaly Interpretation
  11. Save Anomaly Analysis
  12. Log Anomaly to Google Sheets
  13. Build Email Alert Digest
  14. Send Gmail Anomaly Digest

Similar automations