Proof through real scenarios

Templates that show the open system in practice.

These scenarios are the fastest way to understand ContractSpec: explicit contracts, aligned surfaces, and an adoption path from OSS exploration into Studio deployment.

49curated scenarios
1entry paths
OSSfirst, Studio second

Browse by source

Use local scenarios for core proof, then scan the community.

Local templates show the official adoption path. Community browsing appears automatically when a registry URL is configured.

New

Minimal Example

Single-command starter for validating the ContractSpec basics.

TemplateStable
exampleminimalquickstart
Open Sandbox
New

Messaging Agent Actions

Live-provider messaging demo with safe action routing and deterministic proof coverage.

IntegrationBeta
agentsmessagingslacktelegramwhatsapp
Open Sandbox
New

Policy-safe Knowledge Assistant

All-in-one template: locale/jurisdiction gating + versioned KB snapshots + HITL update pipeline + learning hub.

TemplateExperimental
assistanthitlknowledgelearningpolicy
Open Sandbox
New

Visualization Showcase

Focused reference example for ContractSpec-owned visualization primitives and design-system wrappers.

UiExperimental
chartsuivisualization

Agent Console

AI agent ops console: tools, agents, runs, logs, and metrics (spec-first, regenerable).

TemplateBeta

Features: Seeded autonomous agents, Tool registry, Run execution history, Metrics, Markdown and React views

agentsaiorchestrationtools

AI Chat Assistant

Focused template: full ai-chat with reasoning, chain of thought, sources, suggestions, and MCP tools.

TemplateBeta
aichatmcptools

AI Support Bot

Classify and resolve a support ticket (with a drafted response) using the support-bot and knowledge libraries.

ScriptExperimental
aiknowledgesupporttickets
Open Sandbox

Analytics Dashboard

Tenant-scoped dashboards, widgets, query builder, and scheduled reports (spec-first widgets/queries).

TemplateExperimental
analyticsbidashboardsqueries

Content Generation

Generate blog/landing/email/social/SEO assets from a typed ContentBrief using @contractspec/lib.content-gen.

ScriptExperimental
aicontentgenerationmarketing
Open Sandbox

CRM Pipeline

Sales CRM with contacts, companies, deals, pipelines, and tasks.

TemplateExperimental
crmdealspipelinesales

Gmail Inbound and Outbound

List Gmail threads/messages and send outbound email using the Gmail providers.

IntegrationExperimental
emailgmailinboundintegrationsoutbound
Open Sandbox

Google Calendar

List upcoming events and create a new event using the Google Calendar provider.

IntegrationExperimental
calendargoogle-calendarintegrations
Open Sandbox

Integration - Supabase Vector + Postgres

Wire AppBlueprint and TenantAppConfig to use Supabase for both vector retrieval and SQL workloads.

IntegrationExperimental
integrationknowledgepgvectorpostgressupabase
Open Sandbox

Integration — PostHog Analytics

Capture events, run HogQL, and manage PostHog assets via AnalyticsProvider.

IntegrationExperimental
analyticshogqlintegrationposthog
Open Sandbox

Integration — Stripe Payments

Wire AppBlueprint + Workflow + TenantAppConfig to enable Stripe-backed payments (spec-first integration pattern).

IntegrationExperimental
blueprintintegrationpaymentsstripeworkflow
Open Sandbox

Integration Hub

Provider-agnostic integration center with connectors, connections, field mappings, and sync logs.

TemplateExperimental
connectorsetlintegrationssync

KB Update Pipeline

Automation proposes KB updates; humans verify; everything audited and notified.

KnowledgeExperimental
audithitlknowledgepipeline
Open Sandbox

Knowledge Canon (Product Canon space)

Bind a canonical knowledge space to a tenant and route assistant/workflow requests to the right sources (blueprint + app config pattern).

KnowledgeExperimental
agentsapp-configcanonknowledgeworkflows
Open Sandbox

Learning Journey — Ambient Coach

Ambient coaching pattern: lightweight nudges driven by context and recent progress.

TemplateExperimental
ambientcoachinglearning
Open Sandbox

Learning Journey — CRM First Win

Onboarding track for CRM Pipeline driving users from empty CRM to first closed-won deal.

TemplateExperimental
crmlearningonboarding
Open Sandbox

Learning Journey — Duo Drills

Short drill/SRS example with XP and streak hooks for language, finance, or ContractSpec concept drills.

TemplateExperimental
drillslearningsrsxp
Open Sandbox

Learning Journey — Platform Tour

Learning journey track + contracts + presentations for a platform tour.

TemplateExperimental
journeylearningplatform-tour
Open Sandbox

Learning Journey — Quest Challenges

Quest/challenge pattern: multi-step goals with progress events, rewards, and streak hooks.

TemplateExperimental
challengeslearningquests
Open Sandbox

Learning Journey — Studio Getting Started

Onboarding track guiding a new Studio user through template spawn, spec edit, regeneration, playground, and evolution.

TemplateExperimental
learningonboardingstudio
Open Sandbox

Learning Journey Registry

Registry of learning journey tracks + presentations + UI mini-app bindings.

LibraryExperimental
journeylearningregistry
Open Sandbox

