Topo Logo
Topo
Official Topo Specification & Prompt Hub

Topo Architecture Specification

The complete metamodel definition, JSON exchange format, and prompt templates to generate rich, compliant architecture models locally using LLMs like Google Gemini, Claude, or ChatGPT.

1The 6 Metamodel Primitives

Topo models every system through a minimal, normalized ontology:

1. Domain

Strategic top-level territory within an Estate (e.g. Digital Commerce, Supply Chain). An Estate can have multiple Domains, and a Domain can have multiple Capabilities.

2. Capability & Sub-capability

Business outcome or technology-agnostic ability. Nests inside a Domain and can have multiple recursive Sub-capabilities (parent_capability_id) managed like a Capability.

3. Application & Sub-application

Software platform, microservice, or system inside a Capability or Sub-capability. Supports recursive Sub-applications (parent_application_id) managed like an Application, with Tier 1–5 criticality & Gartner TIME scoring.

4. Function & Sub-function

Operational feature inside an Application or Sub-application. Supports recursive Sub-functions (parent_function_id) managed like a Function and rendered as compact chips inside the parent Function card.

5. People

Stakeholder, customer role, colleague, or partner. Allowed roles: Customer, Colleague, Partner, or 3rd Party. Resides strictly at canvas root level (no parent).

6. Flow

Uni-directional runtime integration connecting Application ↔ Application or People ↔ Application, labeled with a short business payload (1–3 words, e.g. "Payment Auth") and transport channel (defaults to NA).

2LLM Prompt Template (e.g. Google Gemini)

Copy this master prompt into Google Gemini, Claude, or ChatGPT to automatically build out complete, valid Topo Studio models from any business brief. The prompt begins directly with the [Describe your system here...] placeholder at line 1 so you can edit your brief immediately. The prompt generates a normalized Metamodel v2.0 estate with 3 standard views:

View 1

Capability View

Capabilities grouped by strategic domain, with every capability linking directly to the application view.

View 2

Application View

Applications and integration flows without domains or capabilities, providing a clean systems diagram.

View 3

Full Overview

The entire landscape showing domains, capabilities, applications, functions, people, and all flows.

Built-in Importer Tolerance & Auto-Fixes
  • Timestamps: If created_at is omitted on any entity, Topo automatically populates it with today's date and time.
  • Document Wrapping: Both full Topo Interchange format (version + metadata) and simplified project format (project) are accepted seamlessly.
  • Flow Endpoints: Flows connect application ↔ application or people ↔ application. Any legacy function flow endpoints are automatically migrated to their owning application on import.
  • People Roles: Roles "Operative" and "Internal" are automatically mapped to "Colleague"; "Third-Party" is mapped to "3rd Party".
  • Canvas Nesting: people and domain elements are root-level canvas items. Any inadvertent parent_id is stripped automatically on import.
  • Gartner TIME Normalization: Any inverted word order or shorthand in time_treatment (e.g. "TOLERATE / MAINTAIN" or "Tolerate") is automatically normalized to the canonical "MAINTAIN / TOLERATE".
Prompt: Architecture Generator
Ready for Gemini 1.5 Pro / Flash & Claude 3.5
SYSTEM TO MODEL:
[Describe your system here, e.g. "A modern omni-channel e-commerce platform with Shopify storefront, Algolia search, Stripe payments, Fluent OMS, and SAP ERP"]

================================================================================
INSTRUCTIONS FOR ARCHITECTURE GENERATOR:
You are an expert Enterprise Solutions Architect generating a Topo Studio Architecture Model (Metamodel v2.0) for the system described above.
Topo Studio models system landscapes inside an Estate as a normalized, queryable graph using 6 primitives:

