Aller au contenu principal

Node.js Code Execution Toolkit

The Node.js Code Execution Toolkit is a workflow node. Its tools include Execute Nodejs, Search Knowledge Base Files, Upload File To Sandbox, and List Sandbox Files, plus 1 more listed below. These tools run in the workflow and do not use a third-party account. Type @ in a field when the value should come from an earlier step.

Authentication​

Node.js Code Execution tools do not use a connected third-party account. Add the node to the workflow and set the fields on the tool.

Tools​

Execute Nodejs​

Runs the execute nodejs tool.

FieldRequiredDescription
CodeYesNode.js/JavaScript code to execute in the sandbox. Type @ to select a variable.
Entry PointNoEntry function name to call inside the provided code. Default is main. Type @ to select a variable.
ArgsNoPositional arguments. Default is [].
KwargsNoKeyword arguments. Default is \{\}.
DependenciesNoNPM package dependencies to install. Default is [].
Nodejs RuntimeNoNode.js runtime version (e.g. nodejs18.x, nodejs20.x, nodejs22.x). Default is nodejs20.x. Type @ to select a variable.

Search Knowledge Base Files​

Searches knowledge base files.

FieldRequiredDescription
QueryYesSearch query to find files in knowledge base. Type @ to select a variable.

Upload File To Sandbox​

Uploads file to sandbox.

FieldRequiredDescription
File PathYesFile path from knowledge base to upload. Type @ to select a variable.
Target PathNoTarget path in sandbox (optional). Default is null. Type @ to select a variable.

List Sandbox Files​

Lists sandbox files.

FieldRequiredDescription
——This tool has no input fields.

Create Download URL​

Creates download url.

FieldRequiredDescription
File PathYesPath to file in sandbox to create download URL for. Type @ to select a variable.

Agents can use this integration from chat. See Node.js Code Execution.

See all integrations on the toolkits overview.