Nodes
Manual Trigger
Schedule Trigger
RSS Feed Trigger
Kline Close Trigger
Discord Trigger
Telegram Trigger
Slack Trigger
AI Agent
Sentiment Analysis
MCP Client
OpenAI Model
Anthropic Chat Model
Code Tool
HTTP Request Tool
MCP Client Tool
Code
HTTP Request
Edit Fields (Set)
Filter
IF
Loop Over Items
Merge
Aggregate
Compare Datasets
Convert to File
Crypto
Database
Extract from File
HTML
Limit
Log
No Operation, do nothing
RSS Read
Read Files from Disk
Remove Duplicates
Rename Keys
S3
Sort
Split Out
Stop And Error
Summarize
Switch
Telegram
Wait
Write Files To Disk
XML
App push
DingTalk Robot
Discord Bot
Email
Feishu Custom Bot
Slack
Account Info
Market Info
Trading Executor
Indicator
Trading Plugin
Credentials
Code
Use the Code node to write custom JavaScript and execute it as a step in your workflow.
Usage
How to use the Code node.
Choose a Mode
There are two modes:
-
Run Once for All Items: This is the default mode. When your workflow executes, the code in the Code node runs once, regardless of the number of input items.
-
Run Once for Each Item: Select this option if you need your code to execute for every input item.
JavaScript
The Code node supports Node.js.
Supported JavaScript Features
The Code node supports:
-
Promises: Instead of returning items directly, you can return a promise that resolves accordingly.
-
Writing to your browser console using
Log: This feature is useful for debugging and troubleshooting your workflows.