# Discord Forex AI trading assistant w/ proper position sizing: n8n workflow

> 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...

Source: https://millionrounds.com/workflow/discord-forex-ai-trading-assistant-w-proper-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)

# 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.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fdiscord-forex-ai-trading-assistant-w-proper-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 16 Service 17

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

- 1 **Schedule Trigger1** Schedule 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 **Get recent message - omni1** Discord *Service*
- 10 **parse if AI says content is complete3** Code *Logic*
- 11 **parse LLM output1** Code *Logic*
- 12 **parse ai response1** Code *Logic*
- 13 **only get user's message that has no reacts1** Filter *Logic*
- 14 **parameters are missing?1** If *Logic*
- 15 **Switch2** Switch *Logic*
- 16 **if there is an error1** If *Logic*
- 17 **React with an emoji to a message1** Discord *Service*
- 18 **LLM fallback1** Discord *Service*
- 19 **If ai says complete1** If *Logic*
- 20 **parse if AI says content is complete2** Code *Logic*
- 21 **respond: query1** Discord *Service*
- 22 **ai agent instructions1** Set *Logic*
- 23 **HTTP get pending signals1** Http Request *Service*
- 24 **Http req clear all signals1** Http Request *Service*
- 25 **respond: error1** Discord *Service*
- 26 **Switch3** Switch *Logic*
- 27 **needs LLM fallback?1** Switch *Logic*
- 28 **respond: help instructions1** Discord *Service*
- 29 **if there is signal1** If *Logic*
- 30 **clear signals response1** Discord *Service*
- 31 **HTTP Request send market order1** Http Request *Service*
- 32 **Parse switch output1** Code *Logic*
- 33 **HTTP Request send limit order** Http Request *Service*
- 34 **http error response1** Discord *Service*
- 35 **respond: something is missing** Discord *Service*
- 36 **resond get signals2** Discord *Service*
- 37 **resond get signals3** Discord *Service*
- 38 **If trade was successful1** If *Logic*
- 39 **respond: success1** Discord *Service*
- 40 **respond: failed1** Discord *Service*

## 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.

## 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%2Fdiscord-forex-ai-trading-assistant-w-proper-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.

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

## Workflows like it

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

- [**Analyze event feedback with Gemini and Discord** 27 steps · calls a model · Discord, Gmail](https://millionrounds.com/workflow/analyze-event-feedback-with-gemini-and-discord)
- [**Screen GDPR DPIA needs with Groq and Discord** 27 steps · calls a model · Discord, n8n data table](https://millionrounds.com/workflow/screen-gdpr-dpia-needs-with-groq-and-discord)
- [**Revive quiet client projects with OpenAI and Airtable** 26 steps · calls a model · Airtable, Discord](https://millionrounds.com/workflow/revive-quiet-client-projects-with-openai-and-airtable)
- [**Review GitHub pull requests with Mistral** 25 steps · calls a model · Discord, GitHub](https://millionrounds.com/workflow/review-github-pull-requests-with-mistral)
- [**Automated Discord spam moderation with OpenAI** 23 steps · calls a model · Discord](https://millionrounds.com/workflow/automated-discord-spam-moderation-with-openai)
- [**Respond to Google reviews and send weekly digests** 23 steps · calls a model · Discord, Gmail](https://millionrounds.com/workflow/respond-to-google-reviews-and-send-weekly-digests)
