关于 Robot JavaScript SDK
Robot JavaScript SDK (RobotJS):JavaScript 库将网页应用程序连接到 UiPath 机器人,以进行自动化创建和管理。
RobotJS
使用 UiPath 的 Robot JavaScript SDK (即 Robot JS),您可以将 UiPath 自动化功能合并到 JavaScript 应用程序中。它提供了一组 JavaScript 库,可充当基于 JavaScript 的应用程序和 UiPath 机器人之间的通信桥梁。
此 SDK 扩展了直接从 JavaScript 应用程序创建、监控和管理流程的能力。
先决条件
RobotJS 需要以下内容:
- UiPath Robot 2026.10 installed on the machine
- Robot JavaScript add-on installed on the machine that executes the process. Select UiPath JavaScript Robot Add-on in the Platform Installer, or set
INSTALL_ROBOTJSfor a silent installation. For details, see Installing the Robot. - Optionally, a Robot connected to an Orchestrator instance, to retrieve the processes from Orchestrator. Without a connection, RobotJS retrieves the local processes.
获取 Robot JavaScript SDK
The Robot JavaScript SDK is licensed under Apache 2.0. It is available as an npm package with TypeScript bindings. To include it in your project, run the following command at the root of your project directory:
npm install --save @uipath/robot
npm install --save @uipath/robot
To load the SDK with a <script> tag instead, use dist/js/UiPathRobot.js from the package.
Version 1.3.3, the last one published to download.uipath.com, remains available at https://download.uipath.com/js/1.3.3/UiPathRobot.js. Newer versions are published only on npm.
文档
规范
- SDK 规范的完整文档提供了有关机器人 Javascript SDK 所用模型和方法的详细信息。
- 示例参考提供了适用于样板和 Office 应用程序的预制样本,您可以轻松地将其集成到自己的自定义应用程序中。
试试吧
Robot JS 演示页面提供了使用 Robot JavaScript SDK 的实际演示。该演示安全连接到现有机器人,从 UiPath Assistant 检索流程,并在授予访问授权后显示流程。