dify-docs/en/features/workflow/node/code.md

947 B

Code

The Code node provides the ultimate level of flexibility, allowing developers to inject custom scripts in Python or Javascript into their workflows and manipulate variables in ways pre-defined nodes cannot. The configuration fields lets you define the expected input/output variables and write the code to execute:

The execution environment is sandboxed for both Python and Javascript, meaning that certain functionalities that require extensive system resources or pose security risks are not available. This includes, but is not limited to, direct file system access, network calls, and operating system-level commands.