Examples
Google Docs + Slack (dual-surface)
Runtime flow
| Stage | Role in this pattern |
| --- | --- |
| Provider | LLM drafts or revises proposal content (summary, rationale, risk notes) from Doc context |
| Loop + Guards | Versioned loop definition; evidence-required, tier guards, optional confidence-threshold |
| Channel | Slack — approver receives interactive approval; unmapped Slack users are rejected |
| Integration | Google Docs — snapshot/hash evidence; apply or publish only after approved transition |
| Evidence | Doc revision hash, prompt attribution, Slack actor mapping → platform actorId, transition audit |
1Google Doc (work) Slack (decisions) Loop Engine Cloud2 │ │ │3 │ context + draft │ approve / reject │ guards + state4 └──────────────────────────┴────────────────────────────┘5 │6 ▼7 Evidence on each transitionWhat this teaches
- Governance before writes — Docs are a work surface; the loop decides whether content may be applied or published.
- Human escalation in Channel — Slack is where tenant approvers act; not a chatbot that auto-commits.
- Deterministic boundaries — Automation and Providers cannot take
human-onlytransitions even if prompts ask them to. - Evidence for disputes — Each step records hashes and actor attribution suitable for audit, not chat logs.
What this is not
- A Slack bot that “just approves” AI output without a loop instance and guards.
- Un governed direct Google API writes from the model.
- An OSS
adapter-slackquickstart (planned on npm — use Cloud connectors today).
Architecture (hosted)
Better Data’s dual-surface MVP runs on apps/hosted-loops with tenant-scoped OAuth:
- Work surface — read Doc context; stage proposed changes; attach content-hash evidence to signals.
- Decision surface — Slack Events + interactivity →
engine.transition(...)with resolved platform actor. - Apply gate — destructive or customer-visible writes occur only in post-approval integration steps.
Company and connector operations docs: docs.betterdata.co. Runtime taxonomy and OSS primitives: loopengine.io.
Related
- Google Sheets + Slack — staging/apply pattern for spreadsheets
- Runtime Taxonomy — Channels
- Loop Engine Cloud API
- Human approval gates