Javascript
The Javascript action executes custom script when you need logic that no-code nodes do not cover.
When to use
Section titled “When to use”- Complex transforms, parsing, or calculations
- Conditional structuring of payloads before HTTP
- Normalizing messy webhook bodies
Configure
Section titled “Configure”- Add a Javascript node.
- Open General and write (or paste) the script.
- Declare outputs on the Output tab so later nodes can read results.
- Use variables from earlier steps according to the editor’s injection / access pattern.
Tabs: General, Output, Execution.
Example
Section titled “Example”Parse a free-text address from a webhook into city, region, and postalCode outputs, then map those into a Database CREATE.
Pitfalls
Section titled “Pitfalls”- Keep scripts small and deterministic; large scripts are harder to test via execution logs.
- Always define named outputs—values that stay only inside the script never reach the next node.
- Prefer Assignment/Decision for simple cases; use Javascript when configuration alone is not enough.
Related: Helpful JavaScripts in WorkHub24 (form-oriented examples; patterns still apply), Variables & Data Mapping.