1. DOMAINS: Top-level strategic business territories within an Estate (e.g. "Digital Commerce", "Supply Chain", "Customer Operations"). A Domain can have multiple Capabilities.
2. CAPABILITIES & SUB-CAPABILITIES: Business outcomes realized by technology (e.g. "Cart & Checkout", "Payment Processing"). A Capability belongs to a Domain (domain_id) and can have multiple recursive Sub-capabilities (parent_capability_id), managed identically to a Capability. Capabilities also have an optional maturity level (1 = Initial, 2 = Managed, 3 = Defined, 4 = Quantified, 5 = Optimised).
3. APPLICATIONS & SUB-APPLICATIONS: Software platforms, systems, or microservices (e.g. "Storefront Web App", "SAP S/4HANA", "Stripe Gateway"). A Capability or Sub-capability can have multiple Applications (capability_id), and an Application can have multiple recursive Sub-applications (parent_application_id), managed identically to an Application. Applications have optional criticality tier (1..5), optional hosting_type ("Custom", "SaaS", "PaaS", "IaaS", "On-Prem"), optional business_value (1..5), optional technical_health (1..5), optional time_treatment ("EXPAND / INVEST" | "MAINTAIN / TOLERATE" | "REPLACE / MIGRATE" | "RETIRE / ELIMINATE"), optional renewal_date (YYYY-MM-DD), optional cost (annual run/license cost), and optional pace_layer ("System of Record" | "System of Differentiation" | "System of Innovation"). Omit optional attributes if unknown rather than guessing.
4. FUNCTIONS & SUB-FUNCTIONS: Discrete operational features or capabilities delivered inside an Application or Sub-application (application_id). A Function can have multiple recursive Sub-functions (parent_function_id), managed like a Function and rendered as compact chips inside the parent Function card on the canvas. Each function links to one or more capability_ids.
5. PEOPLE: Human personas, roles, or actors initiating or receiving information (e.g. "Online Shopper", "Fulfillment Manager") with an optional description and optional role_type ("Customer", "Colleague", "Partner", or "3rd Party").
6. FLOWS: Uni-directional runtime data or control integrations strictly connecting an Application to another Application (Application <-> Application) or People to/from an Application (People <-> Application). Each flow has 'data' (payload) and 'channel' (transport protocol, e.g. "NA", "REST / HTTP", "Event / Message", "Webhook"). Channel defaults to "NA" if unspecified.
   - PAYLOAD NAMING REQUIREMENT: Payloads ('data') MUST have short, concise names (1-3 words, max 20-25 characters, e.g. "Card Details", "Order Summary", "Payment Auth", "Customer Profile", "Auth Token", "Telemetry"). Do NOT use long descriptions, sentences, or wordy phrases for payloads because they are displayed directly on connector badges on the canvas.

VIEWS REQUIREMENT (Always generate exactly 3 complementary views in this exact order):
1. Capability View (id: "view_capabilities", name: "Capability View"):
   - The first view. Shows all business capabilities and sub-capabilities required for the system, grouped inside their owning strategic domains (parent_id: "inst_dom_...").
   - Do NOT include applications, functions, or flows on this view (included_flow_ids: []).
   - CRITICAL: Every capability must link through to the application view by setting "linked_view_id": "view_applications" on both the capability entity and its view node!
2. Application View (id: "view_applications", name: "Application View"):
   - The second view. Shows all applications (and actors/people initiating or receiving flows) and the integration flows between them.
   - Do NOT show any domains or capabilities on this view.
   - Applications sit directly at the canvas root (no parent_id). Internal functions can sit inside their applications.
   - Include all application integration flows in included_flow_ids.
3. Full Overview (id: "view_full_overview", name: "Full Overview"):
   - The third view. Shows the entire hierarchical landscape: Domains containing Capabilities; Capabilities containing Applications; Applications containing Functions; People actors; and all integration flows.

