๐Ÿ“ˆ Control AlphaInsider stock and crypto portfolios from Telegram text and voice

โšก 239 views ยท ๐Ÿ“ˆ Crypto Trading & Stock Market

Description

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 (Text/Voice) โ†’ Transcribe (if voice) โ†’
Global Settings โ†’ Fetch Positions โ†’ AI Analysis โ†’ Route Action (Trade/Post/Q&A) โ†’
Execute โ†’ Reply (if DM)

Three AI Actions:

  1. Trade - Executes orders on AlphaInsider based on clear trading signals
  2. Post - Creates audience posts on AlphaInsider from commentary or analysis
  3. Q&A - Responds to direct questions about positions or trading

The AI agent analyzes messages with current portfolio context, determines intent, and routes to the appropriate action.

Prerequisites

Quick Setup

1. Configure Credentials

Telegram API:

OpenAI API:

AlphaInsider API:

2. Configure Workflow

Global Settings Node:

Channel Check Node (optional):

3. Activate

Toggle Active in the workflow editor. Your bot is now monitoring Telegram.

Features

Trading Logic

Trade Signals (action = trade):

Posts (action = post):

Q&A (action = none):

Allocation Rules:

Example Usage

Buy Signal:

Message: "Extremely bullish on Nvidia. Adding more NVDA"
Current: 50% TSLA
Result: 150% NVDA + 50% TSLA = 200%

Reallocation:

Message: "Selling Tesla to buy Microsoft"
Current: 100% TSLA
Result: 100% MSFT (TSLA closed)

Post to Audience:

Message: "Bitcoin breaking key resistance at $45k!"
Result: Post created on AlphaInsider

Position Query:

Message: "What are my current positions?"
Reply: "Your current positions are: TSLA:NASDAQ long 100%, MSFT:NASDAQ long 50%."

Supported Exchanges

Troubleshooting

IssueSolution
Webhook not triggeringVerify bot is admin in channel with correct permissions
AI not tradingEnsure messages contain clear action words (buying, selling, closing)
Trades not executingVerify AlphaInsider credentials and strategy_id
Voice messages failingCheck OpenAI API key in Transcribe Voice Message node
Wrong channel messagesUpdate channel_id in Channel Check node
Not replying to DMsVerify Telegram credentials in User Reply node

Customization

Open Parse Stock Allocations node to modify trading logic:

Disclaimer

Trading involves risk. Always test thoroughly before using with real money. Start with small allocations and security whitelists. Users are responsible for their own trading decisions and risk management.

๐Ÿ”— Nodes Used

HTTP Request, Telegram, Telegram Trigger, AI Agent, OpenAI Chat Model, Simple Memory

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup