Skip to content

Javascript

The Javascript action executes custom script when you need logic that no-code nodes do not cover.

  • Complex transforms, parsing, or calculations
  • Conditional structuring of payloads before HTTP
  • Normalizing messy webhook bodies
  1. Add a Javascript node.
  2. Open General and write (or paste) the script.
  3. Declare outputs on the Output tab so later nodes can read results.
  4. Use variables from earlier steps according to the editor’s injection / access pattern.

Tabs: General, Output, Execution.

Parse a free-text address from a webhook into city, region, and postalCode outputs, then map those into a Database CREATE.

  • 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.