JavaScript Execution Sandbox

Write sandboxed custom scripts directly inside your flows. Calculate totals, split text, and parse JSON on the fly.


Overview

The Code node permits executing custom serverless JS code block at runtime. Access preceding variables via `variables.your_var` and return a key-value object to automatically inject new values for subsequent message steps.

Use Cases

Applying dynamic coupon code discount values on total amounts.
Splitting text inputs like full names into first and last name keys.
Filtering arrays returned by third-party webhook API responses.

Key Benefits

Completely isolated serverless environment with strict memory/time bounds.
Allows dynamic arithmetic calculations and object formatting.
Full support for ES2022 JavaScript syntax rules.

Feature FAQ

Can I request external web domains in JS node?

No, network calls inside the JS code node are blocked. Use the dedicated HTTP Request Node instead.