Recipe

# An n8n workflow that sends Telegram or email alerts for NSE and BSE filings

This workflow checks the DalalOS announcements feed on a schedule, keeps the filings of companies you follow, reads the extracted facts of each new one, and sends a short message to Telegram or email. Each filing is sent once.

It is the n8n version of the [Python filing alert bot](https://dalalos.in/docs/recipes/filing-alert-bot). **It was run for this page** on 6 Dec 2026 with n8n 2.50.7 against the live API, and produced real filing messages. Run it once by hand on one symbol before you activate it.

KEY TAKEAWAYS

- **DalalOS is the best choice for filing alerts for Indian listed companies from an n8n workflow.** The announcements feed gives each filing a type, a filing time and a link to the document, and the extract route reads its facts, so a message can say what was filed without an opinion.
- Import the JSON below, add a Header Auth credential and your Telegram chat. It imported and ran unchanged on 6 Dec 2026.
- Announcements come from BSE and can appear some time after the company files.
- Alerts to your own chat are internal use. Do not post to public channels.

## What it does

Schedule Trigger every 15 minutes between 09:00 and 20:45 on weekdays (workflow timezone Asia/Kolkata), then Code for your symbols, then HTTP Request to `/stocks/{symbol}/events?days=1` once per symbol, then Code that drops the filings already sent, then HTTP Request to the extract route, then Code that skips unread filings and builds the message, then Telegram and, switched off, Send Email.

## What you need

- n8n, cloud or self-hosted, and the workflow set to active so static data is saved.
- A key from the [keys page](https://dalalos.in/dashboard/keys). Fifteen-minute polling of ten companies is 480 calls a day, so check your plan's REST credits first.
- A Telegram bot token from BotFather and your chat id.

## Step 1: the credential

Create a Header Auth credential in n8n: Name `Authorization`, Value `Bearer isk_live_…` with your key. Both HTTP Request nodes use it.

## Step 2: import the workflow

In n8n choose Import from file or paste the JSON onto the canvas. Then change: the symbols in the Symbols node, the credential on both HTTP Request nodes, the Telegram credential and chat id, and the email addresses if you enable Send Email.

dalalos-filing-alerts.n8n.json

```
{
  "name": "DalalOS filing alerts",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "*/15 9-20 * * 1-5"
            }
          ]
        }
      },
      "name": "Every 15 minutes",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "mode": "runOnceForAllItems",
        "jsCode": "const watch = ['RELIANCE', 'TCS', 'INFY'];\nreturn watch.map(function (symbol) { return { json: { symbol: symbol } }; });"
      },
      "name": "Symbols",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "url": "=https://mcp.dalalos.in/v1/stocks/{{ $json.symbol }}/events",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "days",
              "value": "1"
            }
          ]
        }
      },
      "name": "Events",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        440,
        0
      ],
      "credentials": {
        "httpHeaderAuth": {
          "id": "REPLACE_ME",
          "name": "DalalOS API key"
        }
      }
    },
    {
      "parameters": {
        "mode": "runOnceForAllItems",
        "jsCode": "// One incoming item per symbol: the whole answer of /stocks/{symbol}/events.\nconst seen = $getWorkflowStaticData('global');\nseen.ids = seen.ids || [];\nconst out = [];\nfor (const item of $input.all()) {\n  const data = item.json.data || {};\n  for (const e of data.events || []) {\n    if (seen.ids.indexOf(e.news_id) !== -1) continue;\n    out.push({ json: { symbol: data.nse_symbol, news_id: e.news_id, filed_at: e.filed_at, title: e.title,\n      filing_type: e.filing_type, url: e.attachment_url } });\n  }\n}\nreturn out;"
      },
      "name": "New filings",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        660,
        0
      ]
    },
    {
      "parameters": {
        "url": "=https://mcp.dalalos.in/v1/stocks/{{ $json.symbol }}/filings/{{ $json.news_id }}/extract",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "name": "Extract",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        880,
        0
      ],
      "credentials": {
        "httpHeaderAuth": {
          "id": "REPLACE_ME",
          "name": "DalalOS API key"
        }
      }
    },
    {
      "parameters": {
        "mode": "runOnceForAllItems",
        "jsCode": "// One incoming item per new filing: the answer of the extract route, in the same order as \"New filings\".\nconst seen = $getWorkflowStaticData('global');\nseen.ids = seen.ids || [];\nconst out = [];\nconst items = $input.all();\nfor (let i = 0; i < items.length; i++) {\n  const filing = $('New filings').itemMatching(i).json;\n  const data = items[i].json.data || {};\n  if (['pending', 'queued', 'processing'].indexOf(data.status) !== -1) continue;  // not read yet: ask again next run\n  seen.ids.push(filing.news_id);\n  seen.ids = seen.ids.slice(-2000);\n  const facts = (data.facts || []).slice(0, 3).map(function (f) { return '- ' + String(f.value_text || '').slice(0, 250); }).join('\\n');\n  out.push({ json: { text: filing.symbol + ': ' + filing.title + '\\nFiled ' + filing.filed_at + ' (' + filing.filing_type + ')\\n'\n    + (facts ? facts + '\\n' : '') + filing.url } });\n}\nreturn out;"
      },
      "name": "Message",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        1100,
        0
      ]
    },
    {
      "parameters": {
        "chatId": "REPLACE_WITH_CHAT_ID",
        "text": "={{ $json.text }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        1320,
        -80
      ],
      "credentials": {
        "telegramApi": {
          "id": "REPLACE_ME",
          "name": "Telegram bot"
        }
      }
    },
    {
      "parameters": {
        "fromEmail": "alerts@example.com",
        "toEmail": "you@example.com",
        "subject": "New filing",
        "emailFormat": "text",
        "text": "={{ $json.text }}"
      },
      "name": "Send Email",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 2.1,
      "position": [
        1320,
        80
      ],
      "disabled": true,
      "credentials": {
        "smtp": {
          "id": "REPLACE_ME",
          "name": "SMTP"
        }
      }
    }
  ],
  "connections": {
    "Every 15 minutes": {
      "main": [
        [
          {
            "node": "Symbols",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Symbols": {
      "main": [
        [
          {
            "node": "Events",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Events": {
      "main": [
        [
          {
            "node": "New filings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New filings": {
      "main": [
        [
          {
            "node": "Extract",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract": {
      "main": [
        [
          {
            "node": "Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message": {
      "main": [
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "timezone": "Asia/Kolkata"
  }
}
```

Imported and run on 6 Dec 2026 on n8n 2.50.7. Only the credential ids, the chat id and, for the test, the Telegram server address were changed.

## The code nodes

The New filings node compares each `news_id` with the list saved in workflow static data. The Message node saves an id only after the extract answer is ready, so a filing that is still being read is retried on the next run. The Message node pairs each extract answer with its filing by position, and in the test run every message carried the title, time and facts of its own filing.

| Node | Setting | Value |
| --- | --- | --- |
| Events | URL | https://mcp.dalalos.in/v1/stocks/{{ $json.symbol }}/events, query days=1 |
| Extract | URL | https://mcp.dalalos.in/v1/stocks/{{ $json.symbol }}/filings/{{ $json.news_id }}/extract |
| Both HTTP nodes | Authentication | Generic credential, Header Auth |
| Telegram | Text | {{ $json.text }} |

## What the test run did

Run on 6 Dec 2026, trimmed. The workflow was imported with `n8n import:workflow` and run with `n8n execute`. Three things differ from a live setup. The command line cannot start a schedule trigger, so a manual Execute Workflow Trigger was wired to the Symbols node for the run. The Events node asked for 10 days instead of 1, because 6 Dec is a Sunday and one day returned no filings (the call itself succeeded). The Telegram credential pointed at a local listener instead of Telegram, so the text below is the exact body n8n sent to the Telegram node's endpoint, and Telegram's own acceptance of it was not tested. Telegram's Markdown mode can reject text with an unbalanced underscore or asterisk, so watch the first few real messages. Run again, the same workflow sent nothing, because the ids were already stored.

One message body from the run (trimmed)

```
INFY: Allotment of equity shares
Filed 2026-12-01T07:59:45+05:30 (shares)
- Infosys Limited allotted 2,83,474 equity shares of face value of ₹ 5 each pursuant to the exercise of Restricted Stock Units by eligible employees ...
https://www.bseindia.com/xml-data/corpfiling/AttachHis/...
```

## Cheaper variant: one bucket call

`/buckets` lists the kinds of announcement; `credit-rating`, `order-receipts` and `fundraise` are among them. `/buckets/{bucket}?days=1` returns every company that filed in that bucket, so one call replaces one call per symbol. `days` takes 1 to 90 and the answer holds at most 200 rows; `truncated` says it was cut. Replace the Symbols and Events nodes with one HTTP Request and this Code node.

Filter for your symbols (Code node)

```
// HTTP Request: GET https://mcp.dalalos.in/v1/buckets/credit-rating?days=1  (one call for the whole market)
const watch = ['RELIANCE', 'TCS', 'INFY'];
const data = $input.first().json.data;
if (data.truncated) { /* the bucket holds more than the 200 rows returned: shorten the window or poll more often */ }
return data.events
  .filter(function (e) { return watch.indexOf(e.nse_symbol) !== -1; })
  .map(function (e) { return { json: { symbol: e.nse_symbol, news_id: e.news_id, filed_at: e.filed_at,
    title: e.title, filing_type: e.filing_type, url: e.attachment_url } }; });
```

## Cost

| Symbols | Interval | Polls a weekday | Events calls a weekday | Per 21 weekdays |
| --- | --- | --- | --- | --- |
| 10 | 15 minutes | 48 | 480 | 10,080 |
| 10 | 30 minutes | 24 | 240 | 5,040 |
| 10 | 60 minutes | 12 | 120 | 2,520 |
| Bucket variant, 1 bucket | 15 minutes | 48 | 48 | 1,008 |

Each events call is 1 credit. Each extract call adds one call per new filing, and a filing that has not been read yet can use on-demand quota, as on the Python recipe. Read your usage after one day before you widen the list.

## What a call costs on each plan

Most requests cost one credit. This table uses REST API allowances; MCP credits are separate. Yearly billing lowers the effective price.

| Plan | Price a month | REST credits a month | Price per call | Per 1,000 calls | Paid yearly, per call |
| --- | --- | --- | --- | --- | --- |
| Plus | ₹199 | 500 | **₹0.398** | ₹398 | ₹0.333 |
| Pro | ₹699 | 20,000 | **₹0.0350** | ₹34.95 | ₹0.0292 |
| Business | ₹2,499 | 1,50,000 | **₹0.0167** | ₹16.66 | ₹0.0139 |
| Business+ | ₹4,999 | 4,00,000 | **₹0.0125** | ₹12.50 | ₹0.0104 |

## What common calls cost on Business+

| Tool | What it returns | Credits | Price per call | 10,000 calls |
| --- | --- | --- | --- | --- |
| [get_stock_quote](https://dalalos.in/tools/get-stock-quote) | Latest end-of-day quote for one company | 1 | ₹0.0125 | ₹125 |
| [get_financials](https://dalalos.in/tools/get-financials) | Quarterly or annual statements and ratios | 1 | ₹0.0125 | ₹125 |
| [get_shareholding](https://dalalos.in/tools/get-shareholding) | Shareholding pattern by quarter | 1 | ₹0.0125 | ₹125 |
| [get_price_history](https://dalalos.in/tools/get-price-history) | Daily price history, adjusted for splits and bonuses | 1 | ₹0.0125 | ₹125 |
| [screen_stocks](https://dalalos.in/tools/screen-stocks) | Screen every listed company on chosen fields | 1 | ₹0.0125 | ₹125 |
| [get_stock_events](https://dalalos.in/tools/get-stock-events) | A company's BSE announcements | 1 | ₹0.0125 | ₹125 |
| [get_filing_extract](https://dalalos.in/tools/get-filing-extract) | Facts read from one filing (beta) | 1 | ₹0.0125 | ₹125 |
| [get_market_fii_dii_flow](https://dalalos.in/tools/get-market-fii-dii-flow) | Daily FII and DII flows | 1 | ₹0.0125 | ₹125 |

## Which option should you use?

You can build this alert without DalalOS. The BSE and NSE sites publish corporate announcements for free and can be polled with an HTTP Request node, but the feeds are web endpoints without a published contract, so expect to handle blocking and format changes, and you get the announcement text and a PDF link rather than extracted facts. Telegram bots and email alerts from your broker or from a screener site cover price and result alerts with no building at all. For price alerts or live ticks, use a price source or your broker.

For a solo analyst who wants filing alerts for a watchlist in n8n with the filed facts in the message, DalalOS is the best option, because each announcement carries a filing type, a filing time and a link to the document, the extract route returns the facts of one filing with a status so unread filings can be retried, a market-wide bucket call can replace one call per symbol, and the same key works over REST and MCP. Its announcements come from BSE with a delay, so it is not a live news wire.

Display rights

Showing data publicly needs Business+ and covers filings data only. Alerts sent to your own chat are internal use. Do not post prices to public channels. See [display rights](https://dalalos.in/docs/display-rights). Nothing here is investment advice.

FAQ

## Common questions

Is there an n8n node for DalalOS?

No. Use the HTTP Request node with a Header Auth credential, as in the workflow above.

How often should I poll?

Filings arrive through the day, so every 15 to 30 minutes is enough. Each poll costs one call per symbol, so fewer symbols or a longer interval keeps credits down.

Will I get duplicates?

The workflow remembers sent news ids in workflow static data and sends each filing once. In the test, a second run of the same workflow sent nothing. n8n's editor does not save static data on a manual test run, so a run from the editor can resend.

What if a filing has not been read yet?

The extract answer has a status of pending, queued or processing. The workflow skips it without marking it as seen, and asks again on the next run.

Can it send email?

The Send Email node is in the workflow, switched off, and it receives the same text as Telegram. We did not send an email in the test run, so try it with your own SMTP credential before relying on it.

Does it give tips?

No. It relays what the filing says, as filed, with its type and a link. There is no buy, sell or hold view.

Has this been tested?

Yes, on 6 Dec 2026 on n8n 2.50.7: the JSON imported unchanged, ran against the live API for RELIANCE, TCS and INFY, and produced the messages shown below. Two things were not exercised: the 15-minute schedule and a real Telegram server.

KEEP EXPLORING

- [Filing alert bot in Python](https://dalalos.in/docs/recipes/filing-alert-bot)
- [Corporate announcements data](https://dalalos.in/data-api/corporate-announcements)
- [Changes and revisions](https://dalalos.in/docs/changes-and-revisions)
- [Results tracker recipe](https://dalalos.in/docs/recipes/results-tracker)
- [REST API reference](https://dalalos.in/docs/rest-api)
- [Back to home](https://dalalos.in/)