Discover and utilize atomic, reusable functions on .do for building composable agentic workflows and delivering services-as-software.
Functions are atomic, single-purpose units of work that are composable and reusable throughout your agentic workflows.
In the world of building intelligent, automated systems – often referred to as "agentic workflows" – having the right fundamental components is crucial. At .do, we believe the core of these powerful systems lies in the concept of the "atomic function."
Think of an atomic function as the smallest, indivisible unit of work within a larger process. Just like atoms form the building blocks of all matter, atomic functions are the fundamental building blocks of your agentic workflows and services-as-software on the .do platform.
Each function performs a single, well-defined task. It takes specific inputs, performs its designated operation, and produces predictable outputs. This singular focus is what makes them "atomic" – they can't be broken down further while still maintaining their core purpose.
Consider this simple example of a sum function:
{
"name": "sum",
"description": "Adds two numbers",
"inputs": {
"a": "number",
"b": "number"
},
"outputs": {
"sum": "number"
}
}
This function does one thing and one thing only: it adds two numbers. It has clear inputs (a and b) and a clear output (sum).
The true power of atomic functions comes from their composability. While each function is simple and singular in purpose, you can chain and combine them together to build incredibly complex and sophisticated workflows.
Imagine you need to build a workflow that takes customer order data, calculates the total price including tax, and then initiates a shipping process. You could create separate atomic functions for:
By linking these atomic functions in the correct sequence, you've built a complete order processing workflow. This approach offers significant advantages:
Atomic functions on .do are designed to be highly reusable. Once you've defined a function, you can use it not just in one workflow, but across multiple different agentic processes and services.
For example, the calculate_tax function created for the order processing workflow could also be used in a quoting tool, a financial reporting system, or any other process that requires tax calculation. This saves you time and effort by allowing you to leverage existing building blocks.
By adopting atomic, composable functions, you're effectively transforming your business processes and services into modular, executable code. This concept, often referred to as "Business as Code" and the ability to deliver "Services-as-Software," offers significant benefits:
As agentic AI systems become more prevalent, the ability to break down complex problems into smaller, manageable, self-contained tasks – performed by atomic functions – will be essential. These functions serve as the skills or tools that an AI agent can utilize to accomplish its goals.
At .do, we provide the platform to define, manage, and orchestrate these atomic functions, enabling you to build powerful, flexible, and reusable agentic workflows.
Q: What does it mean for a function to be 'atomic' on .do?
A: Functions on .do are atomic, meaning they perform a single, well-defined task. They are the smallest, most fundamental units of work within an agentic workflow.
Q: Can I reuse functions across different workflows?
A: Yes, functions on .do are designed to be highly reusable. Once defined, a function can be incorporated into multiple different agentic workflows, reducing redundancy and promoting efficiency.
Q: How does the composability of functions benefit me?
A: Composability means that functions can be combined and sequenced together to create more complex workflows and services. By linking atomic functions, you can build sophisticated business processes.
Q: Can you give me an analogy for how functions work in a workflow?
A: Think of functions as the steps in a recipe. By combining these individual steps (functions), you can create a complete meal (a bundled service or application). Each function does one specific thing simply and elegantly.
Q: How do functions handle data and information exchange?
A: Functions have clearly defined inputs they accept and outputs they produce. This structure makes them predictable and easy to integrate into larger workflows, ensuring compatibility and smooth execution.
Ready to start building with atomic functions? Explore the .do platform and discover the power of composable, reusable building blocks for your agentic workflows.