Back

Custom Styling Your Autonomous Business Services

Transform your Services-as-Software into unique brand experiences with semantic patterns and the .do platform

Business-as-CodeServices-as-SoftwareTutorialAI

Custom Styling Your Autonomous Business Services

Transform your Services-as-Software into unique brand experiences with semantic patterns and the .do platform.

Customizing Your Service Theme

Start by extending semantic types and defining your business patterns:

// service.config.ts
import $ from 'sdk.do'

export const service = {
  identity: {
    name: 'CFO.do',
    role: $.Occupation['13-2051.00'], // O*NET: Financial Managers
    brand: {
      colors: {
        primary: '#0ea5e9',
        secondary: '#0c4a6e',
        accent: '#f0f9ff',
      },
      voice: 'professional-analytical',
      personality: ['detail-oriented', 'strategic', 'trustworthy'],
    },
  },
  capabilities: ['financial-planning', 'analysis', 'forecasting', 'reporting'],
  integrations: ['quickbooks', 'stripe', 'bank-accounts'],
}

Creating Custom Autonomous Workflows

Build reusable business logic with semantic patterns:

// workflows/monthly-reporting.ts
import { on, send, ai, db, every } from 'sdk.do'

export const monthlyReporting = every($.Monthly, async () => {
  // Generate comprehensive financial report
  const report = await ai.generateObject({
    prompt: 'Create board-ready financial report',
    schema: $.FinancialReport,
    context: {
      revenue: await db.list('Revenue', { months: 12 }),
      expenses: await db.list('Expense', { months: 12 }),
      cashFlow: await db.get('CashFlowAnalysis', 'latest'),
    },
  })

  // Semantic event distribution
  await send($.Report.generated, {
    report,
    recipients: await db.list('Stakeholder', {
      role: 'board-member',
    }),
  })

  // Update dashboard with real-time insights
  await send($.Dashboard.refresh, {
    metrics: ['revenue', 'burn-rate', 'runway'],
  })
})

Animated Business Intelligence

Add real-time responsiveness to your autonomous services:

// agents/cfo-agent.ts
import { on, send, ai, user } from 'sdk.do'

// Real-time invoice reconciliation
on($.Invoice.paid, async (event) => {
  const invoice = event.what

  // Autonomous reconciliation
  await send($.Accounting.reconcile, {
    transaction: invoice,
    account: 'accounts-receivable',
  })

  // Intelligent cash flow analysis
  const analysis = await ai.analyze({
    prompt: 'Analyze impact on cash flow runway',
    context: {
      payment: invoice,
      currentCash: await db.get('CashPosition', 'current'),
      burnRate: await db.get('BurnRate', 'current'),
    },
  })

  // Alert if runway drops below threshold
  if (analysis.runway < 90) {
    await send($.Alert.critical, {
      message: `Runway below 90 days: ${analysis.runway} days`,
      recipient: await user.getByRole('ceo'),
    })
  }
})

Multi-Channel Service Deployment

Implement your service across all distribution channels:

// deployment/multi-channel.ts
import { deploy } from 'sdk.do'

export const deployService = async () => {
  // Deploy to web via sites.do
  await deploy.web({
    domain: 'cfo.do',
    landing: await ai.generate({
      prompt: 'Create compelling CFO.do landing page',
      schema: $.LandingPage,
      brand: service.identity.brand,
    }),
  })

  // Deploy to ChatGPT via Actions
  await deploy.chatgpt({
    name: 'Autonomous CFO',
    description: 'AI-powered CFO delivering 24/7 financial insights',
    actions: ['analyze-cash-flow', 'generate-forecast', 'optimize-spend'],
  })

  // Deploy to Claude via MCP
  await deploy.claude({
    server: 'mcp.do',
    tools: ['financial-analysis', 'board-reporting', 'scenario-planning'],
  })

  // Expose REST API
  await deploy.api({
    endpoint: 'api.cfo.do',
    rpc: true,
    authentication: 'oauth2',
  })
}

Semantic Variables for Dynamic Services

Use semantic patterns for maximum flexibility:

// semantic/business-context.ts
import $ from 'sdk.do'

// Define business relationships as executable code
export const context = {
  // Organization structure
  organization: $.Organization,
  departments: $.Organization.hasDepartment.Department,
  employees: $.Organization.employs.Person,

  // Financial relationships
  accounts: $.Organization.owns.BankAccount,
  revenue: $.Organization.receives.Invoice,
  expenses: $.Organization.pays.Expense,

  // Workflow patterns
  approvals: $.Action.requires.Approval,
  notifications: $.Event.triggers.Notification,
  escalations: $.Issue.escalatesTo.Person,
}

// AI automatically understands these semantic relationships
const cashFlowForecast = await ai.generate({
  prompt: 'Forecast next quarter cash flow',
  context: {
    organization: context.organization,
    historicalRevenue: await context.revenue.list({ months: 24 }),
    recurringExpenses: await context.expenses.list({ recurring: true }),
  },
})

Responsive Business Operations

Create adaptive workflows that scale across customer sizes:

// workflows/adaptive-service.ts
import { on, ai, db } from 'sdk.do'