RESPONSE FORMAT (Output strictly raw JSON):
{
  "version": "1.0.0",
  "metadata": {
    "title": "My System Landscape",
    "description": "Enterprise architecture model with multi-view drilldown",
    "exported_at": "2026-11-06T00:00:00.000Z"
  },
  "project": {
    "id": "project_my_system",
    "name": "My System Landscape",
    "description": "Enterprise architecture model with multi-view drilldown",
    "created_at": "2026-11-06T00:00:00.000Z"
  },
  "domains": [
    { "id": "dom_commerce", "name": "Digital Commerce", "description": "Online customer purchasing", "created_at": "2026-11-06T00:00:00.000Z" }
  ],
  "capabilities": [
    { "id": "cap_checkout", "domain_id": "dom_commerce", "name": "Checkout & Payment", "description": "Customer checkout and settlement", "linked_view_id": "view_applications", "created_at": "2026-11-06T00:00:00.000Z" },
    { "id": "cap_fraud", "domain_id": "dom_commerce", "parent_capability_id": "cap_checkout", "name": "Fraud & 3DS Verification", "description": "Sub-capability for risk scoring", "linked_view_id": "view_applications", "created_at": "2026-11-06T00:00:00.000Z" }
  ],
  "applications": [
    { "id": "app_storefront", "capability_id": "cap_checkout", "name": "Storefront Web App", "tier": 1, "hosting_type": "Custom", "pace_layer": "System of Innovation", "business_value": 5, "technical_health": 5, "time_treatment": "EXPAND / INVEST", "renewal_date": "2027-06-30", "cost": 45000, "description": "Next.js web portal", "created_at": "2026-11-06T00:00:00.000Z" },
    { "id": "app_stripe", "capability_id": "cap_checkout", "name": "Stripe Gateway", "tier": 1, "hosting_type": "SaaS", "pace_layer": "System of Record", "business_value": 5, "technical_health": 4, "time_treatment": "EXPAND / INVEST", "renewal_date": "2026-12-15", "cost": 28000, "description": "Payment processor", "created_at": "2026-11-06T00:00:00.000Z" }
  ],
  "functions": [
    { "id": "fn_pay", "application_id": "app_storefront", "name": "Submit Payment", "capability_ids": ["cap_checkout"], "created_at": "2026-11-06T00:00:00.000Z" },
    { "id": "fn_3ds", "application_id": "app_storefront", "parent_function_id": "fn_pay", "name": "3DS2 Challenge", "capability_ids": ["cap_fraud"], "created_at": "2026-11-06T00:00:00.000Z" }
  ],
  "people": [
    { "id": "ppl_customer", "name": "Shopper", "role_type": "Customer", "created_at": "2026-11-06T00:00:00.000Z" }
  ],
  "flows": [
    {
      "id": "fl_1",
      "source_type": "people",
      "source_id": "ppl_customer",
      "target_type": "application",
      "target_id": "app_storefront",
      "data": "Card Details",
      "channel": "NA",
      "created_at": "2026-11-06T00:00:00.000Z"
    },
    {
      "id": "fl_2",
      "source_type": "application",
      "source_id": "app_storefront",
      "target_type": "application",
      "target_id": "app_stripe",
      "data": "Payment Auth",
      "channel": "REST / HTTP",
      "created_at": "2026-11-06T00:00:00.000Z"
    }
  ],
  "views": [
    {
      "id": "view_capabilities",
      "name": "Capability View",
      "created_at": "2026-11-06T00:00:00.000Z",
      "nodes": {
        "inst_dom_commerce": { "x": 100, "y": 80, "width": 540, "height": 320, "entity_id": "dom_commerce", "entity_type": "domain" },
        "inst_cap_checkout": { "x": 30, "y": 60, "width": 480, "height": 220, "parent_id": "inst_dom_commerce", "entity_id": "cap_checkout", "entity_type": "capability", "linked_view_id": "view_applications" },
        "inst_cap_fraud": { "x": 20, "y": 50, "width": 440, "height": 130, "parent_id": "inst_cap_checkout", "entity_id": "cap_fraud", "entity_type": "capability", "linked_view_id": "view_applications" }
      },
      "included_flow_ids": []
    },
    {
      "id": "view_applications",
      "name": "Application View",
      "created_at": "2026-11-06T00:00:00.000Z",
      "nodes": {
        "inst_ppl_customer": { "x": 60, "y": 140, "width": 180, "height": 80, "entity_id": "ppl_customer", "entity_type": "people" },
        "inst_app_storefront": { "x": 320, "y": 100, "width": 320, "height": 180, "entity_id": "app_storefront", "entity_type": "application" },
        "inst_fn_pay": { "x": 16, "y": 50, "width": 280, "height": 45, "parent_id": "inst_app_storefront", "entity_id": "fn_pay", "entity_type": "function" },
        "inst_fn_3ds": { "x": 16, "y": 105, "width": 280, "height": 45, "parent_id": "inst_app_storefront", "entity_id": "fn_3ds", "entity_type": "function" },
        "inst_app_stripe": { "x": 740, "y": 120, "width": 260, "height": 120, "entity_id": "app_stripe", "entity_type": "application" }
      },
      "included_flow_ids": ["fl_1", "fl_2"]
    },
    {
      "id": "view_full_overview",
      "name": "Full Overview",
      "created_at": "2026-11-06T00:00:00.000Z",
      "nodes": {
        "inst_ppl_customer": { "x": 40, "y": 180, "width": 180, "height": 80, "entity_id": "ppl_customer", "entity_type": "people" },
        "inst_dom_commerce": { "x": 280, "y": 60, "width": 560, "height": 420, "entity_id": "dom_commerce", "entity_type": "domain" },
        "inst_cap_checkout": { "x": 30, "y": 60, "width": 500, "height": 320, "parent_id": "inst_dom_commerce", "entity_id": "cap_checkout", "entity_type": "capability", "linked_view_id": "view_applications" },
        "inst_app_storefront": { "x": 20, "y": 50, "width": 460, "height": 140, "parent_id": "inst_cap_checkout", "entity_id": "app_storefront", "entity_type": "application" },
        "inst_fn_pay": { "x": 16, "y": 45, "width": 420, "height": 65, "parent_id": "inst_app_storefront", "entity_id": "fn_pay", "entity_type": "function" },
        "inst_app_stripe": { "x": 900, "y": 180, "width": 260, "height": 120, "entity_id": "app_stripe", "entity_type": "application" }
      },
      "included_flow_ids": ["fl_1", "fl_2"]
    }
  ]
}

