Code Execution Node
Code Execution Nodes
The Code Execution Node empowers you to include custom logic defined directly in the workflow. You can even import custom public packages within the node’s logic. We support the following languages:
- Python
- TypeScript
Tip: Outputting Arrays (Strings)
Set your output type to JSON
when returning string arrays from Code Execution Nodes, or you’ll get the following error: Failed to execute node Code Execution Node: Mismatched output type. Output[0]: Expected to deserialize a 'dict', got 'str'

Tip: Outputting Arrays (Function Calls)
The main scenario in which you’d use Array as your Code Execution Node output type is when you’re processing Prompt Execution Node outputs with Function Calls.
For more on that, see Quirks and Tips for Handling Functions