The conversation around AI has evolved from simple chatbots to the promise of true digital colleagues. But how do we move from theory to practice? How can developers harness this power to automate not just simple, repetitive actions, but complex, end-to-end business objectives?
Enter Lena, your autonomous digital teammate, powered by the .do platform.
Lena isn't just another automation script. She is an Autonomous Digital Worker designed to understand high-level goals, plan a course of action, and execute complex knowledge-based work. For developers, this opens up a new frontier: the ability to program business outcomes, not just software functions. This guide will walk you through the .do SDK, showing you just how easy it is to assign your first task to Lena.
Traditional automation and RPA (Robotic Process Automation) are powerful but often rigid. They follow a strict set of predefined rules. If a website's layout changes or an unexpected error occurs, the script breaks. It lacks the ability to reason or adapt.
Lena operates on a different principle: agentic workflows. Instead of giving her a rigid script, you give her a goal. She then uses her reasoning capabilities to:
This makes Lena a dynamic problem-solver, capable of handling the unpredictability of real-world business tasks.
The true power of Lena is unlocked through the .do SDK. It provides a clean, intuitive interface for integrating this autonomous capability directly into your applications and workflows.
Let's look at how you can assign a market research task to Lena using just a few lines of TypeScript.
import { Do } from '@do-sdk/core';
// Initialize the .do client
// Assumes your API key is configured in your environment
const dispatch = new Do();
// Get a client for the Lena agent
const lena = dispatch.agent('lena');
// Assign a high-level goal to Lena
const project = await lena.assign({
goal: 'Analyze market trends for solar energy in Q3',
deliverable: 'A comprehensive report with key findings and data visualizations.'
});
console.log(`Project assigned to Lena. ID: ${project.id}`);
Let's break down what's happening here:
You’ve just transformed a complex, multi-hour research task into a single, asynchronous API call. This is the essence of Business-as-Code.
The goal and deliverable primitives are the foundation of working with Lena. This model allows you to stay focused on the "what" and "why," while empowering Lena to figure out the "how."
Think of the possibilities:
By packaging these complex business processes into programmable API calls, you begin to create Services-as-Software. A process that once required a team of analysts can now be an on-demand, scalable service in your technology stack.
Ready to delegate your first task? Here’s how you can get up and running in minutes.
Install the SDK: Open your terminal and run the command to add the SDK to your project.
npm install @do-sdk/core
Get Your API Key: Sign up on lena.do to get your unique API key. You'll need to configure this in your environment for the SDK to authenticate.
Write the Code: Create a new TypeScript file and use the code example from above as your template. Customize the goal and deliverable to fit a task you have in mind.
Run and Delegate: Execute your script. You'll see the project ID logged to your console. While you work on other things, Lena is already planning and executing the task you assigned.
Lena and the .do platform represent a fundamental shift in how we approach business automation. As a developer, you are no longer limited to scripting rigid, step-by-step instructions. You can now delegate entire business outcomes to an autonomous agent that can reason, adapt, and deliver.
By acting as a force multiplier, Lena frees up your human team to focus on strategic initiatives, creativity, and high-value problems that only they can solve.
What complex objective will you automate first? Get started with the .do SDK today and add an autonomous teammate to your stack.