Are you looking to build intelligent, agentic workflows and easily integrate them into your applications? Imagine packaging complex processes and AI capabilities into simple, reusable components that you can call with a standard API or SDK. This is the power of Services-as-Software, and the .do platform is designed to help you build and consume them effortlessly.
Think of Services-as-Software (.do Services) as self-contained, intelligent units of work. They encapsulate agentic workflows – sequences of actions that might involve data processing, decision-making, interaction with external systems, and even AI model calls – and expose them as simple, callable software services. This means you can interact with a complex workflow just like you would call a function in your code or make an API request to a microservice.
This approach aligns perfectly with the concept of "Business-as-Code," where business processes and automated tasks are defined and managed as executable software components.
For developers, the benefits are clear:
The .do platform provides a comprehensive environment for building, managing, and deploying your Services-as-Software. Its developer tools and APIs guide you through the process of defining your agentic workflows. You can:
Once your workflow is defined, you can publish it as a Service-as-Software. The .do platform automatically generates a dedicated API endpoint for your service and makes it accessible via the .do SDK.
Integrating .do Services into your existing applications is straightforward. You have two primary methods:
Here's a simple example demonstrating how you might consume a service using the TypeScript SDK:
This code snippet shows how easy it is to initialize the client, call a specific service by its identifier (myAccount.processDataService), and pass the required input data. The result of the service execution is then available for further processing in your application.
While the focus of this post is on building and consuming services, it's crucial to consider security. Building secure automation involves careful design and implementation within your .do workflows:
By addressing these security considerations during the design and development of your .do workflows, you can build automation that is not only powerful but also secure and reliable.
The .do platform empowers you to transform complex agentic logic into simple, reusable Services-as-Software. Start building and integrating intelligent capabilities into your projects today. Explore the developer tools, dive into the documentation, and experience the ease of building and consuming services via APIs and SDKs on the .do platform.
Unlock the power of modular, reusable intelligence and accelerate your development with Services-as-Software.
import { DoClient } from '@dotdo/sdk';
async function processData(data: any) {
const client = new DoClient({ apiKey: 'YOUR_API_KEY' });
try {
const serviceResult = await client.services.call('myAccount.processDataService', { inputData: data });
console.log('Service executed successfully:', serviceResult);
return serviceResult;
} catch (error) {
console.error('Error calling service:', error);
throw error;
}
}
// Example usage:
processData({ id: 1, value: 'sample' });