Getting Started¶
Prerequisites¶
- Node.js 18.x or higher
- npm 8.x or higher (or yarn/pnpm)
- TypeScript 4.5+ (for TypeScript projects)
Install the SDK¶
npm install @uipath/uipath-typescript
found 0 vulnerabilities
found 0 vulnerabilities
yarn add @uipath/uipath-typescript✨ Done in 1.85s.
pnpm add @uipath/uipath-typescript
Project Setup¶
mkdir my-uipath-project && cd my-uipath-projectnpm init -yWrote to package.jsonnpm install typescript @types/node ts-node --save-dev
added x packages in 1snpx tsc --initCreated a new tsconfig.jsonnpm install @uipath/uipath-typescript
added x packages in 1s
added x packages in 1snpx tsc --initCreated a new tsconfig.jsonnpm install @uipath/uipath-typescript
added x packages in 1s
mkdir my-uipath-project && cd my-uipath-projectnpm init -yWrote to package.jsonnpm install @uipath/uipath-typescript
added x packages in 1s
added x packages in 1s
Quick Examples¶
Working with Tasks¶
// Get all tasks
const tasks = await sdk.tasks.getAll();
// Assign task to user
await tasks[0].assign({
userNameOrEmail: 'john@example.com'
});
Working with Entities¶
// Get entity metadata
const entity = await sdk.entities.getById('entity-id');
// Fetch records
const customers = await entity.getRecords({ pageSize: 10 });
// Insert new data
await entity.insert([
{ name: 'John Doe', email: 'john@example.com', status: 'Active' }
]);
Telemetry¶
To improve the developer experience, the SDK collects basic usage data about method invocations. For details on UiPath’s privacy practices, see our privacy policy.
Vibe Coding¶
The SDK is designed for rapid prototyping and development, making it perfect for vibe coding. Here are two ways to get started:
Option 1: AI IDE Integration¶
After installing the SDK, supercharge your development with AI IDEs:
- Install the SDK:
npm install @uipath/uipath-typescript
- Drag & Drop: From your
node_modules/@uipath/uipath-typescript
folder, drag the entire package into your AI IDE - Start Prompting: Your AI assistant now has full context of the SDK!
Works with: - GitHub Copilot - Cursor - Claude - Any AI coding assistant
Option 2: Copy Documentation for LLMs¶
Give your AI assistant complete context by copying our documentation:
For Maximum Context:
-
Download Complete Documentation: llms-full-content.txt
-
Copy and Paste: Copy the entire content and paste it into your AI chat
-
Start Prompting: Your AI now has complete SDK knowledge!
For Specific Features:
- Use the copy button (📋) on any documentation page
- Paste into your AI chat
- Ask specific questions about that feature