Home / How it works
How it works

Join the business plane and the AI plane
with Bridge v1.

Your business system remains the single source of truth. The AI plane (DSH) keeps only conversations and memory, and reads business data on the user's behalf when needed. The two planes are joined by Bridge v1, a versioned HTTP protocol, and the manifest.

🏢 Business system

  • Business data · staff & roles
  • Rules · approvals · amounts · audit
  • Who gets notified

Bridge v1

+ manifest
OpenAPI 3.1

🤖 AI plane

  • Conversations · long-term memory
  • Automatic tasks · scheduled reports
  • 9 plugins

💬 Chat

  • Slack
  • LINE
  • Teams and more

The business plane owns

Business data, staff and roles, rules, approvals, amounts, audit, recipients and each person's notification settings, the AI employee's profile (versions and audit), and the manual index. No conversations.

The AI plane owns

Conversations, AI employee settings (persona and tools), chat connections, the automatic-task ledger and long-term memory. No business data — it reads the latest values through tools when needed.

Five layers

Five layers

Dependencies run L5 → L3 / L2 → L1. L3 does not know L2 and speaks only HTTP, so your system need not be Node.js.

LayerPackageRole
L1 protocol@dsh-bridge/protocolBridge v1 OpenAPI 3.1, manifest and event JSON Schemas, validators, the bridge-validate CLI and the conformance suite (52 checks)
L2 server-kit@dsh-bridge/server-kitNode.js parts for the business side: link codes, delegation, outbox, notifications, approvals, reports, proposals, manifest serving, personal-data screening… You write only hooks
L3 AI plane@dsh-bridge/dsh-core + 9 pluginsApplication registry, business API client, delegation cache, tool parts, the AI-secretary message frame, outbound screening
L4 Webgateway · web-kitAn authenticating gateway from your web app's BFF to the AI plane, and React UI parts
L5 adapterYour systemManifest, hooks (or aliases of existing APIs), hand-written tool and template modules, approval and proposal screens
Main flows

Main flows

① Business change → notification (rule-based, no model involved)

01Business row and event in the same transaction (outbox)
02Ingest: at least once · retry · dead letter
03Your system resolves the recipients
04Digests · quiet hours · channel priority
05AI-secretary message in the person's 1:1 chat

② Questions and delegation (the AI reads with the user's rights)

01An employee asks in chat
02Identity looked up from the sender (unlinked gets nothing)
03Delegation: AI allow-list ∩ role, ≤ 5 min
04Reads only what the user may see
05Answers in the person's 1:1 chat

③ Proposals and approvals (people decide, once)

01The AI checks by reading
02Proposal: POST /proposals → pending_review
03A person accepts or rejects (once) / one tap on the approval card
04Your system writes only when accepted

④ Automatic tasks and scheduled reports

01An event or a time wakes the AI employee (playbook)
02Reads with the rights of the employee chosen for that class
03Proposes if needed
04One message to the recipients (fixed text) · screened before sending
Principals

Who calls, and what they may do

PrincipalWhoMay do
ServiceThe AI plane (DSH)Identity lookup, minting delegations, events, resolving notifications, approval cards, manifest. Cannot read business data
DelegationThe AI employee acting for an employee (≤ 5 min)Only reads and proposals the employee's role allows. Writes, approvals and confirmations get 403
Employee sessionThe person using your web appIssue link codes, own links, notification settings, accept proposals, approve
BFFYour web app's serverAssistant tickets, attachment conversion, registering one's own bot
🧩

Several systems on one AI plane

Conversations, memory, automatic tasks and notifications are separated per application. Tokens and tools never cross applications.

🧱

A stateless Bridge v1

Sessions, rate limits, codes, delegations and events live in PostgreSQL, so the business side scales out.

🔐

An isolated AI plane

The AI plane runs in an isolated home; its admin token never reaches the browser.

Next, see what it can do.