In today's fast-paced digital landscape, businesses are built on processes. From onboarding a new customer to fulfilling an order or processing a support ticket, these multi-step operations are the lifeblood of any company. But far too often, these workflows are a patchwork of manual tasks, brittle scripts, and disconnected services. They're slow, prone to error, and nearly impossible to scale.
What if you could treat your business logic with the same rigor and precision as your application code? What if you could define, version, and deploy business processes as software?
This is the core idea behind Business-as-Code, and with sdk.do, it's more accessible than ever. Welcome to the world of agentic workflows—the developer-first approach to orchestrating complex automation.
An agentic workflow is a sequence of defined tasks executed by a software "agent" to achieve a specific business outcome. Instead of a single, monolithic script, you define a series of clear, modular steps. This agent is designed to reliably carry out the workflow, handling data flow and task execution from start to finish.
Think about a common process like customer onboarding:
Manually, this is a tedious checklist. With an agentic workflow, it becomes a single, automated, and auditable process defined entirely in code.
The .do SDK is a powerful Typescript library designed to be the fastest way for developers to Develop, Test, and Deploy agentic business workflows. It provides the tools to transform complex processes into simple, powerful Services-as-Software.
If you're a developer who understands Typescript, you have everything you need to start building robust automation. The SDK empowers you to move beyond simple scripts and build intelligent agents that orchestrate services, manage state, and execute mission-critical business logic.
The magic of the .do SDK lies in how it bridges the gap between code and a consumable service. Let’s look at how easy it is to define the customer onboarding workflow we mentioned earlier.
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);
}
Let's break this down:
Once you write this code and deploy it, the .do platform automatically exposes the customer.onboard workflow as a secure, scalable API endpoint. No API boilerplate, server configuration, or manual infrastructure management required. Your code directly becomes a Service-as-Software.
The .do SDK was built by developers, for developers. It includes features designed to make your automation workflow seamless and efficient.
There's no proprietary language to learn. If you and your team know Typescript, you can be productive from day one. Enjoy the benefits of static typing, autocompletion, and a rich ecosystem of tools you already use.
Confidence in your code is crucial. The .do SDK includes a comprehensive local testing environment. You can mock steps, simulate different outcomes, and debug your entire workflow on your local machine before ever deploying it. This dramatically speeds up the development cycle and reduces production bugs.
Stop writing boilerplate code for REST endpoints. When you deploy a workflow, .do handles the rest. It instantly generates a secure, scalable HTTP endpoint for your workflow, ready to be integrated into your applications or third-party services.
Since your workflows are just code, they can live in a Git repository. You can now apply software engineering best practices to your business operations:
Ready to turn your complex processes into powerful, automated services? Getting started is simple.
npm install @do-sdk/core
Stop wrestling with brittle scripts and manual processes. Start building robust, scalable automation with the .do SDK and unlock the true power of Business-as-Code.