n8nflow.net logo

Automated Multi-Agent Trading Analysis with GPT-5, Telegram, Coinbase & Notion

by Tegar karunia ilhamโ€ขUpdated: Last update 16 days agoโ€ขSource: n8n.io

Getting Started

๐Ÿš€ Overview

This modern n8n workflow implements a multi-agent trading engine that orchestrates valuation, sentiment, fundamentals, technicals, and macro analyses to generate a single portfolio action with built-in risk controls. It integrates Telegram for live commands, fetches market data, fans out to expert LLM agents, applies position limits via a Risk Manager, executes orders, logs to Notion, and sends a summary back to Telegram.

๐Ÿ”ง What It Does

  • Telegram Trigger listens for ticker commands and context inputs ๐Ÿ“ฒ
  • Market Data Node fetches live prices and exchange rates from an API (no hardcoded keys) ๐Ÿ”—
  • LLM Agents run parallel analyses: valuation, sentiment, macro, fundamentals, technicals ๐ŸŒ
  • Risk Manager enforces max position sizes, stop-loss limits, and confidence thresholds โš–๏ธ
  • Portfolio Manager aggregates signals into a final BUY/SELL/HOLD decision with allocation % ๐Ÿ“Š
  • Execute Order sends trade requests via HTTP Request ๐Ÿ”’
  • Log to Notion writes a full audit trail for compliance ๐Ÿ““
  • Telegram Output posts a concise report with signals, risk notes, and final decision ๐Ÿ“ค

๐Ÿ’ก Why Itโ€™s Useful

This template illustrates a modular โ€œinvestment committeeโ€ architecture that is easy to extend, swap agents, and maintain. It follows n8nโ€™s best practices for template submissions: sticky-note documentation, placeholder credentials, markdown descriptions, and clear H2 headings.

๐Ÿ”‘ Prerequisites

  • Telegram Bot credentials configured in n8n
  • Exchange or data API credentials stored as n8n Credentials (no inline keys)
  • OpenAI (or other LLM) API credential
  • Notion integration credentials

๐Ÿ› ๏ธ How to Use

  1. Import the JSON into n8n and open the canvas.
  2. Read each Sticky Note for node-by-node setup tips and rate-limit guidance ๐Ÿ—’๏ธ
  3. Configure credentials via the n8n Credentials Manager ๐Ÿ”
  4. Test each branch (data fetch, agents, risk logic) in isolation before enabling order execution โœ…

๐Ÿ“ Architecture Layers

  • Trigger : Telegram Trigger โ†’
  • Data : HTTP Request โ†’
  • Analysis : Parallel LLM Agents โ†’
  • Risk : Risk Manager โ†’
  • Decision : Portfolio Manager โ†’
  • Action : Execute Order, Log to Notion, Send Telegram summary

๐Ÿ”’ Security & Maintenance

All API keys are stored securely as credentials. Sticky Notes document required scopes, retry strategies, and error-handling paths to ensure observability and safe testing.

Enjoy building and customizing your own AI-powered hedge-fund workflow!