Control AlphaInsider stock and crypto portfolios from Telegram text and voice
Ready for 3.0What this workflow does
This AI workflow has 22 nodes and runs on Telegram events (message, channel post). Along the way it connects OpenAI, Telegram, OpenAI Chat Model and HTTP Request. It also calls alphainsider.com over HTTP.
How it runs
Trigger: On Telegram events (message, channel post).
- Message Check (Switch): routes items into 2 branches
- Message Details (Edit Fields (Set)): sets 2 fields: session_id, message
- Channel Check (If): checks a condition and branches into true / false
- Message Details Check (Switch): routes items into 2 branches
- Global Settings (Edit Fields (Set)): sets 4 fields: session_id, input, strategy_id…
- Get Voice Message (Telegram): work with file
- Get Positions (HTTP Request): calls alphainsider.com
- Transcribe Voice Message (OpenAI): transcribe (audio)
- Parse Position Percents (Code): runs custom JavaScript code
- Parse Stock Allocations (AI Agent): runs an AI agent, with model: OpenAI Model; 2 tools (Calculator, Search Stocks); memory: Simple Memory; output parser: ParseOutput
…plus 6 more steps. See the full node list below.
Services it uses
HTTP calls to: alphainsider.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 (14)
- OpenAI
@n8n/n8n-nodes-langchain.openAi - Telegram
n8n-nodes-base.telegram - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Http Request Tool
n8n-nodes-base.httpRequestTool - Calculator
@n8n/n8n-nodes-langchain.toolCalculator - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Telegram Trigger
n8n-nodes-base.telegramTrigger
From the author
AlphaInsider Telegram Chat Bot Automate trading on AlphaInsider by monitoring Telegram messages. Uses AI to analyze signals and execute trades, create posts, or answer questions. How It Works Message Flow: Telegram → Route (DM/Channel) → Detect Type…