Package your complex, human-powered services into scalable, on-demand APIs. .do provides the Agentic Workflow Platform to turn your core business value into code.
import { do } from '@do-sdk/core';
// Define a business service as a class
class CompanyValuationService {
@do.run()
async value(companyUrl: string): Promise {
// Agentic workflow to analyze financials, market data, etc.
const valuation = await this.analyze(companyUrl);
return valuation;
}
private async analyze(url: string): Promise {
// Complex business logic encapsulated here
console.log(`Performing valuation for ${url}...`);
// ... returns a valuation number
return Math.floor(Math.random() * 1000000000) + 50000000;
}
}
// The service is now available as a scalable API endpoint.