.do

Services-as-Software

Build and monetize intelligent services combining AI, automation, and business logic

Transform traditional services into composable, autonomous software components that can be deployed, scaled, and monetized programmatically.

What is Services-as-Software?

Services-as-Software represents a paradigm shift where professional services—traditionally delivered by humans—are packaged as intelligent, autonomous software components. These services combine AI capabilities, business logic, and automation into deliverable, monetizable products.

import $, { ai, on, send } from 'sdk.do'

// Define a content generation service
const contentService = await $.Service.create({
  name: 'Blog Post Generator',
  type: $.ServiceType.ContentGeneration,
  pricing: {
    model: 'per-word',
    rate: 0.05,
    currency: 'USD',
  },
})

// Service execution
on.Order.created(async (order) => {
  // Generate content using AI
  const content = await ai.generate({
    model: 'gpt-5',
    prompt: order.requirements.prompt,
    style: order.requirements.style,
    length: order.requirements.wordCount,
  })

  // Process and deliver
  send($.Content.deliver, {
    orderId: order.id,
    content,
    format: 'markdown',
  })

  // Handle billing
  const cost = content.wordCount * contentService.pricing.rate
  send($.Payment.charge, { orderId: order.id, amount: cost })
})

Key Principles

graph TB SaS[Services-as-Software] SaS --> SW[Services are Software] SaS --> Comp[Composable Architecture] SaS --> AI[AI-Native Design] SaS --> Money[Built-in Monetization] SW --> SW1[Automated] SW --> SW2[Scalable] SW --> SW3[Consistent] SW --> SW4[Measurable] Comp --> C1[Combined] Comp --> C2[Customized] Comp --> C3[Reused] Comp --> C4[Extended] AI --> A1[Intelligence] AI --> A2[Adaptation] AI --> A3[Personalization] AI --> A4[Automation] Money --> M1[Pricing Models] Money --> M2[Billing Logic] Money --> M3[Usage Tracking] Money --> M4[Revenue Attribution]

1. Services are Software

Traditional services require human labor for each delivery. Services-as-Software are:

  • Automated: Execute without manual intervention
  • Scalable: Handle unlimited concurrent requests
  • Consistent: Deliver predictable quality
  • Measurable: Track performance metrics automatically

2. Composable Architecture

Services are built from modular components that can be:

  • Combined: Multiple services work together
  • Customized: Configured for specific use cases
  • Reused: Share components across services
  • Extended: Add new capabilities easily

3. AI-Native Design

Services leverage AI for:

  • Intelligence: Make decisions and recommendations
  • Adaptation: Learn from usage patterns
  • Personalization: Tailor outputs to user needs
  • Automation: Handle complex tasks autonomously

4. Built-in Monetization

Every service includes:

  • Pricing models: Per-use, subscription, tiered
  • Billing logic: Automatic charge calculation
  • Usage tracking: Monitor consumption
  • Revenue attribution: Track earnings per service

Service Categories

AI Services

Leverage generative AI and machine learning. Explore AI Services →

Automation Services

Process automation and orchestration. Explore Automation Services →

Data Services

Data processing and enrichment. Explore Data Services →

Integration Services

Connect systems and platforms. Explore Integration Services →

Business Services

Complete business process delivery. Explore Business Services →

Why Services-as-Software?

Traditional Service Model

  • Manual delivery for each client
  • Limited scalability
  • Inconsistent quality
  • High marginal costs
  • Linear revenue growth

Services-as-Software Model

  • Automated delivery
  • Infinite scalability
  • Consistent quality
  • Near-zero marginal costs
  • Exponential revenue potential

Getting Started

Services-as-Software builds on Business-as-Code principles to create deliverable, monetizable offerings. Start by:

  1. Understanding Core Concepts - Learn the fundamentals
  2. Exploring Service Types - Discover what you can build
  3. Building Your First Service - Create a simple service
  4. Implementing Monetization - Add pricing and billing
  5. Deploying Services - Launch to production

Quick Example: Analysis Service

Here is a complete example of a data analysis service:

import $, { ai, db, on, send } from 'sdk.do'

// Define the service
const analysisService = await $.Service.create({
  name: 'Sales Data Analyzer',
  description: 'Automated sales data analysis and insights',
  type: $.ServiceType.DataAnalysis,
  pricing: {
    model: 'per-analysis',
    rate: 25.0,
    currency: 'USD',
  },
})

// Service implementation
on.AnalysisRequest.created(async (request) => {
  db.SalesTransaction.query({
    dateRange: request.dateRange,
    businessId: request.businessId,
  })
    .then(async (salesData) => {
      // Perform AI analysis
      const insights = await ai.analyze({
        model: 'gpt-5',
        data: salesData,
        analysis: ['trends', 'anomalies', 'predictions', 'recommendations'],
      })

      // Generate report
      const report = await ai.generate({
        model: 'gpt-5',
        template: 'sales-analysis-report',
        data: {
          salesData,
          insights,
          period: request.dateRange,
        },
      })

      // Deliver results
      send($.Report.deliver, {
        requestId: request.id,
        report,
        insights,
        format: 'pdf',
      })

      // Bill for service
      send($.Payment.charge, {
        customerId: request.customerId,
        amount: analysisService.pricing.rate,
        description: `Sales Analysis - ${request.dateRange}`,
      })

      // Update service metrics
      db.update(analysisService, {
        totalAnalyses: { increment: 1 },
        totalRevenue: { increment: analysisService.pricing.rate },
      })
    })
    .catch((error) => {
      send($.Error.notify, {
        requestId: request.id,
        error: error.message,
      })
    })
})

Documentation Structure

Explore the comprehensive documentation:

Next Steps

Ready to build your first service? Start with Core Concepts →