Automation library · Chat assistants

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.

LargeCalls a model: OpenAI

40 stepsLarge: read it before trusting it with anything live
8Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 1Model 6Logic 15Service 18

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

  1. 1Telegram Chat TriggerTelegram triggerStarts it
  2. 24o - mini1Lm Chat Open AiModel
  3. 34o mini1Lm Chat Open AiModel
  4. 44o mini3Lm Chat Open AiModel
  5. 5set credentials and params1SetLogic
  6. 6basic LLM fallback check1Chain LlmModel
  7. 7Trading Assistant Classifier & Responder2Chain LlmModel
  8. 8Trading Assistant Classifier & Responder3Chain LlmModel
  9. 9react to messageHttp RequestService
  10. 10parse if AI says content is complete3CodeLogic
  11. 11parse LLM output1CodeLogic
  12. 12parse ai response1CodeLogic
  13. 13parameters are missing?1IfLogic
  14. 14Switch2SwitchLogic
  15. 15if there is an error1IfLogic
  16. 16respond: LLM fallbackTelegramService
  17. 17If ai says complete1IfLogic
  18. 18parse if AI says content is complete2CodeLogic
  19. 19respond to queryTelegramService
  20. 20ai agent instructions1SetLogic
  21. 21HTTP get pending signals1Http RequestService
  22. 22Http req clear all signals1Http RequestService
  23. 23respond: error1TelegramService
  24. 24Switch3SwitchLogic
  25. 25needs LLM fallback?1SwitchLogic
  26. 26respond: part 1TelegramService
  27. 27if there is signal1IfLogic
  28. 28respond: all clearTelegramService
  29. 29HTTP Request send market order1Http RequestService
  30. 30Parse switch output1CodeLogic
  31. 31HTTP Request send limit orderHttp RequestService
  32. 32respond: http req errorTelegramService
  33. 33respond: missing paramsTelegramService
  34. 34respond: part 2TelegramService
  35. 35respond: No pending signals1TelegramService
  36. 36respond: No pending signalsTelegramService
  37. 37If trade was successful1IfLogic
  38. 38respond: part 3TelegramService
  39. 39respond: trade placement successTelegramService
  40. 40respond: error in trade placementTelegramService

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.