Dr Lead Flow Agent Playbook

—— AI Operations Playbook

How to Build AI Agents
That Run Your Business

A complete, step-by-step system for building autonomous AI agents with governance, testing, and accountability — the same framework behind the Dr Lead Flow agent fleet.

20 min read By Dr. Emeka Ajufo, MD 25+ agents 4 build gates

The AI coworker behind this whole system

Every agent in this playbook runs on top of Viktor — the AI coworker that lives in Slack and does the actual work. Sign up through my link and get $150 in free credits, applied automatically.

ref.viktor.com/emeka-ajufo →
On this page

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.

1.

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.

2.

Master Behavior Guide

The constitution. Non-negotiable rules covering approvals, change control, QA requirements, and the framework intake process.

3.

SOP Template

Standard 12-field template every agent's documentation follows: name, channel, what, why, how, frequency, output destination, and more.

4.

Task Skill Template

Deeper technical template covering owner/approval matrix, execution steps, QA Gate, error handling, change control, and economics model.

5.

Shared Source Skills Directory

Registry of reusable data connectors (CRM, ad platforms, call transcripts, etc). Check here first — never duplicate what already exists.

6.

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.

1.

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.

2.

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

Agent NameHuman-readable name
Cron NameTechnical cron identifier
Slack ChannelDedicated output channel
What It DoesOne-sentence summary
Why It Does ThisBusiness justification
Full SOPStep-by-step process
FrequencyHow often it runs
Output DestinationWhere results are posted
Useful LinksRelated resources
Skills to Refer ToClaude skills needed
Success MetricsHow to measure quality
Apps NeededIntegrations required

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.

3.

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
4.

Produce the Implementation Plan

Gate 1 — Approval Required

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

Current architecture mapWhat exists today — skills, crons, channels, data flows
Source / integration mapWhat data sources are needed and how they're accessed
Proposed future architectureNew skill structure, cron setup, output destination
Shared Source Skills checkCheck the directory first — reuse existing connectors
Task Skill structureFollowing the Task Skill Template (see Foundation #4)
Controlled test planWhat will be tested, in which channel, with what data
Approval checklistWho must approve at each gate before proceeding
Open questionsUnknowns, ambiguities, and risks — surface them early

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.

5.

Build the Internal Skill

Gate 2 — Build

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.

6.

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

ScheduleCron expression in UTC, discussed in the requester's timezone
PointerPoints to the exact Task Skill — the cron does not contain the full SOP
ConditionsOptional condition scripts to skip runs when there's no new data
Output channelThe dedicated Slack channel from Step 3
Model selectionOpus for complex work, Sonnet for routine tasks (cost optimization)
PromptExplicit about source channels, lookback windows, deduplication, and delivery
7.

Test in Demo Mode

Gate 3 — Testing

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.

8.

Go Live

Gate 4 — Launch

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
9.

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.

LayerWhat the team seesWhat the AI executes
Notion SOPHuman-readable process, approvals, training
SKILL.mdTechnical rules, API details, scripts, state
Slack ChannelAgent output, team interactionAgent's output destination
Command CenterLive dashboard of everythingAuto-updated daily
Behavior GuideGovernance constitutionLoaded 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.

Importing 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.

ref.viktor.com/emeka-ajufo →

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 Call

Want more of this? Join the community — skool.com/aiceolab