Skip to content
PD
Browser Automation Studio

Built-in Languages in BAS: Running Node.js

The Built-in Languages module in Browser Automation Studio — run Node.js code and NPM packages inside a scenario for non-trivial tasks and reusing existing code.

When the visual blocks and inline JavaScript aren’t enough, the Built-in Languages module is the deepest escape hatch in BAS: it runs Node.js code, with the whole NPM ecosystem behind it, inside your scenario.

What it does

The module is used to run sections of code via Node.js and its NPM modules. It contains a single action — Node.js — and that one action opens up a full runtime: anything you can do in Node, with any package you can install from NPM, becomes available as a step in your bot.

Who it’s for

This is explicitly an advanced-user tool. Two situations call for it:

  • Non-trivial tasks — logic that’s awkward or impossible to express with visual blocks, where real code is simply the right fit.
  • Reusing existing code — you already have working JavaScript or Node code and want to drop it into a scenario rather than rebuild it block by block.

Node.js vs the Tools “Execute code”

Don’t confuse it with the Tools module’s Execute code action:

  • Execute code (Tools) runs JavaScript in the page context — for reading page variables, manipulating the DOM, small scripting against the open site.
  • Node.js (Built-in Languages) runs a full Node runtime with NPM packages — for real programmatic work that needs libraries: crypto, parsing formats, complex data transforms, talking to a service with an SDK.

Reach for the Tools action for quick page-level scripting; reach for Built-in Languages when the task needs a proper programming environment. It’s the rare module most bots never touch — and the one that removes the ceiling for the bots that do.

FAQ

Can BAS run Node.js code?

Yes. The Built-in Languages module runs sections of code via Node.js and its NPM packages inside a scenario. It is aimed at advanced users with non-trivial tasks, or anyone reusing existing JavaScript/Node code.

How is Node.js different from the Execute code action in BAS?

The Tools module Execute code action runs JavaScript in the page context. The Built-in Languages module runs Node.js with access to NPM packages — a fuller runtime for logic that needs real libraries, not just page scripting.

More on this topic

  • #Browser Automation Studio
  • #BAS
  • #Node.js
  • #NPM
  • #Code

Have an idea? Let’s turn it into a working product.

Skip months of uncertainty. Get a clear architecture, a working MVP and a system you can test, sell and scale.