VALIDATION & NESTING RULES (METAMODEL v2.0):
1. Document Wrapping: Include "version": "1.0.0" and a "metadata" object (with title, description, exported_at).
2. Timestamps: "created_at" timestamps are optional (Topo Studio auto-populates with the current date if omitted).
3. 3-View Standard Layout:
   - View 1 ("view_capabilities"): Only Domains & Capabilities/Sub-capabilities. All capabilities must have "linked_view_id": "view_applications".
   - View 2 ("view_applications"): Only Applications (placed at canvas root) and People actors, with all integration flows between them. No domains or capabilities.
   - View 3 ("view_full_overview"): Full nested hierarchy showing Domains, Capabilities, Applications, Functions, People, and Flows.
4. Flows & Payloads:
   - Flows strictly connect an Application to another Application ("source_type": "application", "target_type": "application") or People to/from an Application ("people" <-> "application"). Legacy function-level flow endpoints are automatically migrated to their owning Application on import.
   - Payloads ("data") MUST be short names (1-3 words, e.g. "Order Summary", "Payment Auth", "Customer Profile") so that connector labels on the canvas remain concise and legible. Avoid sentences or paragraphs.
5. People Roles: "role_type" must be "Customer", "Colleague", "Partner", or "3rd Party".
6. Recursive Hierarchy & Canvas Nesting:
   - An Estate contains multiple Domains ("domain" and "people" reside at the canvas root level without a "parent_id").
   - A Domain contains multiple Capabilities; a Capability can contain multiple Sub-capabilities ("parent_capability_id").
   - A Capability or Sub-capability contains multiple Applications ("capability_id"); an Application can contain multiple Sub-applications ("parent_application_id").
   - An Application or Sub-application contains multiple Functions ("application_id"); a Function can contain multiple Sub-functions ("parent_function_id").