on($.Customer.onboarded, async (event) => {
  const customer = event.what

  // Adapt service depth based on customer profile
  const serviceLevel =
    customer.employees < 50
      ? 'essential' // Basic automation for small businesses
      : customer.employees < 500
        ? 'professional' // Enhanced analysis for mid-market
        : 'enterprise' // Full-depth CFO services

  // Configure workflows semantically
  await db.create('ServiceConfiguration', {
    customer: customer.$id,
    level: serviceLevel,
    workflows:
      serviceLevel === 'enterprise'
        ? ['daily-cash-analysis', 'weekly-variance-reporting', 'monthly-board-decks', 'quarterly-strategic-planning', 'annual-budgeting']
        : ['weekly-financial-snapshot', 'monthly-summary', 'quarterly-taxes'],
    integrations: await ai.recommend({
      prompt: 'Suggest optimal integrations',
      context: { customer, serviceLevel },
    }),
  })

  // Generate personalized welcome workflow
  await ai.generate({
    prompt: 'Create onboarding sequence',
    schema: $.EmailSequence,
    context: { customer, serviceLevel },
  })
})

Production-Ready Service Architecture

Deploy services with enterprise-grade infrastructure:

// infrastructure/service-stack.ts
import { deploy, every, on } from 'sdk.do'

export const serviceStack = {
  // Multi-tier storage
  storage: {
    hot: 'D1', // <1ms queries for real-time dashboards
    warm: 'Postgres', // <10ms for transactional data
    cold: 'R2', // Unlimited historical archives
  },

  // Autonomous workflows
  workflows: {
    scheduled: [every($.Daily, 'cash-flow-analysis'), every($.Weekly, 'variance-reporting'), every($.Monthly, 'board-deck-generation')],
    eventDriven: [on($.Invoice.paid, 'reconciliation'), on($.Expense.submitted, 'approval-routing'), on($.Alert.critical, 'executive-notification')],
  },

  // AI model management
  ai: {
    providers: ['openai', 'anthropic', 'google'],
    routing: 'intelligent',
    fallback: 'automatic',
    evaluation: 'continuous',
  },

  // Observability
  monitoring: {
    traces: 'trace.do',
    analytics: 'analytics.do',
    alerts: 'humans.do', // Human escalation when needed
  },
}

Key Benefits of the .do Approach

100-1000x Cost Reduction

Traditional professional services require human experts at $150-300/hour. The .do platform transforms these into autonomous software services at $1-10/month subscriptions, delivering massive cost savings while maintaining 24/7 availability.

Semantic Architecture

Business relationships become executable code through $.Subject.predicate.Object patterns. AI agents natively understand your business logic because it's expressed in machine-readable semantic patterns, not buried in documentation.

Multi-Provider AI

Built-in support for OpenAI (GPT-5), Anthropic (Claude Sonnet 4.5), Google (Gemini 2.5 Pro), and more. Intelligent routing, automatic fallback, and continuous evaluation ensure optimal performance.

Enterprise-Grade Infrastructure

88 deployed Cloudflare Workers, 150+ Payload CMS collections, multi-tier storage (D1, PostgreSQL, R2), and real-time event pipelines provide production-ready infrastructure from day one.

Open-Source Ecosystem

45+ packages under the @dotdo namespace including sdk.do, graphdl, schema.org.ai, soc.org.ai (O*NET), and business-as-code enable rapid development with standardized patterns.

Getting Started

Install the SDK and start building your autonomous service:

# Install the SDK
pnpm add sdk.do

# Initialize your service
pnpm dlx create-service.do my-autonomous-cfo

Define your service configuration:

// service.config.ts
import $ from 'sdk.do'

export default {
  name: 'My Autonomous CFO',
  occupation: $.Occupation['13-2051.00'],
  capabilities: ['financial-analysis', 'cash-flow-forecasting', 'budget-planning', 'board-reporting'],
  integrations: ['quickbooks', 'stripe', 'plaid'],
  deployment: {
    web: true,
    chatgpt: true,
    claude: true,
    api: true,
  },
}

Deploy across all channels:

# Deploy to all platforms
pnpm deploy

# Your service is now live at:
# - Web: https://my-cfo.do
# - ChatGPT: Available in GPT Store
# - Claude: Available via MCP
# - API: https://api.my-cfo.do

Learn More

The .do Opportunity

The global services economy is $100+ trillion annually. Every CFO, accountant, analyst, and consultant represents $100K-500K/year in labor costs. The .do platform replaces this with $1K-10K/year software subscriptions.

This is the AWS moment for autonomous business operations. Just as Infrastructure-as-Code enabled the SaaS revolution, Business-as-Code enables the Services-as-Software revolution.

Start building your autonomous business service today and join the revolution.


Built with ❤️ by the .do team | GitHub | Website

Limited Access

Build Your Waitlist

Create beautiful, high-converting waitlist pages in minutes. Join thousands already on the list.

Get Early Access

Read more

Email Integration Guide

Connect your waitlist to popular email services and automate your workflow

Getting Started with Waitlist.do

Learn how to set up your first waitlist in minutes

Analytics & Tracking Setup

Track conversions and optimize your waitlist performance with analytics