A multi-agent back office, defined in two config files
A back-office agent system where roles and tasks are config, not code: 14 agent roles, 9 task definitions, a model fallback chain and a human review gate on anything that goes out the door.
- agent roles in config
- 14
- task definitions
- 9
- step model fallback
- 3
The problem
A small automation business repeats the same back-office loops every week: find prospects, study competitors, draft outreach, plan content and qualify the leads that come in.
Building one script per chore leaves you with a pile of scripts that each carry their own prompts and model settings, with no shared place to review what they produce before it reaches a customer.
The approach
- Roles and tasks live in two YAML files, in the same layout CrewAI uses. Changing who does what is a config edit, not a code change.
- One orchestrator class loads the config, asks a router which model to use, runs a business cycle and returns a structured brief with the next actions to take.
- The model router holds a three-step priority chain (primary, fallback, second fallback). Each step is set by an environment variable, so swapping providers needs no rebuild.
- A human review tool marks every public-facing draft as pending review. The operating rule is simple: no post, outreach message, teardown or proposal is released without a person approving it.
- Every record carries a tenant id, so serving a second customer does not mean rewriting file paths or collection names.
- Docker Compose starts the app with a vector store and a workflow engine beside it, so the whole stack runs on one machine for development.
How it flows
- You to Orchestrator: Start a business cycle
- Orchestrator: Load roles and tasks from YAML
- Orchestrator to Model router: Which model for this task?
- Model router to Orchestrator: Primary, or a fallback
- Orchestrator to Agents: Run the tasks
- Agents to Human review: Drafts marked pending
- Human review to Orchestrator: Approved items only
- Orchestrator to You: Brief with next actions
Show this diagram as Mermaid text
sequenceDiagram
participant P0 as You
participant P1 as Orchestrator
participant P2 as Model router
participant P3 as Agents
participant P4 as Human review
P0->>P1: Start a business cycle
P1->>P1: Load roles and tasks from YAML
P1->>P2: Which model for this task?
P2-->>P1: Primary, or a fallback
P1->>P3: Run the tasks
P3->>P4: Drafts marked pending
P4-->>P1: Approved items only
P1-->>P0: Brief with next actionsTech stack
- Language
- Python
- Agent config
- CrewAI layout (agents.yaml and tasks.yaml), PyYAML
- Model routing
- Priority chain of three providers, set by environment variables
- Memory
- ChromaDB
- Workflow engine
- n8n
- Logging
- structlog (structured logs)
- Runtime
- Docker Compose, Makefile
Results
- The scaffold runs end to end: a dry run loads all 14 roles and 9 tasks, picks a model and prints the full operating brief as JSON.
- Roles, model routing and the review gate now sit in one place instead of being copied into separate scripts.
- This is an early build and we say so. The research tools return placeholder data until live search integrations are connected, so there are no performance numbers to report yet.
Every figure on this page comes from the project's own code, tests or notes. Where there is no measured number, we describe the outcome in words.
Demo
growth_research_agent:
role: >
Growth Research and Prospect Intelligence Lead
goal: >
Find high-fit prospects, identify pain points, research goals, and surface outreach angles.
backstory: >
You research creators, educators, and adjacent business operators who match the CyberAutomations ICP.
You look for bottlenecks in content, support, funnel operations, and platform inconsistency.An architecture diagram and a walkthrough of the intake flow are being prepared.
Source code
The code is public. View the Agentic Agency repository on GitHub.
Related
Service
Agent pipelines
Multi-agent research systems with validation gates, built for a specific research task.
See all custom build servicesFree tools built the same way
More builds
- AI Stack CVE Labs: Security research
- AI Usage Dashboard: AI infrastructure and operations
- Geo-Intel: Data pipeline
- Security Knowledge Base: Knowledge base
- RapidAPI MCP: API integration
- Claude Budget: AI spend control
- Flightdeck: Agent operations
- Niagara BQL and NEQL Reference: OT reference
- IG Sanitize: Privacy tool
- WinHostPEAS: Security tooling
Last updated 2026-11-11