Automation library · Chat assistants

Discord Forex AI trading assistant w/ proper position sizing

Started by a clock, and works across Discord. 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 16Service 17

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

  1. 1Schedule Trigger1Schedule 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. 9Get recent message - omni1DiscordService
  10. 10parse if AI says content is complete3CodeLogic
  11. 11parse LLM output1CodeLogic
  12. 12parse ai response1CodeLogic
  13. 13only get user's message that has no reacts1FilterLogic
  14. 14parameters are missing?1IfLogic
  15. 15Switch2SwitchLogic
  16. 16if there is an error1IfLogic
  17. 17React with an emoji to a message1DiscordService
  18. 18LLM fallback1DiscordService
  19. 19If ai says complete1IfLogic
  20. 20parse if AI says content is complete2CodeLogic
  21. 21respond: query1DiscordService
  22. 22ai agent instructions1SetLogic
  23. 23HTTP get pending signals1Http RequestService
  24. 24Http req clear all signals1Http RequestService
  25. 25respond: error1DiscordService
  26. 26Switch3SwitchLogic
  27. 27needs LLM fallback?1SwitchLogic
  28. 28respond: help instructions1DiscordService
  29. 29if there is signal1IfLogic
  30. 30clear signals response1DiscordService
  31. 31HTTP Request send market order1Http RequestService
  32. 32Parse switch output1CodeLogic
  33. 33HTTP Request send limit orderHttp RequestService
  34. 34http error response1DiscordService
  35. 35respond: something is missingDiscordService
  36. 36resond get signals2DiscordService
  37. 37resond get signals3DiscordService
  38. 38If trade was successful1IfLogic
  39. 39respond: success1DiscordService
  40. 40respond: failed1DiscordService

How it's built

Starts on
A clock
Steps
40, with 8 branches
Size
Large: read it before trusting it with anything live
Connects to
Discord
Model
OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on a clock.

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.