Actions114
- AI Actions
- AI Advanced OCR
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Enitity Detection
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate Javascript Code
- Generate Python Code
- Language Detection
- Mood Detection
- PDF OCR
- Picture Object Recognition
- Picture Text Recognition
- Redact Sensitive Information From PDF
- Too Long To Read
- Transcribe
- Translation
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Date & Time Actions
- Generate Actions
- Image Actions
- Operator Actions
- PDF Actions
- Storage Actions
- Text Actions
- User Actions
Code → Javascript
AI-generatedOverview
This node executes custom JavaScript code provided by the user within the 0CodeKit environment. It allows users to run JavaScript scripts dynamically as part of their workflow, enabling flexible data manipulation, transformation, or any custom logic that can be expressed in JavaScript. This is particularly useful for scenarios where built-in node functionalities are insufficient and custom scripting is required, such as complex data processing, conditional logic, or integration with other APIs via code.
Use Case Examples
- Running a JavaScript function to transform input data before passing it to another node.
- Executing custom validation or calculation logic on workflow data.
- Manipulating JSON objects or arrays dynamically using JavaScript.
Properties
| Name | Meaning |
|---|---|
| Code | The JavaScript code to be executed by the node. |
| Code Variables | Variables defined in the code editor that can be set dynamically for the JavaScript code execution. |
Output
JSON
result- The output result of the executed JavaScript code, which can be any JSON-serializable data returned by the script.
Dependencies
- Requires an API key credential for 0CodeKit service to authenticate and execute the code.
Troubleshooting
- Errors in the JavaScript code syntax or runtime exceptions will cause the node to fail unless 'Continue On Fail' is enabled, in which case errors are returned as part of the output.
- Incorrect or missing code variables may lead to unexpected results or errors during execution.
- Ensure the API key credential for 0CodeKit is correctly configured to avoid authentication errors.