Project
AI Ops Co-pilot Framework
Founder / Head of Growth & Ops, Dansu
Built one reusable human-in-the-loop framework (research, suggest, approve in Slack, execute, remember) and ran around fifty domain modules on it across sales, sourcing, paid social, SEO, customs compliance and ops.
- Machines did the research and the legwork; a person approved the decisions that mattered with a single reaction on a Slack card; outcomes were written back so the next suggestion started smarter.
- Extracted a small, domain-agnostic core from an earlier tangled monolith: shared clients with rate limits and circuit breakers, process locks, run tracking, an audit log and a suggestion-card lifecycle.
Overview
The automation behind Dansu was never really "a Slack bot". Under the individual scripts sat one repeatable loop: research a problem, generate a suggested action, put it in front of a human as a Slack card, execute it on approval, then track the outcome and feed it back into memory. Once I saw that, I organised the system around the loop itself. Almost every module became a specialisation of the same framework.
The problem
The first version was one service that did everything. It worked until it didn't: a failure in one domain could stall the rest, adding a new capability meant touching shared code, and it was hard to tell what had run, what had failed and what had been approved. The value was in the pattern, but the pattern was buried in a monolith.
What I built
A domain-agnostic core. A small library every module imports:
- Shared database, Slack and Google clients, with retry and exponential backoff.
- A rate-limited API client with a circuit breaker per provider, so a failing upstream service is backed off rather than hammered.
- Process locks so scheduled runs never overlap, and a pipeline runner that records each sub-step.
- Run tracking that writes health back (last run, last success, last error), plus a canonical audit log with a controlled set of event sources.
The suggestion lifecycle. Research jobs run gap analysis against a playbook and check KPI triggers. When something is worth acting on, the framework stores a suggestion and posts a Slack card with the evidence and a reaction prompt. A separate poller reads reactions to accept or dismiss, and the decision is logged.
Execution with guard rails. Approved actions run through the same core. Pipelines are scheduled in a handful of consolidated groups (research, qualification, outbound, deals), and anything customer-facing, such as outbound, stays behind human approval rather than autopilot. A failing pipeline pauses itself after repeated errors instead of retrying forever.
Modules on top. Sales research and lead qualification, a procurement negotiation agent, a closed-loop ad experiment engine, SEO operations, customs compliance reminders and ops research all plug into the same loop.
An honest gap
Auto-implementation of approved suggestions is narrower than the diagram suggests. Today only one suggestion type (updating the context documents the agents read) is applied automatically end to end; other approved suggestion types are executed by their own modules or by hand. The framework makes that boundary explicit rather than pretending it is not there.
Impact
- One framework, built across six business functions on a real trading business.
- New capabilities became modules, not rewrites: the core stayed the same while domains were added.
- Designed so every action leaves a trail: who approved it, what ran, what happened.
- The pattern is portable. It is the same loop I now apply to product work elsewhere.