In the world of software development, we often face a familiar challenge: tangled, monolithic services where a single change can have unforeseen consequences. Workflows become brittle, and simple business tasks get buried under layers of complex code. What if we could break free from this complexity? What if we could build software by assembling small, robust, and reusable components?
This is the core idea behind action.do. We believe the future of development lies in composing services from fundamental building blocks. We call these atomic actions, and they are the heart of a new movement in workflow automation. This isn't just about building for yourself; it's about building for a community and creating a shared library that accelerates innovation for everyone.
Before we dive into the community aspect, let's quickly recap. An atomic action is the smallest, indivisible unit of work in a business process. Think of it as a single, self-contained function with a clear purpose.
An action represents a single step. A workflow is the entire journey. With action.do, you get the tools to define both with unparalleled clarity.
The beauty of the action.do platform is its simplicity and developer-first approach. You can define a powerful action with just a few lines of code.
Let's look at a classic example: sending a welcome email.
import { Do } from '@do-inc/sdk';
// Initialize the platform client
const platform = new Do({ apiKey: 'YOUR_API_KEY' });
// Define a simple, atomic action: send an email
const sendWelcomeEmail = platform.action('send-welcome-email', {
description: 'Sends a welcome email to a new user.',
handler: async (inputs: { email: string, name: string }) => {
// Business logic for the action would go here
console.log(`Sending welcome email to ${inputs.name} at ${inputs.email}`);
return { success: true, messageId: 'xyz-123' };
},
});
// Execute the action via the SDK
const result = await sendWelcomeEmail.run({
email: 'alex@example.com',
name: 'Alex',
});
console.log(result);
As you can see, the process is straightforward:
This simple structure is all you need for robust, repeatable task execution.
Here’s where it gets exciting. You've built a send-welcome-email action. Your colleague across the company also needs to send emails. Another team is building a workflow to process Stripe payments. We are all constantly reinventing the wheel for common business tasks.
The action.do community is our answer to this problem.
Imagine a shared registry where you can find battle-tested atomic actions built by experts:
This is the movement we want you to join. By building your workflows on action.do, you're not just creating a solution for your immediate problem. You're creating a potential building block for the entire community. Every action you define, from the mundane to the complex, is a piece of reusable value.
When you build and share an action, you're contributing to a powerful "action economy." This ecosystem delivers compounding benefits:
The future of software isn't monolithic; it's atomic. It's about breaking down large problems into small, manageable tasks and collaborating to build a better foundation for everyone.
What common, repeatable task is slowing down your team? That's your first candidate for an atomic action. Build it, perfect it, and share it.
Ready to start? Define your first atomic action today and become a foundational member of the .do community. Let's build the future of workflow automation, together.