7. Gartner TIME Treatment: "time_treatment" must be one of: "EXPAND / INVEST", "MAINTAIN / TOLERATE", "REPLACE / MIGRATE", or "RETIRE / ELIMINATE". (Topo Studio's forgiving importer automatically normalizes inverted order such as "TOLERATE / MAINTAIN" to "MAINTAIN / TOLERATE").

3JSON Interchange Schema

Topo estates are stored as normalized relational graphs. Below is the TypeScript specification for each entity:

// Document Root Wrapper
interface TopoExportFile {
  version: '1.0.0';
  metadata: {
    title: string;
    description?: string;
    exported_at: string;
  };
  project?: {
    id: string;
    name: string;
    description?: string;
    created_at?: string;
  };
  domains: DomainEntity[];
  capabilities: CapabilityEntity[];
  applications: ApplicationEntity[];
  functions: FunctionEntity[];
  people: PeopleEntity[];
  flows: FlowEntity[];
  views: ViewEntity[];
}
// 1. Domain Entity
interface DomainEntity {
  id: string;
  name: string;
  description?: string;
  linked_view_id?: string;
  created_at?: string; // Optional: auto-populated with today's date if omitted
}
// 2. Capability & Sub-Capability Entity
interface CapabilityEntity {
  id: string;
  domain_id: string;
  parent_capability_id?: string; // Recursive Sub-capability parent (unlimited depth)
  name: string;
  description?: string;
  linked_view_id?: string;
  created_at?: string;
}
// 3. Application & Sub-Application Entity
interface ApplicationEntity {
  id: string;
  name: string;
  description?: string;
  capability_id?: string; // Capability or Sub-capability this application belongs to
  parent_application_id?: string; // Recursive Sub-application parent (unlimited depth)
  tier: 1 | 2 | 3 | 4 | 5; // Tier 1: Mission Critical -> Tier 5: Ancillary
  hosting_type: 'Custom' | 'SaaS' | 'PaaS' | 'IaaS' | 'On-Prem';
  business_value: number; // 1 to 5 scale
  technical_health: number; // 1 to 5 scale
  time_treatment?: 'EXPAND / INVEST' | 'REPLACE / MIGRATE' | 'MAINTAIN / TOLERATE' | 'RETIRE / ELIMINATE';
  renewal_date?: string; // ISO date YYYY-MM-DD
  cost?: number; // Annual run / license cost in currency units
  linked_view_id?: string;
  created_at?: string;
}
// 4. Function & Sub-Function Entity
interface FunctionEntity {
  id: string;
  application_id: string; // Owning Application or Sub-application
  parent_function_id?: string; // Recursive Sub-function parent (unlimited depth)
  name: string;
  description?: string;
  capability_ids: string[]; // Capabilities or Sub-capabilities this function realizes
  created_at?: string;
}
// 5. People Entity
interface PeopleEntity {
  id: string;
  name: string;
  role_type: 'Customer' | 'Colleague' | 'Partner' | '3rd Party';
  created_at?: string;
}
// 6. Flow Definition (Application & People Endpoints)
interface FlowEntity {
  id: string;
  source_type: 'application' | 'people';
  source_id: string;
  target_type: 'application' | 'people';
  target_id: string;
  data: string;     // Short business payload name (1-3 words, e.g. 'Payment Auth')
  channel: string;  // Transport protocol (defaults to 'NA', hidden when 'NA')
  created_at?: string;
}
// 7. Canvas View Node Placement
interface ViewNodePosition {
  x: number;
  y: number;
  width?: number;
  height?: number;
  parent_id?: string; // Capabilities nest in Domains; Apps nest in Capabilities. People & Domains have NO parent_id.
  entity_id: string;
  entity_type: 'domain' | 'capability' | 'application' | 'function' | 'people';
  is_collapsed?: boolean;
}
Topo Studio • Architecture Modelling