In today's data-driven world, the quality of your information can make or break your sales, marketing, and operations. But let's be honest: manually enriching data is a soul-crushing task. It's repetitive, slow, and prone to human error. Teams spend countless hours hunting for company logos, descriptions, and employee counts instead of focusing on high-value work.
What if you could reclaim that time? What if you could enrich any company's data with a single, simple API call, treating this entire business process as a piece of software?
Welcome to the world of Services as Software. With service.do, you can transform complex business operations into programmable, on-demand services powered by intelligent agentic workflows. This guide will walk you through a practical example: automating company data enrichment using the service.do SDK.
Before we dive into the solution, let's acknowledge the pain. For any company that relies on lead lists, CRMs, or market research, the struggle is real:
This process is a perfect candidate for automation. It's a repeatable, definable workflow that cries out for a "Business as Code" approach.
The service.do platform is built on a simple yet powerful premise: any business process can be a programmable service. It allows you to define, deploy, and manage your operational workflows as simple APIs and SDKs.
At the heart of service.do are agentic workflows. When you call a service, you're not just hitting a static endpoint. You are activating an intelligent AI agent (or a team of agents) that uses a series of tools and steps to accomplish a goal—in this case, finding and structuring a company's data.
This means you get the consistency and scalability of software applied directly to your business operations.
Enough theory. Let's build something. We will use the service.do TypeScript SDK to invoke a pre-existing service called data-enrichment.service.do.
First, you'll need to add the .do core SDK to your project.
npm install @do-sdk/core
# or
yarn add @do-sdk/core
You will also need an API key from your service.do account to authenticate your requests.
The code to run this service is remarkably simple. You initialize a client, get a handle to the service you want, and then run it with your desired inputs.
Here is the complete example:
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 {
console.log(`Fetching data for ${domain}...`);
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 for a target company
enrichCompanyData('example.com');
Let's break that down:
A successful run might produce a console log like this:
Fetching data for example.com...
Enriched Data: {
"logo": "https://www.example.com/images/logo.png",
"description": "Example.com is a domain established to be used for illustrative examples in documents. Using this domain in documents is done without prior coordination or asking for permission.",
"employeeCount": 250
}
When you call .run(), you're launching an agentic workflow on the .do platform. This workflow might:
You get the benefit of this complex, multi-tool workflow without having to build or maintain any of it. That’s the power of Service Automation.
Data enrichment is just one example. service.do is designed to be composable. Any repeatable business process can become a service. Imagine services for:
By turning your operations into a library of on-demand API services, you can build more powerful, automated, and scalable applications than ever before.
Ready to stop the manual grind and start treating your business like software? Visit service.do to learn more and transform your first business process into a programmable service.