Business
services-as-software
Build and deploy AI-powered services with code
services-as-software
Services-as-Software framework for transforming professional services—consulting, design, analysis—into deployable software with AI, automation, and human expertise.
Overview
Services-as-Software enables you to package professional services as software products that combine AI models, autonomous agents, and human-in-the-loop workflows for scalable service delivery.
Parent Primitive: services - Service deployment and management
SDK Object Mapping
This primitive integrates AI, workflows, and payments for monetizable AI services:
import { ai, workflow, on, send, payments, service } from 'sdk.do'
// Define AI-powered service
const strategist = service.define({
name: 'Business Strategy Consulting',
deliverables: ['Market Analysis', 'Growth Strategy', 'Roadmap'],
pricing: {
model: 'per-deliverable',
amount: 5000, // $50 per deliverable
currency: 'usd',
},
})
// AI - Service execution (ai is one of 8 core SDK objects)
workflow('execute-strategy-service', async ({ client, context }) => {
// AI-powered market analysis
const analysis = await ai.generate({
model: 'gpt-5',
prompt: `Analyze ${context.industry} market for ${client.name}`,
context: { industry: context.industry, company: client },
})
// AI-powered strategy generation
const strategy = await ai.generate({
model: 'claude-sonnet-4.5',
prompt: 'Generate growth strategy based on analysis',
context: { analysis },
})
// Human review step
await send($.HumanReview.request, {
deliverable: strategy,
reviewer: 'senior-strategist',
deadline: Date.now() + 86400000, // 24 hours
})
return { analysis, strategy }
})
// ON - Service events with payment (on is one of 8 core SDK objects)
on($.Service.completed, async ({ service, result }) => {
// Process payment
await payments.charge({
customer: service.client.id,
amount: service.pricing.amount,
description: `${service.name} - Completed`,
metadata: { serviceId: service.id },
})
// Send deliverables
await send($.Email.send, {
to: service.client.email,
template: 'service-completed',
attachments: result.deliverables,
})
})Quick Example
import { service } from 'sdk.do'
// Define service
const consulting = service.define({
name: 'Business Strategy Consulting',
deliverables: ['Market Analysis', 'Growth Strategy', 'Roadmap'],
ai: {
models: ['gpt-5', 'claude-sonnet-4.5'],
agents: ['research-analyst', 'strategist'],
},
})
// Execute service
const result = await consulting.execute({
client: 'acme-inc',
context: { industry: 'Technology' },
})Core Capabilities
- Service Definition - Package services as deployable software
- AI-Powered Delivery - Leverage LLMs and agents for service execution
- Human-in-Loop - Combine AI with human expertise where needed
- Scalable Delivery - Execute services at software scale
- Quality Assurance - Built-in validation and review workflows
Access Methods
SDK
TypeScript/JavaScript library for service development
await service.define({ name: 'Business Strategy', deliverables: ['Analysis', 'Roadmap'] })CLI
Command-line tool for service management
do service create "Business Strategy" --deliverables "Analysis,Roadmap"API
REST/RPC endpoints for service delivery
curl -X POST https://api.do/v1/services -d '{"name":"Business Strategy","deliverables":[...]}'MCP
Model Context Protocol for AI-driven service delivery
Create a Business Strategy service with deliverables: Market Analysis and Growth RoadmapRelated Primitives
Parent Primitive
- services - Service deployment and management
Sibling Primitives
- business-as-code - Business process modeling