Forex AI trading assistant for Telegram using chatGPT-4o (with Position Sizing)
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 40 nodes and runs on Telegram events. Along the way it connects Telegram and OpenAI Chat Model.
How it runs
Trigger: On Telegram events.
- set credentials and params (Edit Fields (Set)): sets or maps fields
- react to message (HTTP Request): calls an HTTP API
- Trading Assistant Classifier & Responder (Basic LLM Chain): sends a prompt to an LLM, with model: 4o mini
- parse LLM output (Code): runs custom JavaScript code
- Switch: routes items into branches
- parse if AI says content is complete (Code): runs custom JavaScript code
- respond to query (Telegram): uses Telegram
- ai agent instructions (Edit Fields (Set)): sets or maps fields
- HTTP get pending signals (HTTP Request): calls an HTTP API
- Http req clear all signals (HTTP Request): calls an HTTP API
…plus 26 more steps. See the full node list below.
Services it uses
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)
- Telegram
n8n-nodes-base.telegram - HTTP Request
n8n-nodes-base.httpRequest - Telegram Trigger
n8n-nodes-base.telegramTrigger - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Switch
n8n-nodes-base.switch - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Edit Fields (Set)
n8n-nodes-base.set
From the author
MT5 AI Trading Assistant - Telegram Bot Workflow with position sizing capabilities Open trades for forex/xauusd/gold with this n8n template. It demonstrates how to automate MetaTrader 5 trading executions through natural language commands via Telegram,…