# Forex AI trading assistant for Telegram with Position Sizing: n8n workflow

> Started by an incoming Telegram message, and works across Telegram. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/forex-ai-trading-assistant-for-telegram-with-position-sizing (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Chat assistants](https://millionrounds.com/workflows?category=Chat+assistants#library)

# Forex AI trading assistant for Telegram with Position Sizing

Started by an incoming Telegram message, and works across Telegram. It hands the judgement calls to OpenAI. 40 steps, 8 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fforex-ai-trading-assistant-for-telegram-with-position-sizing)

**40 steps** Large: read it before trusting it with anything live

**8** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Model 6 Logic 15 Service 18

The steps in the order they run, from what starts it.

- 1 **Telegram Chat Trigger** Telegram trigger *Starts it*
- 2 **4o - mini1** Lm Chat Open Ai *Model*
- 3 **4o mini1** Lm Chat Open Ai *Model*
- 4 **4o mini3** Lm Chat Open Ai *Model*
- 5 **set credentials and params1** Set *Logic*
- 6 **basic LLM fallback check1** Chain Llm *Model*
- 7 **Trading Assistant Classifier & Responder2** Chain Llm *Model*
- 8 **Trading Assistant Classifier & Responder3** Chain Llm *Model*
- 9 **react to message** Http Request *Service*
- 10 **parse if AI says content is complete3** Code *Logic*
- 11 **parse LLM output1** Code *Logic*
- 12 **parse ai response1** Code *Logic*
- 13 **parameters are missing?1** If *Logic*
- 14 **Switch2** Switch *Logic*
- 15 **if there is an error1** If *Logic*
- 16 **respond: LLM fallback** Telegram *Service*
- 17 **If ai says complete1** If *Logic*
- 18 **parse if AI says content is complete2** Code *Logic*
- 19 **respond to query** Telegram *Service*
- 20 **ai agent instructions1** Set *Logic*
- 21 **HTTP get pending signals1** Http Request *Service*
- 22 **Http req clear all signals1** Http Request *Service*
- 23 **respond: error1** Telegram *Service*
- 24 **Switch3** Switch *Logic*
- 25 **needs LLM fallback?1** Switch *Logic*
- 26 **respond: part 1** Telegram *Service*
- 27 **if there is signal1** If *Logic*
- 28 **respond: all clear** Telegram *Service*
- 29 **HTTP Request send market order1** Http Request *Service*
- 30 **Parse switch output1** Code *Logic*
- 31 **HTTP Request send limit order** Http Request *Service*
- 32 **respond: http req error** Telegram *Service*
- 33 **respond: missing params** Telegram *Service*
- 34 **respond: part 2** Telegram *Service*
- 35 **respond: No pending signals1** Telegram *Service*
- 36 **respond: No pending signals** Telegram *Service*
- 37 **If trade was successful1** If *Logic*
- 38 **respond: part 3** Telegram *Service*
- 39 **respond: trade placement success** Telegram *Service*
- 40 **respond: error in trade placement** Telegram *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 40, with 8 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Telegram
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Telegram account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 40 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 40 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fforex-ai-trading-assistant-for-telegram-with-position-sizing)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also chat assistants, with the same services where possible, closest in size first.

- [**Attendance system with OpenAI and Google Sheets** 41 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/attendance-system-with-openai-and-google-sheets)
- [**Automate YouTube Shorts creation from Telegram prompts** 39 steps · calls a model · Google Drive, Telegram](https://millionrounds.com/workflow/automate-youtube-shorts-creation-from-telegram-prompts)
- [**Generate consensus-based answers with Claude and OpenAI** 41 steps · calls a model · Gmail, Slack](https://millionrounds.com/workflow/generate-consensus-based-answers-with-claude-and-openai)
- [**AI Email Agent with Gmail and Telegram Approval** 38 steps · calls a model · Gmail, Redis](https://millionrounds.com/workflow/ai-email-agent-with-gmail-and-telegram-approval)
- [**Personal email management with Gemini and Gmail** 37 steps · calls a model · Gmail, Mattermost](https://millionrounds.com/workflow/personal-email-management-with-gemini-and-gmail)
- [**Smart kitchen & inventory assistant with OpenAI** 43 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/smart-kitchen-and-inventory-assistant-with-openai)
