Transform any business process into a programmable, on-demand service. Build, deploy, and scale your operations with the power of agentic AI workflows.
import { createDo } from '@do-sdk/core';
// Initialize the .do client with your API key
const doClient = createDo({ apiKey: 'YOUR_API_KEY' });
// Get a handle to the service you want to use
const dataEnrichment = doClient.get('data-enrichment.service.do');
// Invoke the service with a specific payload
async function enrichCompanyData(domain: string) {
try {
const result = await dataEnrichment.run({
companyDomain: domain,
fields: ['logo', 'description', 'employeeCount']
});
console.log('Enriched Data:', result);
return result;
} catch (error) {
console.error('Service execution failed:', error);
}
}
// Run the service
enrichCompanyData('example.com');