Learning Journey UI — Coaching

UI mini-app for coaching patterns: tips, engagement meter, progress.

UiExperimental
coachinglearningui
Open Sandbox

Learning Journey UI — Gamified

UI mini-app for gamified learning: flashcards, mastery ring, calendar.

UiExperimental
gamifiedlearningui
Open Sandbox

Learning Journey UI — Onboarding

UI mini-app for onboarding patterns: checklists, code snippets, journey map.

UiExperimental
learningonboardingui
Open Sandbox

Learning Journey UI — Shared

Shared UI components and hooks for learning journey mini-apps.

UiExperimental
learningsharedui
Open Sandbox

Learning Patterns

Domain-agnostic learning archetypes implemented as Learning Journey tracks.

LibraryExperimental
journeylearningpatterns
Open Sandbox

Lifecycle CLI

Tiny script showing how to run the lifecycle managed service from a CLI (no HTTP server required).

ScriptExperimental
clidemolifecycle
Open Sandbox

Lifecycle Dashboard (snippet)

A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.

BlueprintExperimental
dashboardlifecyclenextjssnippet
Open Sandbox

Locale / Jurisdiction Gate

Fail-closed gating for assistant calls: locale + jurisdiction + kbSnapshotId + allowedScope must be explicit, answers must cite a snapshot.

KnowledgeExperimental
assistantgatingjurisdictionlocalepolicy
Open Sandbox

Marketplace (2-sided)

Two-sided marketplace with stores, products, orders, payouts, and reviews (multi-actor flows).

TemplateExperimental
marketplaceorderspayoutsreviews

Meeting Recorder Providers

Multi-provider meeting recorder integration example with list, transcript, and webhook handling.

IntegrationExperimental
integrationsmeeting-recordertranscriptswebhooks
Open Sandbox

Open Banking — Powens

OAuth callback + webhook handler patterns for Powens open banking integration (provider + workflow orchestration).

IntegrationExperimental
integrationsoauthopenbankingpowenswebhooks
Open Sandbox

Personalization Patterns

Small examples for behavior tracking, overlay-based UI customization, and tenant workflow extension.

LibraryExperimental
behavioroverlayspersonalizationworkflows
Open Sandbox

Pocket Family Office

Personal finance automation with document ingestion, open banking, and AI summaries

TemplateExperimental
automationdocumentsfamily-officefinanceopen-banking
Open Sandbox

Project Management Sync

Create project-management work items in Linear, Jira Cloud, or Notion from a shared payload.

IntegrationExperimental
integrationsjiralinearnotionproject-management
Open Sandbox

SaaS Boilerplate

Multi-tenant SaaS foundation with orgs, projects, settings, billing usage, and RBAC.

TemplateExperimental
billingmulti-tenantrbacsaas

Service Business OS

Service business operating system: jobs, clients, scheduling, invoicing, and ops dashboards.

TemplateExperimental
invoicingjobsschedulingservice-business
Open Sandbox

Team Hub

Internal collaboration hub with spaces, tasks, rituals, and announcements.

TemplateExperimental
announcementscollaborationritualstasks
Open Sandbox

Versioned Knowledge Base

Curated KB with immutable sources, reviewable rule versions, and published snapshots.

KnowledgeExperimental
knowledgesnapshotsversioning
Open Sandbox

Video API Showcase

Generate API documentation videos from contract spec definitions using the ApiOverview composition.

ScriptExperimental
apidocumentationspec-drivenvideo
Open Sandbox

Video Docs Terminal

Generate terminal demo videos from CLI walkthroughs using the TerminalDemo composition and ScriptGenerator.

ScriptExperimental
clidocumentationterminaltutorialvideo
Open Sandbox

Video Marketing Clips

Generate short-form marketing videos from content briefs using the deterministic video-gen pipeline.

ScriptExperimental
content-genmarketingsocial-clipvideo
Open Sandbox

Voice Providers (Gradium and Fal)

Multi-provider voice integration example for Gradium and Fal text-to-speech adapters.

IntegrationExperimental
falgradiumintegrationsttsvoice
Open Sandbox

Wealth Snapshot

Simple wealth overview with accounts, assets, liabilities, goals, and net-worth snapshots.

TemplateExperimental
financegoalsnet-worth
Open Sandbox

Workflow / Approval System

State-machine driven approvals with RBAC, audit trail, notifications, and jobs.

TemplateExperimental
approvalrbacstate-machineworkflow

From template to real system

Templates become useful when the system can absorb more context.

Use templates to prove the base flow, then layer integrations, knowledge, and runtime behavior on top without losing the same contract source.

💳

Add payments

Connect Stripe to any template for payment processing, subscriptions, and invoicing. Type-safe and policy-enforced.

Learn more →
📧

Add notifications

Send transactional emails via Postmark or Resend. Process inbound emails with Gmail API. SMS via Twilio.

View integrations →
🧠

Add AI and knowledge

Power templates with OpenAI, vector search via Qdrant, and structured knowledge spaces for context-aware workflows.

Learn about knowledge →

All integrations are configured per-tenant with automatic health checks and credential rotation.

View Architecture