In today's fast-paced digital landscape, businesses are constantly seeking ways to automate processes, improve efficiency, and deliver services faster. For years, the go-to solutions have been a mix of manual processes, clunky Business Process Management (BPM) software, and restrictive low-code platforms. While these tools have their place, they often create silos, lack true version control, and fail to meet the rigorous standards of modern software development.
It's time for a new paradigm: Business-as-Code.
This approach treats your critical business processes with the same discipline and power as your application code. It means defining, testing, and deploying your workflows as version-controlled, auditable, and scalable software. It’s about empowering developers to build enterprise-grade automation without leaving the comfort of their IDE.
This is where sdk.do comes in. It's not just a tool; it's the engine for the Business-as-Code revolution.
At its core, sdk.do is a Typescript SDK designed from the ground up to build, test, and deploy agentic workflows. We believe that the fastest and most reliable way to automate complex business logic is by writing code.
With sdk.do, you can turn intricate processes—like customer onboarding, order fulfillment, or data validation pipelines—into simple, powerful Services-as-Software. No more drag-and-drop interfaces that hide complexity or black-box systems you can't control. Just clean, readable, and maintainable Typescript.
The elegance of sdk.do lies in its simplicity. You define your processes using two core primitives: Workflows and Agents.
A Workflow is a blueprint for a business process, defined as a series of steps. An Agent is the executor, a smart entity capable of running one or more workflows.
Here’s how you would define a customer onboarding process in just a few lines of code:
import { Agent, Workflow } from '@do-sdk/core';
// Define a workflow with multiple steps
const onboardCustomer = new Workflow({
name: 'customer.onboard',
steps: [
{ do: 'validate.email' },
{ do: 'create.user.profile' },
{ do: 'send.welcome.email' },
],
});
// Create an agent to execute the workflow
const agent = new Agent({ workflows: [onboardCustomer] });
// Execute the workflow via the agent
async function run() {
const result = await agent.execute('customer.onboard', {
email: 'new.user@example.com',
name: 'Jane Doe',
});
console.log(result);
}
This code is not just a script; it's a declarative, testable, and reusable asset. Each step ({ do: '...' }) represents a modular unit of work that can be customized, reused across different workflows, and tested in isolation.
Defining your process in code is the first step. But how do you make it available to the rest of your organization or customers? This is where the magic happens.
When you deploy a workflow built with the .do SDK, the platform automatically exposes it as a secure, scalable API endpoint.
This seamless transition from Business-as-Code to Service-as-Software is a game-changer. You don’t need to worry about setting up servers, managing API gateways, or writing boilerplate HTTP-handling code. You simply define the logic, and sdk.do takes care of the rest, transforming your workflow into a consumable service.
Q: What is the .do SDK?
A: The .do SDK is a Typescript library that allows developers to programmatically define, manage, and execute agentic workflows. It's the primary tool for building Business-as-Code on the .do platform.
Q: Who is the SDK for?
A: The SDK is designed for developers who want to automate complex business processes, integrate services, and deliver them as robust, version-controlled software. If you know Typescript, you can start building powerful agents immediately.
Q: Can I test my workflows locally?
A: Yes, the .do SDK comes with a local testing environment and mocking utilities. This allows you to develop and debug your workflows entirely on your local machine before deploying them to the .do cloud platform.
The future of enterprise process automation is here, and it's written in code. Stop wrestling with rigid tools and start building automation that is as agile and robust as the rest of your technology stack.
Getting started is simple. Just install the package via npm:
npm install @do-sdk/core
Ready to transform your business processes into powerful software? Visit sdk.do to explore the documentation and build your first agentic workflow today.