In the world of software development, the journey from a brilliant piece of business logic to a live, scalable, and secure API is often fraught with boilerplate code, infrastructure management, and tedious configuration. Developers spend countless hours setting up servers, configuring API gateways, and managing deployment pipelines. But what if you could bypass all that? What if you could simply write the code for your business process and have a production-ready API magically appear?
This isn't magic; it's Business-as-Code, and it's the core principle behind the sdk.do Agentic Workflow SDK. This powerful Typescript library is revolutionizing how developers create, test, and deploy complex business workflows, transforming them into simple, powerful Services-as-Software.
Business-as-Code is the practice of defining, executing, and managing business processes using the same tools and principles as software development. Instead of flowcharts in a slide deck or instructions in a wiki, your processes—like customer onboarding, order fulfillment, or data validation—are defined in version-controlled, testable, and auditable code.
This approach brings the robustness of modern software engineering to your business operations. It allows for collaboration, peer reviews, automated testing, and seamless deployments, eliminating ambiguity and making your processes more reliable and transparent.
The .do SDK is the developer's definitive toolkit for implementing Business-as-Code. It provides a simple, intuitive way to build "agentic workflows" using Typescript, a language most modern developers already know and love.
At its heart, the SDK is built around two core concepts: Workflows and Agents.
Let's see how simple it is to define a customer onboarding process:
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);
}
In this example, we've clearly defined a three-step process. This code is not just a script; it's a reusable, version-controlled business asset.
The .do SDK streamlines the entire development lifecycle into a simple, three-part mantra: Develop, Test, Deploy.
Getting started is as easy as npm install @do-sdk/core. Because it's a Typescript SDK, there's no new language to learn. You can leverage a rich ecosystem of libraries and tools you're already familiar with. The SDK's intuitive design lets you focus purely on the business logic, not on the plumbing required to make it run.
How do you know your workflow is correct? The .do SDK includes a comprehensive local testing environment and mocking utilities. You can develop and debug your entire agentic workflow on your local machine, running unit and integration tests to ensure every step behaves as expected. This ability to iterate quickly and locally gives you complete confidence before a single line of code touches a production server.
This is where the transformation happens. Once your workflow is developed and tested, you deploy it with a simple command. The moment you do, the .do platform automatically exposes your workflow as a secure, scalable API endpoint.
Your customer.onboard workflow is instantly available as an API. No servers to provision. No API gateway to configure. No YAML files to wrestle with. Your Business-as-Code has become a consumable Service-as-Software.
Q: Who is the .do SDK for?
A: It's built for developers who want to automate complex business processes and deliver them as robust, version-controlled software. If you know Typescript, you can start building powerful agentic workflows immediately and stop worrying about API infrastructure.
Q: How do I get started with the SDK?
A: Getting started is simple. Install the package via npm (npm install @do-sdk/core), import the Agent and Workflow modules, and start defining your first process. Check out our comprehensive documentation for guides and examples.
Q: Can I really test my workflows locally?
A: Absolutely. The SDK is designed for a local-first development experience. The included testing and mocking tools allow you to build and validate your workflows entirely on your machine, ensuring correctness and speeding up your development cycle.
The .do SDK fundamentally changes the relationship between code and services. It closes the gap between writing business logic and delivering a functional, scalable API. By embracing the Business-as-Code paradigm, you empower your team to build faster, deploy more reliably, and focus on what truly matters: creating value.
Ready to turn your business processes into scalable services?
Visit sdk.do to get started and build your first agentic workflow in minutes!