Send AI market briefings to email and Discord with AlphaAI and GPT-4
Ready for 3.0What this workflow does
This AI workflow has 15 nodes and runs on a schedule (cron 0 7 * * 1-5). Along the way it connects OpenAI Chat Model. It also calls api.alphai.io and discord.com over HTTP.
How it runs
Trigger: On a schedule (cron 0 7 * * 1-5).
- Set Watchlist and Settings (Edit Fields (Set)): sets 3 fields: watchlist, min_relevance, urgent_min_score
- Fetch Trending Market News (HTTP Request): calls api.alphai.io
- Split Watchlist by Ticker (Code): runs custom JavaScript code
- Merge: merges the data from its input branches
- Fetch Ticker News (HTTP Request): calls an HTTP API
- Fetch 7-Day Sentiment (HTTP Request): calls an HTTP API
- Fetch 30-Day Insider Activity (HTTP Request): calls an HTTP API
- Assemble Briefing Data (Code): runs custom JavaScript code
- Write the Brief with AI (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
- Render Email and Alerts (Code): runs custom JavaScript code
…plus 3 more steps. See the full node list below.
Services it uses
HTTP calls to: api.alphai.io, discord.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Send Email
n8n-nodes-base.emailSend - If
n8n-nodes-base.if
From the author
Quick Overview This workflow runs every 15 minutes to fetch AlphaAI’s trending market news, filter for new high-relevance, ticker-linked stories, and post them to a Discord channel via webhook as rich embed cards with sentiment and impact details. How it…