Automation library · Research and reporting

AI Forex Trader with News Sentiment Analysis

Started by a clock, and works across Discord. It hands the judgement calls to Claude. 27 steps, 4 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: Claude

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

The flow

Starts it 1Model 2Logic 11Service 13

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

  1. 1Every Hour TriggerSchedule triggerStarts it
  2. 2Anthropic Chat ModelLm Chat AnthropicModel
  3. 3ConfigSetLogic
  4. 4AI Portfolio AnalystChain LlmModel
  5. 5Get Portfolio from Signal HandlerHttp RequestService
  6. 6NewsAPI HeadlinesHttp RequestService
  7. 7FinnHub Market NewsHttp RequestService
  8. 8Alpha Vantage Macro SentimentHttp RequestService
  9. 9Fear & Greed IndexHttp RequestService
  10. 10Forex Factory CalendarHttp RequestService
  11. 11Parse AI ResponseCodeLogic
  12. 12Merge All DataMergeLogic
  13. 13Format Discord UpdateCodeLogic
  14. 14Extract ActionsCodeLogic
  15. 15Build Full ContextCodeLogic
  16. 16Send Update to DiscordDiscordService
  17. 17Has Actions?IfLogic
  18. 18Action Type?SwitchLogic
  19. 19Buy: Market or Limit?SwitchLogic
  20. 20Sell: Market or Limit?SwitchLogic
  21. 21Close Position SignalHttp RequestService
  22. 22Buy Market OrderHttp RequestService
  23. 23Buy Limit OrderHttp RequestService
  24. 24Sell Market OrderHttp RequestService
  25. 25Sell Limit OrderHttp RequestService
  26. 26Build Execution ConfirmationCodeLogic
  27. 27Send Trade ConfirmationDiscordService

How it's built

Starts on
A clock
Steps
27, with 4 branches
Size
Large: read it before trusting it with anything live
Connects to
Discord
Model
Claude

Questions

What does it need to run?

An n8n account, plus your own Discord account, and a key for Claude. 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 Claude. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 27 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 27 steps before you point it at anything that matters.