Code Execution Node Examples
The Code Execution Node supports running arbitrary Python or TypeScript code to perform data transformations in your Workflow. It can simplify your workflow, especially in cases where a combination of Conditional, Templating, and Merge nodes are used. Below are some example use cases:
Arithmetic
Check if a number is a multiple of another
JSON Manipulation
Remap the keys
Code Packages
You can add both pip packages for Python code and npm packages for TypeScript code. You must provide exact package versions and add the import to your code yourself.
Note that whenever you update your packages list, the first execution after doing so may be slow due to our system creating and caching the custom runtime.