Extend workflows with custom JavaScript code

WEXTL® JS Code [1] node lets you write custom JavaScript directly on the visual workflow canvas [3] - between any of 1,300+ app integrations [2]. Reshape payloads, normalize responses, or strip PII before data reaches the next step. Curated modules like lodash, dayjs, zod, uuid come baked in [5] - no package.json or lockfile required.

WEXTL® runs your code in a secure V8 isolate with per-run limits [5]. Return values, console logs, and errors show on the run history [4] - just like every other native workflow node.

  • GDPR
  • Data Encryption
  • 2FA
  • Local Data Region
Video slide shows how JS Code node reshapes payloads on WEXTL® canvas.

Video slide shows how JS Code node reshapes payloads on WEXTL® canvas.

Why write custom JS code inside a WEXTL® workflow?

Designed for when connectors fall short - here are 4 experience points customers value [5] WEXTL JS Code node for.

JS Code on the canvas

Write JavaScript inline as a normal workflow step - same flow as any other node.

Shape data for next app

Rename fields, transform payloads, and hand a clean object to the next connector.

Curated modules baked in

Import lodash, dayjs, zod, uuid, papaparse - no package.json, no lockfile to maintain.

Guardrails in JavaScript

Redact PII or reject bad rows before the next step fires - visible on run history.

How to add JS Code node into a workflow on WEXTL®?

There are only 3 main steps to plug a JS Code node [1] into your workflow. Under 5 minutes [5] setup - from picking where to insert it to a live JavaScript transform running in a V8 isolate between your apps.

How does JS Code integrates inside a WEXTL workflow?

JS Code [1] is just a regualr workflow node as 1,300+ others - same inputs and outputs connections, run history supported, same drag and drop experience you get with WEXTL native nodes.

Custom JS code can be placed in any part of the workflow - between two apps to convert their inputs and outputs, or before an app - to validate incomind data, or after - to normalize responses [5]. You can edit JavaScript code directly on the canvas [3] - no separate interface required.

Automator has access to a set of libraries to import in JS: lodash, dayjs, date-fns, zod, uuid, nanoid, papaparse, fast-xml-parser, jsonpath-plus, slugify [1]. This helps push JS code capabilities inside WEXTL even further.

Video shows JS Code settings inside workflow on WEXTL®.

Video shows JS Code settings inside workflow on WEXTL®.

Can built-in JS Code node handle failures and long-running tasks?

Each JS Code run has limit 300 seconds of execution time by default, and your plan [6] may set a different limit. This helps to avoid the situations when non intentional loop fails to exit and prevents the workflow automation from hanging for a long time.

Uncaught errors inside JS functions will mark the node as failed with the stack trace attached. Error handler can be used though, or Condition or Merge node after - can branch on failure to send a failure altert.

Any console.log, warn, and error calls inside function code will be streamed to the node results panel in the run viewer - builders see exactly what the transform decided, and why [4].

JS Code settings panel WEXTL®.

JS Code settings panel WEXTL®.

1300+ apps you can connect to JS Code in workflows

Any app in WEXTL® Apps Library [2] can be connected to JS Code in order to reshape its inputs or outputs and add more functionality into workflows. JS node has same drag and drop behavior as other regular nodes [4].

Frequently asked questions

Add JS Code where connectors fall short or explore more

References

List of resources used for writing this documentation page on WEXTL®. Follow a citation to jump straight to the source.

  1. WEXTL® JS Code node — custom JavaScript step node documentation.
  2. WEXTL® Apps Library — full catalog of supported app integrations.
  3. WEXTL® visual workflow builder — canvas for building and visually tracing automations.
  4. WEXTL® built-in workflow nodes — catalog of built-in nodes with per-node documentation pages.
  5. WEXTL® anonymized usage experience from customers — collected by support team and/or partners.
  6. WEXTL® pricing plans — per-plan entitlements — limits, quotas, and included features.