Automation library · Research and reporting

Automate stock trades with Claude and OpenAI

Started by a clock, and works across Gmail and Supabase vectors. It puts Claude, OpenAI and one other behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 70 steps: large, and worth reading before you trust it with anything live.

LargeCalls a model: Claude, OpenAIRetrieval

70 stepsLarge: read it before trusting it with anything live
0Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 1Model 27Logic 14Service 18

The steps in the order they run, from what starts it. The first 60 of 70.

  1. 1ThinkTool ThinkModel
  2. 2Embeddings OpenAIEmbeddings Open AiModel
  3. 3Recursive Character Text SplitterText Splitter Recursive Character Text SplitterModel
  4. 4Embeddings OpenAI1Embeddings Open AiModel
  5. 5Reranker CohereReranker CohereModel
  6. 6rankingHttp Request ToolService
  7. 7sectorsHttp Request ToolService
  8. 8industriesHttp Request ToolService
  9. 9Technical Analysis Tool1Tool WorkflowModel
  10. 10Trends Analysis Tool1Tool WorkflowModel
  11. 11Think2Tool ThinkModel
  12. 12Edit Fields1SetLogic
  13. 13OpenRouter Chat Model2Lm Chat Open RouterModel
  14. 14Set Stock Symbol and API KeySetLogic
  15. 15Generate Variables For API1CodeLogic
  16. 16CalculatorTool CalculatorModel
  17. 17save order infoPostgres ToolService
  18. 18POST endpointsHttp Request ToolService
  19. 19GET endpointsHttp Request ToolService
  20. 20GET cashHttp Request ToolService
  21. 21Think1Tool ThinkModel
  22. 22Calculator1Tool CalculatorModel
  23. 23Schedule TriggerSchedule triggerStarts it
  24. 24OpenRouter Chat ModelLm Chat Open RouterModel
  25. 25GET cash1Http Request ToolService
  26. 26Think3Tool ThinkModel
  27. 27OpenRouter Chat Model1Lm Chat Open RouterModel
  28. 28OpenRouter Chat Model3Lm Chat Open RouterModel
  29. 29current tradesPostgres ToolService
  30. 30current trades1Postgres ToolService
  31. 31Grok 4Lm Chat Open RouterModel
  32. 32Call trend + technical AgentTool WorkflowModel
  33. 33Anthropic Chat ModelLm Chat AnthropicModel
  34. 34MAIN AGENTAgentModel
  35. 35Supabase Vector Store1Vector Store SupabaseModel
  36. 36Default Data LoaderDocument Default Data LoaderModel
  37. 37Supabase Vector StoreVector Store SupabaseModel
  38. 38Trend + Technical AgentAgentModel
  39. 39Get Price HistoryHttp RequestService
  40. 40Get Bollinger BandsHttp RequestService
  41. 41Get MACDHttp RequestService
  42. 42Split Out3Split OutLogic
  43. 43Trader AgentAgentModel
  44. 44strategy agentAgentModel
  45. 45HTTP Request1Http RequestService
  46. 46Strategy AgentAgent ToolModel
  47. 47Edit Fields5SetLogic
  48. 48Markdown to HTMLMarkdownLogic
  49. 49Calculate Support ResistanceCodeLogic
  50. 50Edit FieldsSetLogic
  51. 51MergeMergeLogic
  52. 52Edit Fields3SetLogic
  53. 53FilterFilterLogic
  54. 54Send reportGmailService
  55. 55Get Chart URLHttp RequestService
  56. 56Organizing DataCodeLogic
  57. 57Get News Data1Http RequestService
  58. 58Download ChartHttp RequestService
  59. 59Merge-2MergeLogic
  60. 60Aggregate1AggregateLogic

How it's built

Starts on
A clock
Steps
70
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Supabase vectors
Model
Claude, OpenAI, OpenRouter
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

An n8n account, plus your own Gmail and Supabase vectors accounts, and a key for Claude and 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 Claude, OpenAI and OpenRouter. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

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