Prerequisites:
- Node.js version 16 or higher
- An Uplink account (sign up on Uplink Console)
- A mobile device with the Connect app installed, or your own app with the SDK integrated
Step 1: Install the JavaScript SDK
Install the Uplink SDK in your project:Optional: AI Automation
For AI-powered automation with natural language instructions:Step 2: Get your credentials
In Uplink Console, go to Projects, open your project’s settings, and select Manage OAuth clients → Create OAuth client. Copy the client ID and secret it gives you..env
Step 3: Create a session
Create a session programmatically to get connection URLs for your devices:session object contains:
sessionId: Unique identifier for this sessionsessionUrl: WebSocket URL for custom SDK integrationqrUrl: URL that encodes connection info for the Connect appkeys: Optional cryptographic keys (if requested)
Step 4: Connect a device
You have two options for connecting devices to your session:- Connect App (Whitelabel)
- Custom SDK Integration
Use Uplink’s whitelabel Connect app by presenting a QR code to your users:
1
Display QR code
Display the
session.qrUrl as a QR code in your application. You can use any QR code library like qrcode or react-qr-code:2
User scans QR code
Your user scans the QR code with their device camera. This opens the Uplink Connect app (iOS App Clip or Android instant app)
3
Device connects
The device automatically connects to your session as a worker
No installation required! The Connect app opens automatically via iOS App Clip or Android deeplink when users scan the QR code.
Step 5: Run your first automation
Create a new JavaScript file and add the following code:UPLINK_CLIENT_ID and UPLINK_CLIENT_SECRET in your environment, then run:
What’s next?
Core concepts
Learn about devices, browsers, and pages
Sessions
Understand session management and authentication
API reference
Explore the full JavaScript SDK API
Device management
Learn how to manage multiple devices
Example use cases
Once you’re comfortable with the basics, try these common automation scenarios:Wait for user login, then automate
Wait for user login, then automate
Extract data from a page
Extract data from a page
AI-powered form filling
AI-powered form filling
Monitor network requests
Monitor network requests