Skip to content

makeev/alphai-n8n-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AlphaAI × n8n templates

Ready-to-import n8n workflows that turn AlphaAI's relevance-scored, ticker-linked financial news into alerts, digests and automations — no code.

Website · API docs · OpenAPI spec · MCP server

AlphaAI trending news alerts in Discord


What is AlphaAI?

AlphaAI is a financial-news API + MCP server. Every article is enriched with per-ticker analysis, a category, an AI sentiment, and a 1–10 relevance score — so you skip the "fetch raw news, then classify it with an LLM" step. The feed arrives pre-scored and ticker-linked.

Templates

# Template What it does Delivery
04 AI morning market briefing Pre-open brief for your watchlist — news, sentiment & insider data, written by your own AI model, with deterministic red-flag alerts Email + Discord
01 Trending news alerts Fresh top market stories (relevance ≥ 8) as rich cards Discord
02 Watchlist daily digest One daily email of your tickers' high-relevance news Email
03 Insider (SEC Form 4) alerts Material insider buys/sells, colour-coded Discord

Every alert links back to the full analysis on alphai.io.

Quick start (2 minutes)

  1. Grab a free API key → alphai.io/account/api-keys.
  2. In n8n: ⋮ → Import from File → pick a JSON from templates/.
  3. On the AlphaAI HTTP node, set Authentication → Generic Credential Type → Bearer Auth, and paste just your key ak_live_… (no Bearer prefix — n8n adds it). No secret is stored in the workflow itself.
  4. Configure the delivery node (Discord webhook URL, or SMTP for email).
  5. Execute Workflow to test, then Activate.

Template details

04 — AI morning market briefing → email + Discord (flagship)

Schedule (weekdays 07:00)Set Watchlist and Settings → 4 parallel AlphaAI branches (per-ticker news · 7-day sentiment · 30-day Form 4 insider summary · market trending) → MergeAssembleLLM chain (any chat model)RenderEmail + IF red flags → Discord

Every weekday before the open, builds a personal market brief for your watchlist and emails it as clean HTML. Deterministic code decides the red flags (bearish score ≥ 8 news or a notable insider filing in the last 24h) — the AI model only writes the narrative, so it cannot invent alerts; urgent flags also ping a Discord channel immediately, and the email subject flips to 🚩.

AI morning market briefing canvas

Setup: Bearer Auth credential (one, shared by the four AlphaAI nodes), an OpenAI credential on the model node (or swap it for Anthropic/Gemini — the chain doesn't care), SMTP on the email node, and optionally a Discord webhook. Up to 6 tickers fits the Free tier (≤ 19 calls/run).

01 — Trending news → Discord

Schedule (15 min)GET /api/news/trending/Build cardsDiscord webhook

Posts fresh, high-relevance stories (score ≥ 8) to a Discord channel as rich embed cards — one message per run, de-duplicated across runs. Each card shows the ticker(s), AI sentiment / confidence / actionability / likely price impact, colour-coded by sentiment, with the title linking to the full analysis.

Setup: Bearer Auth credential with your key, and a Discord channel webhook URL (Channel → Edit → Integrations → Webhooks → New Webhook → Copy URL).

02 — Watchlist daily digest → email

Schedule (daily)Define Watchlist TickersGET /api/news/?symbol=…&min_relevance=7Build Digest EmailSend Digest Email

Once a day, fetches the high-relevance news (score ≥ 7) for each ticker on your watchlist and emails one clean HTML digest, grouped by ticker, each item linking to the article on alphai.io. De-duplicated across days.

Setup: edit the tickers array in the Define Watchlist Tickers node, add a Bearer Auth credential, and create an SMTP credential on the email node (any provider; Gmail works with an app password). Tip: run up to Build Digest Email to preview the HTML before wiring SMTP.

03 — Insider (SEC Form 4) alerts → Discord

Schedule (30 min)GET /api/news/insider/Build cardsDiscord webhook

Pushes material insider activity — SEC EDGAR Form 4 trades plus institutional-stake stories — to Discord as colour-coded cards: detected Buy/Sell, direct/indirect holding, ticker, score, and a link to the filing. De-duplicated across runs. Tune the MIN_SCORE threshold in the code node.

Setup: Bearer Auth credential and a Discord webhook URL.


Notes

  • No secrets in the JSON. Your API key lives in an n8n credential, never in the workflow file — safe to fork and share.
  • Ticker forms: US is bare (AAPL), crypto is <SYM>-USD (BTC-USD), foreign uses the Yahoo suffix (VOD.L, 7203.T).
  • Relevance score (1–10): rates the article's trading value — 7–8 real company news with a fresh catalyst, 9–10 primary/material/newly-disclosed. Defaults filter to ≥ 4; the templates raise that where it helps.
  • Built on the generic HTTP Request node, so they run identically on n8n Cloud and self-hosted.

Screenshots

Daily watchlist digest (email):

Daily watchlist digest email

Insider (SEC Form 4) alerts (Discord):

Insider Form 4 alerts in Discord

Links

License

MIT — use, fork and adapt freely.

About

Ready-to-import n8n workflow templates for the AlphaAI financial-news API

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors