← Blog

Templates for vertical AI agents: sales, legal research and agency client desktops

How to turn one Orgo template into the computer every customer of your vertical agent gets, with three worked setups.

Updated

A vertical agent product ships one Orgo template per vertical, such as a sales desk, a legal research desk or an agency client desktop, and launches a computer from it for each customer. The template holds what is the same for every customer: apps, files, network rules and triggers. What differs per customer stays out of it. Keys are saved as workspace secrets in your vault, one set per customer workspace, and app sign-ins belong to each customer's computer.

An Orgo template is one orgo.ai/v1 file that describes a whole computer. Orgo builds it once into a snapshot, and every computer launched from it starts from that snapshot (Templates). If you have not written one, read Orgo templates and triggers first.

What goes in the template

Template fieldWhat a vertical uses it for
apps with autostartOpen the browser on the pages the agent starts from
filesSeed folders, instructions or config the agent reads
secretsName the keys the agent needs, never their values
egress_policyFilter which domains the computer can look up, or which addresses it can reach
triggersTell your app when something happens on the computer
hardwareSize the computer for the work

Source: Template schema.

What stays per customer

In the templatePer customer
Software and filesInstalled apps, seeded files, autostart pagesFiles the agent creates while it works
KeysThe secret namesThe values, saved as workspace secrets in the launching user's vault
App accessNothingConnectors signed in on that one computer
NetworkThe egress rulesNone
PeopleNothingWorkspace members and their access level

At launch, Orgo writes each declared secret that is set in the vault to /root/.env under its uppercase name, so anthropic_api_key becomes ANTHROPIC_API_KEY (Secrets). A secret can be saved account-wide or for one workspace, and a workspace value overrides an account value with the same name.

The vault Orgo reads is the launching user's, not the customer's. When your server launches every customer's computer, each customer's values must be saved as your workspace secrets for that customer's workspace. An account-wide value reaches every customer's computer. A restricted API key without Secrets write launches the computer with none of your secrets (API key permissions).

An app connected on one computer belongs to that computer alone, even in the same workspace, and deleting the computer signs its apps out. Apps are connected from the agent setup sheet, which opens when the computer runs Hermes, OpenClaw, Claude Code or Codex. An agent loop you run yourself does not get them (Connectors).

A sales desk

A sales agent works in a browser, a CRM and email. This template opens the browser on the CRM and pings your app each weekday morning so it can hand that customer's agent its queue. If the computer runs one of the agents above, HubSpot or Salesforce can be connected on it through Connectors, under More apps.

Every computer launched from a template runs the same trigger, and the only placeholders are {{trigger}}, {{source}}, {{time}} and {{data.KEY}} (Triggers). Template vars are filled in before the build, so they are the same for every launch too. A plain webhook action would send the same body from every customer's computer, and your app could not tell them apart. So the template declares a desk_token secret. Your app issues one token per customer, you save it as that customer's workspace secret, and a command action sends it with the ping.

yaml
api_version: orgo.ai/v1
name:    sales-desk@1.0.0
cpu:     2
ram:     4gb
display: 1280x800
 
secrets:
  - name: anthropic_api_key
    description: Model key for the sales agent.
    optional: true
  - name: desk_token
    description: Per-customer token your app issued, saved as a workspace secret.
 
apps:
  - name: chrome
    title: "Chrome"
    autostart:
      - run: "google-chrome-stable --no-sandbox --disable-gpu --no-first-run --no-default-browser-check https://app.hubspot.com"
        delay: 2
 
triggers:
  - name: morning-queue
    source: { type: cron, schedule: "0 8 * * 1-5" }
    actions:
      - type: command
        run: |
          [ -f /root/.env ] && . /root/.env
          [ -n "$DESK_TOKEN" ] || exit 0
          curl -fsS -X POST https://your-app.example.com/hooks/orgo \
            -H "Authorization: Bearer $DESK_TOKEN" \
            -H "Content-Type: application/json" \
            -d '{"event": "{{trigger}}", "at": "{{time}}"}'

Chrome is already in the base image, so it needs no install step (Examples). A command action runs as root. The computer's clock is UTC, so 0 8 * * 1-5 fires at 08:00 UTC on weekdays; pick the hour for your customers' time zone. Template computers are created always-on, so the schedule fires until you stop the computer (Template schema).

A legal research agent needs a folder of matter files, a place to write memos, and tighter limits on where the computer connects. This template seeds a folder, restricts lookups to the model API, your research source, your app and Orgo, and tells your app when a new memo lands, with the same per-customer token.

yaml
api_version: orgo.ai/v1
name:    legal-research@1.0.0
cpu:     2
ram:     4gb
display: 1280x800
 
secrets:
  - name: anthropic_api_key
    description: Model key for the research agent.
    optional: true
  - name: desk_token
    description: Per-customer token your app issued, saved as a workspace secret.
 
files:
  /data/memos/README.txt: |
    The agent saves research memos in this folder.
 
egress_policy:
  mode: allow
  rules:
    - "api.anthropic.com"
    - "*.your-research-source.com"
    - "*.example.com"   # your app, which the trigger calls
    - "orgo.ai"         # Orgo's API, model gateway and Connectors
 
triggers:
  - name: new-memo
    source:
      type: file
      path: /data/memos
      events: [create]
    actions:
      - type: command
        run: |
          [ -f /root/.env ] && . /root/.env
          [ -n "$DESK_TOKEN" ] || exit 0
          curl -fsS -X POST https://your-app.example.com/hooks/memo \
            -H "Authorization: Bearer $DESK_TOKEN" \
            -H "Content-Type: application/json" \
            -d '{"path": "{{data.path}}"}'

Triggers run inside the computer, so they obey its egress policy. In allow mode every lookup that matches no rule is dropped. Without the *.example.com rule (use your app's real domain) the trigger could not reach your app. Only the VNC and Desktop API paths are exempt, so an agent that uses Orgo's model gateway, the computer's own ORGO_API_KEY or Connectors needs the orgo.ai rule (Triggers). Agent setup downloads packages when it runs, so install the agent in the template's build step, or allow those domains too.

The egress rules are narrower than they look (Template schema):

  • Domain rules filter DNS lookups only, and a rule matches any name that contains its second-level label. api.anthropic.com matches every name containing anthropic, and *.example.com every name containing example.
  • In allow mode with at least one domain rule, only lookups are filtered, so a connection made straight to an IP address is not blocked. With only IP or CIDR rules, all other traffic is dropped.
  • The VNC and Desktop API paths are always reachable, so you can still watch and drive the computer.

With domain rules, the policy limits what the computer can resolve, not what it can reach. Treat it as a guardrail, not a compliance control. GET /api/computers/{id}/egress shows what a running computer is allowed to reach.

An agency client desktop

An agency builds one agent and runs it for many clients. The template can be the same for every client; the separation comes from workspaces. The docs recommend one workspace per client, so each client's computers, agents, connected apps and secrets stay apart (Workspaces, members and clients).

The client needs toGive them
Watch the agent's screen and chat with the agentCan chat access to their workspace
Sign in to their own apps, operate the computers or manage themFull access to their workspace
Use the agent from inside your app, with no Orgo sign-inA client account from Invoicing

Can chat members watch the screens and chat with the agent, but can't click, type or open the terminal. Anyone who can chat with the agent, Can chat members included, can ask it to use the connected apps, so connect only accounts everyone in that workspace may use (Connectors).

Invoicing is on every paid plan. Each client gets their own workspace and an API key that reaches only it, and you choose whether you cover their computers or bill them monthly through a payment link in your business's name.

Launching for a new customer

  1. Validate the file. POST /api/templates/validate has no side effects and returns 422 with the exact field for each error (Validate template).

  2. Publish and build it once. Send the YAML with Content-Type: application/yaml, or the body is parsed as JSON (Templates quickstart):

    bash
    curl -X POST "https://www.orgo.ai/api/templates?auto_build=true" \
      -H "Authorization: Bearer $ORGO_API_KEY" \
      -H "Content-Type: application/yaml" \
      --data-binary @sales-desk.yaml
  3. Poll GET /api/templates/default/sales-desk/1.0.0/build until status is ready, or failed with an error. A launch before ready returns 409 with code TEMPLATE_NOT_READY (Get build status).

  4. Create or pick the customer's workspace. Every plan can own up to 9999 workspaces.

  5. Save that customer's values (their desk_token, and their model key if they bring one) as your workspace secrets for their workspace, with POST /api/secrets and its workspace_id. A client account's workspace is not in the Settings, Secrets picker.

  6. Launch a computer in that workspace with template_ref, for example default/sales-desk@1.0.0, through POST /api/computers, with a key that has Secrets write (Create computer).

  7. If the computer runs Hermes, OpenClaw, Claude Code or Codex, connect the customer's apps on it, or invite them with Full access to connect their own.

From the CLI, orgo templates validate sales-desk.yaml checks the file and orgo templates publish sales-desk.yaml --build publishes and builds it. While you iterate, ?force=true on publish replaces a version instead of returning 409. To ship a change to customers, publish a new version, such as sales-desk@1.1.0, and launch new computers from that ref.

Limits

These come from Account limits unless noted.

  • Publishing, building or test-running your own template needs Scale or Enterprise. Launching it needs a paid plan and counts against the workspace owner's computer limit.
  • Your own template cannot run by the hour, so a computer from it must fit your plan's vCPU and RAM pool. Past that, the create answers 403 with RAM_ADDON or VCPU_ADDON until you add capacity.
  • A paid account can have 50 computers. Past that, new computers run by the hour from credit, up to 999, and only blank computers or ones from a curated starter template (Hermes Agent, OpenClaw or Coding, for example) can run by the hour. A computer from your own template is refused there. Computers in a workspace a client pays for under Invoicing do not count toward the 50, but that workspace cannot cost more a month than the client pays (403 CLIENT_PRICE_EXCEEDED).
  • An account stores up to 100 templates. Publishing is limited to 10 in a burst, then 1 a second.
  • A launch never fails over a missing secret. The variable is absent, so check for it, as the trigger commands above do.
  • A launch that injects secrets cold-boots from the snapshot's disk instead of restoring its memory, so start programs that need a key as an app service or a terminal session's run (Secrets).
  • Templates build Linux computers only.
  • People per workspace depend on the owner's plan: 5 on Free, Starter and Growth, 25 on Scale, and no limit on Enterprise unless the contract sets one.
  • Orgo's curated templates are agent setups such as Coding, OpenClaw and Hermes Agent (List curated templates). There are no ready-made sales or legal templates; you write those.