Transform Business Logic into Code
Leverage our agentic workflow platform to create robust Services-as-Software. Your logic, our infrastructure, delivered via a simple API.
Join waitlistimport { createDoClient } from '@do-sdk/core';
// Initialize the client with your API key
const doClient = createDoClient({ apiKey: process.env.DO_API_KEY });
// Define the service and its input parameters
const serviceName = 'kyc-onboarding.services.do';
const serviceInput = {
email: 'jane.doe@example.com',
countryCode: 'US',
};
// Asynchronously invoke the agentic workflow
async function performKYC() {
try {
console.log(`Invoking service: ${serviceName}`);
const result = await doClient.invoke(serviceName, serviceInput);
console.log('Service finished successfully:', result);
// Expected result: { status: 'approved', riskScore: 0.1, ... }
} catch (error) {
console.error('Service invocation failed:', error);
}
}
performKYC();