Most companies build AI automations by throwing prompts at problems and hoping they stick. That works for simple one-off tasks. But when you want AI running dozens of business processes autonomously — lead follow-up, sales, client monitoring, billing, reporting — you need an actual system.
This playbook documents the exact framework used at Dr Lead Flow, an AI growth company for medical practices, where voice, chat, and operations agents run live across client accounts every day. Every agent follows the same build process, the same governance structure, and the same accountability standards you'd expect from a human employee.
The system is built on six foundation artifacts, a four-gate build process, and a two-layer architecture that separates what humans see from what the AI executes. Here's how it all works.
—— Before You Build
The Foundation
Before building any agent, you need a governance layer — the infrastructure that ensures every automation is documented, approved, tested, and accountable. Set these up once; every future agent builds on them.
AI Headquarters
Central Notion hub organized by department. Every agent SOP lives here. New team members come here first to understand the full AI system.
Master Behavior Guide
The constitution. Non-negotiable rules covering approvals, change control, QA requirements, and the framework intake process.
SOP Template
Standard 12-field template every agent's documentation follows: name, channel, what, why, how, frequency, output destination, and more.
Task Skill Template
Deeper technical template covering owner/approval matrix, execution steps, QA Gate, error handling, change control, and economics model.
Shared Source Skills Directory
Registry of reusable data connectors (CRM, ad platforms, call transcripts, etc). Check here first — never duplicate what already exists.
Command Center
Live dashboard showing all active agents, costs, connected integrations, paused agents, and resources. Auto-updated daily.
Set these up in Notion
All six foundation artifacts live in Notion. The AI Headquarters is the top-level page, with the Behavior Guide, SOP Template, Task Skill Template, and Shared Source Skills Directory as child pages inside it. The Command Center lives separately — it's the operator dashboard.
Identify the Need
Every agent starts with a real problem. A pain point, a repetitive task, a process someone keeps dropping. Sources include:
- Team observation — watching where people spend time on manual, repeatable work
- Slack conversations — patterns of the same question being asked or the same report being requested
- Direct requests — a team member or leader saying "I wish I had..."
- Existing agent alerts — one agent identifies a gap that another agent should handle
Not everything needs an agent
Before building, ask: does this task happen at least weekly? Does it follow a repeatable pattern? Can the output quality be measured? If no to any of these, it might be a one-off script, not a recurring agent.
Write the SOP in Notion
Go to AI Headquarters → the correct department section → duplicate the SOP Template → fill out all 12 fields. The SOP is what the team sees — it's the human-readable source of record.
SOP Template Fields
Self-Contained SOP Rule
Every SOP must be self-contained for execution. It may reference an older SOP as source material, but it must not rely on old SOPs for runtime rules, scoring logic, or output requirements. Everything the agent needs to run must be in the new SOP or its dedicated skill files.
Create the Dedicated Slack Channel
Every autonomous agent gets its own Slack channel — no exceptions. Agents are treated like employees: they have a name, a workspace, and a job description.
Channel Setup Checklist
- Create a descriptive channel name (e.g., #sales-performance-agent, #mdw-lead-auditor)
- Give the agent a human name — refer to it by name in other channels
- Add a channel canvas or description with: purpose, skills, and scope
- Invite relevant team members who will review the agent's output
- Never DM users with agent alerts — all output goes to the agent's channel
Produce the Implementation Plan
Before building anything, produce a structured implementation plan. This is the Framework Intake Rule — it applies every time, no matter who requests the work or how it's phrased.
Gate 1 Plan Must Cover
No shortcuts
If the requester asks for a shortcut that conflicts with the framework, pause and explain the required gate and approval before proceeding. The framework applies even if no one mentions it.
Explicit approval is required before moving from Gate 1 to Gate 2. Do not start building until the plan is approved.
Build the Internal Skill
The Skill file is what the AI agent actually reads at runtime. It's the technical counterpart to the Notion SOP — not what the team sees, but what the AI executes.
Required Skill Sections
- Step 0 — Source access checks
- Known Errors list
- Numbered execution steps
- Output requirements
- QA Gate (hard pass/fail checks)
- Error handling procedures
- Change control process
- Change Log & Run Log
- Related Shared Source Skills
- Automation economics
- Owner & approval matrix
Shared Source Skills
If your agent needs data from a system that other agents also use (CRM, ad platform, call transcripts, etc.), check the Shared Source Skills Directory first. Reference the existing connector instead of rebuilding it. When an API changes, you update one place and all agents benefit.
Build the Cron
The cron is the scheduler that triggers the agent. It should be short and clean — it points to the Task Skill, not the full SOP.
Cron Configuration
Test in Demo Mode
Run the agent using a test harness that captures all outputs without actually posting them. Review format, content, and behavior. Fix issues. Maximum of two test runs before stopping and reporting what works and what's blocked.
Testing Checklist
- Run in demo mode — messages captured, not sent
- Review output formatting and content accuracy
- Verify all data sources are accessible (Step 0 checks pass)
- Confirm QA Gate criteria are met
- Check edge cases — what happens when there's no data? When a source is down?
- Max 2 test runs — then report what works and what's blocked
Explicit approval is required before going live. Do not activate the cron until testing is reviewed and approved.
Go Live
Activate the cron. Monitor the first few runs closely. The Command Center auto-update cron will automatically pick up the new agent and add it to the live dashboard.
- Activate the cron schedule
- Watch the first 2–3 runs for unexpected behavior
- Confirm output appears in the correct Slack channel
- Verify the Command Center shows the new agent
- Notify the team that the agent is live
Ongoing Governance
QA Gate on every run
Every run must pass the QA Gate to count as successful. Partial or learning-only runs cannot be called clean successes unless explicitly approved.
Capture learnings in both layers
Updates go to both the Notion SOP AND the SKILL.md. Neither replaces the other — they serve different audiences.
Changes require approval
The AI may propose changes, but it cannot implement changes to live SOPs, skills, crons, code, schedules, or outputs without explicit approval.
Step 0 Blocker Rule
If a data source goes down during a run, the agent stops and waits for approval. It does not assume "blocker resolved" means "continue running."
—— How It Works
The Two-Layer Architecture
The key insight of this system is that there are always two layers running in parallel — what humans see and what the AI executes. They stay synced but serve different purposes.
| Layer | What the team sees | What the AI executes |
|---|---|---|
| Notion SOP | Human-readable process, approvals, training | — |
| SKILL.md | — | Technical rules, API details, scripts, state |
| Slack Channel | Agent output, team interaction | Agent's output destination |
| Command Center | Live dashboard of everything | Auto-updated daily |
| Behavior Guide | Governance constitution | Loaded into every agent run |
Conflict resolution
If the Notion SOP and the SKILL.md conflict, the Notion SOP wins — it reflects the latest human-approved process. The SKILL.md is then updated to match.
—— Why This Works
What Makes This System Different
Most "AI agent" setups are just prompts on a schedule. This is not that.
Governance-first
No cowboy coding. Every agent goes through four gates with explicit human approval at each stage. Nothing goes live without review.
Self-documenting
The Command Center auto-updates daily. You always know what's running, what it costs, and what's paused — without asking.
Reusable data connectors
Shared Source Skills mean when an API changes, you update one place and all agents benefit. No duplicated integration code across agents.
Agents as employees
Each one has a name, a dedicated channel, a job description (SOP), and accountability standards (QA Gate). Treat them like team members.
Built-in economics
Every agent has a cost estimate. The Command Center shows total monthly spend. You always know the ROI of your AI workforce.
Learning system
Mistakes get captured in Known Errors, SKILL.md learnings, and Notion SOPs so they never repeat. The system gets smarter over time.
—— Get Started
Templates & Downloads
Download these templates to set up the same system. Each one is a standalone Markdown file you can import into Notion, Confluence, or any documentation tool.
SOP Template
The standard 12-field template for documenting any agent. Copy this for every new automation.
Download template task-skill-template.mdTask Skill Template
The detailed technical template with 20+ sections including ownership matrix, QA Gate, economics model, and change control.
Download template master-behavior-guide.mdMaster Behavior Guide
The governance constitution — non-negotiable rules for approvals, QA, change control, and the framework intake process.
Download template shared-source-skills-directory.mdShared Source Skills Directory
Template for tracking reusable data connectors across your agent ecosystem. Includes blocking classification.
Download template command-center-template.mdCommand Center Template
Dashboard template for tracking all active agents, costs, integrations, and resources in one place.
Download templateImporting to Notion
In Notion: Settings → Import → Markdown, or drag the downloaded .md file into any page. Each template works in Confluence, Google Docs, or any Markdown-aware tool.
Want the AI coworker that runs on top of this system?
Everything in this playbook is the governance layer. Viktor is the AI coworker I actually run inside Slack on top of it — named agents, scheduled reports, real work getting done. Sign up through my link and get $150 in free credits, applied automatically.
Want This Running in Your Practice?
Book a free consultation to map out your AI strategy. We'll identify which processes to automate first and build a custom implementation plan for your business.
Book a CallWant more of this? Join the community — skool.com/aiceolab