Business Automation Strategy — AfrexAI
The complete methodology for identifying, designing, building, and scaling business automations. Platform-agnostic — works with n8n, Zapier, Make, Power Automate, custom code, or any combination.
Phase 1: Automation Audit — Find the Gold
Before building anything, map where time and money leak.
Quick ROI Triage
Ask these 5 questions about any process:
- How often does it happen? (frequency)
- How long does it take? (duration per occurrence)
- How many people touch it? (handoffs)
- How error-prone is it? (failure rate)
- How much does failure cost? (impact)
Process Inventory Template
process_inventory:
process_name: "[Name]"
department: "[Sales/Marketing/Ops/Finance/HR/Engineering]"
owner: "[Person responsible]"
frequency: "[X per day/week/month]"
duration_minutes: [time per occurrence]
monthly_volume: [total occurrences]
monthly_hours: [volume × duration ÷ 60]
hourly_cost: [fully loaded employee cost]
monthly_cost: "$[hours × hourly cost]"
error_rate: "[X%]"
error_cost_per_incident: "$[average]"
handoffs: [number of people involved]
current_tools: ["tool1", "tool2"]
automation_potential: "[Full/Partial/Assist/None]"
complexity: "[Simple/Medium/Complex/Enterprise]"
dependencies: ["system1", "system2"]
notes: "[Pain points, workarounds, tribal knowledge]"
Automation Potential Classification
| Level |
Description |
Human Role |
Example |
| Full |
End-to-end automated, no human needed |
Monitor exceptions |
Invoice processing, data sync |
| Partial |
Automated with human approval gates |
Review & approve |
Contract generation, hiring workflow |
| Assist |
Human does work, automation helps |
Execute with AI assistance |
Customer support, content creation |
| None |
Requires human judgment/creativity |
Full ownership |
Strategy, relationship building |
ROI Calculation
Annual savings = (monthly_hours × 12 × hourly_cost) + (error_rate × volume × 12 × error_cost)
Build cost = development_hours × developer_rate + tool_costs
Payback period = build_cost ÷ (annual_savings ÷ 12) months
ROI = ((annual_savings - annual_tool_cost) ÷ build_cost) × 100%
Decision rules:
- Payback < 3 months → Build immediately
- Payback 3-6 months → Build this quarter
- Payback 6-12 months → Evaluate against alternatives
- Payback > 12 months → Reconsider (unless strategic)
Phase 2: Prioritization — The Automation Stack Rank
ICE-R Scoring (0-10 each)
| Dimension |
Weight |
Scoring Guide |
| Impact |
30% |
10=saves >$50K/yr, 7=saves >$20K/yr, 5=saves >$5K/yr, 3=saves >$1K/yr |
| Confidence |
20% |
10=proven pattern, 7=similar done before, 5=feasible but new, 3=uncertain |
| Ease |
25% |
10=<1 day, 7=<1 week, 5=<1 month, 3=<3 months, 1=>3 months |
| Reliability |
25% |
10=deterministic, 7=95%+ success, 5=80%+ success, 3=needs frequent fixes |
Score = (Impact × 0.30) + (Confidence × 0.20) + (Ease × 0.25) + (Reliability × 0.25)
Quick Win Identification
Automate FIRST (highest ROI, lowest risk):
- Data entry / copy-paste between systems
- Notification routing (email → Slack → SMS based on rules)
- Report generation and distribution
- File organization and naming
- Status updates across tools
- Meeting scheduling and follow-ups
- Invoice creation from templates
- Lead capture → CRM entry
- Onboarding checklists
- Backup and archival
Automate LAST (complex, high risk):
- Anything involving money transfers without approval
- Customer-facing responses without review
- Legal/compliance decisions
- Hiring/firing workflows
- Security-sensitive operations
Phase 3: Platform Selection — Choose Your Weapons
Platform Decision Matrix
| Factor |
No-Code (Zapier/Make) |
Low-Code (n8n/Power Automate) |
Custom Code |
AI Agent |
| Best for |
Simple integrations |
Complex workflows |
Unique logic |
Judgment calls |
| Build speed |
Hours |
Days |
Weeks |
Days-weeks |
| Maintenance |
Low |
Medium |
High |
Medium |
| Flexibility |
Limited |
High |
Unlimited |
High |
| Cost at scale |
Expensive |
Moderate |
Cheap |
Varies |
| Error handling |
Basic |
Good |
Full control |
Variable |
| Team skill needed |
Business user |
Technical BA |
Developer |
AI engineer |
| Vendor lock-in |
High |
Medium |
None |
Low-medium |
Selection Decision Tree
Is the process deterministic (same input → same output)?
├── YES: Does it involve >3 systems?
│ ├── YES: Does it need complex branching logic?
│ │ ├── YES → Low-code (n8n/Power Automate)
│ │ └── NO → No-code (Zapier/Make) if budget allows, else n8n
│ └── NO: Is it performance-critical?
│ ├── YES → Custom code
│ └── NO → No-code (simplest wins)
└── NO: Does it need judgment/reasoning?
├── YES: Is the judgment pattern learnable?
│ ├── YES → AI agent with human review
│ └── NO → Human-assisted automation
└── NO → Partial automation with human gates
Cost Comparison by Scale
| Monthly Tasks |
Zapier |
Make |
n8n (self-hosted) |
Custom Code |
| 1,000 |
$30 |
$10 |
$5 (hosting) |
$50+ (hosting) |
| 10,000 |
$100 |
$30 |
$5 |
$50+ |
| 100,000 |
$500+ |
$150 |
$10 |
$50+ |
| 1,000,000 |
$2,000+ |
$500+ |
$20 |
$100+ |
Rule: If you're spending >$200/mo on Zapier/Make, evaluate self-hosted n8n.
Phase 4: Workflow Architecture — Design Before You Build
Workflow Blueprint Template
workflow_blueprint:
name: "[Descriptive name]"
id: "WF-[DEPT]-[NUMBER]"
version: "1.0.0"
owner: "[Person]"
priority: "[P0-P3]"
trigger:
type: "[webhook/schedule/event/manual/condition]"
source: "[System or schedule]"
conditions: "[When to fire]"
dedup_strategy: "[How to prevent double-processing]"
inputs:
- name: "[field]"
type: "[string/number/date/object]"
required: true
validation: "[rules]"
source: "[where it comes from]"
steps:
- id: "step_1"
action: "[verb: fetch/transform/validate/send/create/update/delete]"
system: "[target system]"
description: "[what this step does]"
input: "[from trigger or previous step]"
output: "[what it produces]"
error_handling: "[retry/skip/alert/abort]"
timeout_seconds: 30
- id: "step_2_branch"
type: "condition"
condition: "[expression]"
true_path: "step_3a"
false_path: "step_3b"
error_handling:
retry_policy:
max_attempts: 3
backoff: "exponential"
initial_delay_seconds: 5
on_failure: "[alert/queue-for-review/fallback]"
alert_channel: "[Slack/email/SMS]"
dead_letter_queue: true
monitoring:
success_metric: "[what defines success]"
expected_duration_seconds: [max]
alert_on_duration_exceeded: true
log_level: "[info/debug/error]"
testing:
test_data: "[how to generate test inputs]"
expected_output: "[what success looks like]"
edge_cases: ["empty input", "duplicate", "malformed data"]
7 Workflow Design Principles
- Idempotent by default — Running the same workflow twice with the same input should produce the same result, not duplicates
- Fail loudly — Silent failures are worse than crashes. Every error must notify someone
- Checkpoint progress — Long workflows should save state so they can resume, not restart
- Validate early — Check inputs at the start, not after 10 expensive API calls
- Separate concerns — One workflow, one job. Chain workflows, don't build monoliths
- Log everything — Timestamps, inputs, outputs, decisions. You WILL need to debug
- Human escape hatch — Every automated workflow needs a manual override path
Common Workflow Patterns
| Pattern |
When to Use |
Example |
| Sequential |
Steps depend on each other |
Lead → Enrich → Score → Route |
| Parallel fan-out |
Independent steps |
Send email + Update CRM + Log analytics |
| Conditional branch |
Different paths by data |
High value → Sales, Low value → Nurture |
| Loop/batch |
Process collections |
For each row in CSV, create record |
| Approval gate |
Human judgment needed |
Contract review before sending |
| Event-driven chain |
Workflow triggers workflow |
Order placed → Fulfillment → Shipping → Notification |
| Retry with fallback |
Unreliable external APIs |
Try API → Retry 3x → Use cached data → Alert |
| Scheduled sweep |
Periodic cleanup/sync |
Nightly: sync CRM → accounting |
Phase 5: Integration Architecture — Connect Everything
Integration Quality Checklist
For every system integration:
Data Mapping Template
data_mapping:
source_system: "[System A]"
target_system: "[System B]"
sync_direction: "[one-way/bidirectional]"
sync_frequency: "[real-time/5min/hourly/daily]"
conflict_resolution: "[source wins/target wins/newest wins/manual]"
field_mappings:
- source_field: "contact.email"
target_field: "customer.email_address"
transform: "lowercase"
required: true
- source_field: "contact.company"
target_field: "customer.organization"
transform: "trim"
default: "Unknown"
- source_field: "contact.created_at"
target_field: "customer.signup_date"
transform: "ISO8601 → YYYY-MM-DD"
Rate Limit Strategy
| Approach |
When |
Implementation |
| Queue + throttle |
Predictable volume |
Process queue at 80% of rate limit |
| Exponential backoff |
Burst traffic |
Wait 1s, 2s, 4s, 8s on 429 errors |
| Batch API calls |
High volume CRUD |
Group 50-100 records per call |
| Cache responses |
Repeated lookups |
Cache for TTL matching data freshness needs |
| Off-peak scheduling |
Non-urgent syncs |
Run heavy syncs at 2-4 AM |
Phase 6: Error Handling & Reliability — Build It Unbreakable
Error Classification
| Type |
Example |
Response |
Priority |
| Transient |
API timeout, 503 |
Retry with backoff |
Auto-handle |
| Rate limit |
429 Too Many Requests |
Queue + throttle |
Auto-handle |
| Data validation |
Missing required field |
Log + skip + alert |
Review daily |
| Auth failure |
Token expired |
Refresh + retry, else alert |
P1 — fix within 1h |
| Logic error |
Unexpected state |
Halt + alert + queue |
P0 — fix immediately |
| External change |
API schema changed |
Halt + alert |
P0 — fix immediately |
| Capacity |
Queue overflow |
Scale + alert |
P1 — fix within 4h |
Dead Letter Queue Pattern
Every workflow should have a DLQ:
- Capture — Failed items go to DLQ with full context (input, error, timestamp, step)
- Alert — Notify on DLQ growth (>10 items or >1% failure rate)
- Review — Daily check of DLQ items
- Replay — Ability to reprocess DLQ items after fix
- Expire — Auto-archive items older than 30 days with summary
Circuit Breaker Pattern
States: CLOSED (normal) → OPEN (failing) → HALF-OPEN (testing)
CLOSED: Process normally, track failures
→ If failure_count > threshold in window → OPEN
OPEN: Reject all requests, return cached/default
→ After cool_down_period → HALF-OPEN
HALF-OPEN: Allow 1 test request
→ If success → CLOSED
→ If failure → OPEN (reset cool_down)
Thresholds:
- Simple integrations: 5 failures in 60 seconds
- Critical paths: 3 failures in 30 seconds
- Non-critical: 10 failures in 300 seconds
Phase 7: Testing & Validation — Trust But Verify
Automation Test Pyramid
| Level |
What |
How |
When |
| Unit |
Individual step logic |
Mock inputs, verify output |
Every change |
| Integration |
System connections |
Test with sandbox APIs |
Weekly + after changes |
| End-to-end |
Full workflow path |
Run with test data |
Before deploy + weekly |
| Chaos |
Failure scenarios |
Kill steps, corrupt data |
Monthly |
| Load |
Volume handling |
10x normal volume |
Before scaling |
Test Scenario Checklist
For every workflow, test:
Validation Before Go-Live
go_live_checklist:
functionality:
- [ ] All test scenarios pass
- [ ] Edge cases documented and handled
- [ ] Error messages are actionable
reliability:
- [ ] Retry logic tested
- [ ] Circuit breaker configured
- [ ] Dead letter queue active
- [ ] Idempotency verified (run twice, same result)
monitoring:
- [ ] Success/failure alerts configured
- [ ] Duration alerts set
- [ ] Log retention configured
- [ ] Dashboard created
documentation:
- [ ] Workflow blueprint updated
- [ ] Runbook written
- [ ] Team trained on manual override
rollback:
- [ ] Previous version preserved
- [ ] Rollback procedure tested
- [ ] Data cleanup plan for partial runs
Phase 8: Monitoring & Observability — See Everything
Automation Health Dashboard
automation_dashboard:
period: "weekly"
summary:
total_workflows: [count]
total_executions: [count]
success_rate: "[X%]"
avg_duration: "[X seconds]"
errors_this_period: [count]
time_saved_hours: [calculated]
cost_saved: "$[calculated]"
by_workflow:
- name: "[Workflow name]"
executions: [count]
success_rate: "[X%]"
avg_duration: "[X seconds]"
p95_duration: "[X seconds]"
errors: [count]
error_types: ["type1: count", "type2: count"]
dlq_items: [count]
status: "[healthy/degraded/failing]"
alerts_fired: [count]
manual_interventions: [count]
top_issues:
- "[Issue 1: description + fix status]"
- "[Issue 2: description + fix status]"
cost:
platform_cost: "$[monthly]"
api_calls_cost: "$[monthly]"
compute_cost: "$[monthly]"
total: "$[monthly]"
cost_per_execution: "$[calculated]"
Alert Rules
| Metric |
Warning |
Critical |
Action |
| Success rate |
<95% |
<90% |
Investigate + fix |
| Duration |
>2x average |
>5x average |
Check for bottleneck |
| DLQ size |
>10 items |
>50 items |
Review + reprocess |
| Error spike |
5 errors/hour |
20 errors/hour |
Pause + investigate |
| Queue depth |
>100 pending |
>1000 pending |
Scale + investigate |
| Cost spike |
>150% of average |
>300% of average |
Audit + optimize |
Weekly Review Questions
- Which workflows had the lowest success rate? Why?
- Are any workflows consistently slow? What's the bottleneck?
- How many manual interventions were needed? Can we eliminate them?
- What's in the DLQ? Patterns?
- Are we approaching any rate limits?
- Total cost vs total time saved — still positive ROI?
Phase 9: Scaling & Optimization — Go From 10 to 10,000
Scaling Checklist
Before scaling any automation:
Performance Optimization Priority
- Eliminate unnecessary API calls — Cache lookups, batch operations
- Parallelize independent steps — Don't wait when you don't have to
- Optimize data payloads — Only fetch/send fields you need
- Use webhooks over polling — Real-time + fewer API calls
- Batch processing — Group operations (50-100 per batch)
- Async where possible — Don't block on non-critical steps
- CDN/cache for static lookups — Country codes, categories, templates
- Database query optimization — Indexes, query plans, connection pooling
When to Migrate Platforms
| Signal |
From |
To |
| Spending >$500/mo on Zapier/Make |
No-code |
Self-hosted n8n |
| Need custom logic in >50% of workflows |
No-code |
Low-code or code |
| >100K executions/day |
Any hosted |
Self-hosted or custom |
| Complex branching breaking visual tools |
Low-code |
Custom code |
| Multiple teams building automations |
Single tool |
Platform + governance |
| AI judgment needed in workflows |
Traditional |
AI agent integration |
Phase 10: Governance & Documentation — Keep It Manageable
Automation Registry
Every automation must be registered:
automation_registry_entry:
id: "WF-[DEPT]-[NUMBER]"
name: "[Descriptive name]"
description: "[What it does in one sentence]"
owner: "[Person]"
team: "[Department]"
platform: "[n8n/Zapier/Make/custom]"
status: "[active/paused/deprecated/testing]"
created: "[date]"
last_modified: "[date]"
last_reviewed: "[date]"
review_frequency: "[monthly/quarterly]"
business_impact:
time_saved_monthly_hours: [X]
cost_saved_monthly: "$[X]"
error_reduction: "[X%]"
technical:
trigger: "[type]"
systems_connected: ["system1", "system2"]
avg_daily_executions: [X]
success_rate: "[X%]"
dependencies:
upstream: ["WF-XXX"]
downstream: ["WF-YYY"]
documentation:
blueprint: "[link]"
runbook: "[link]"
test_plan: "[link]"
Naming Conventions
Pattern: [DEPT]-[ACTION]-[OBJECT]-[QUALIFIER]
Examples:
SALES-sync-leads-from-typeform
FINANCE-generate-invoice-monthly
HR-onboard-employee-new-hire
MARKETING-post-content-social-scheduled
OPS-backup-database-nightly
Change Management for Automations
| Change Type |
Approval |
Testing |
Rollback Plan |
| Config change (threshold, timing) |
Owner |
Quick smoke test |
Revert config |
| Logic change (new branch, new step) |
Owner + reviewer |
Full test suite |
Previous version |
| Integration change (new API, new system) |
Owner + tech lead |
Integration + E2E |
Disconnect + manual |
| New workflow |
Owner + stakeholder |
Full test + pilot |
Disable workflow |
| Deprecation |
Owner + affected teams |
Verify replacements |
Re-enable |
Quarterly Automation Review
- Inventory check — Are all automations in the registry? Any rogue workflows?
- ROI validation — Is each automation still delivering value?
- Health review — Success rates, error trends, DLQ patterns
- Cost audit — Platform costs trending up? Optimization opportunities?
- Security review — API keys rotated? Permissions still appropriate?
- Deprecation candidates — Any automations that should be retired?
- Opportunity scan — New processes to automate? Existing ones to improve?
Phase 11: AI-Powered Automations — The Next Level
When to Add AI to Automations
| Scenario |
AI Type |
Example |
| Classify unstructured text |
LLM |
Categorize support tickets |
| Extract data from documents |
LLM + OCR |
Parse invoices, contracts |
| Generate content from templates |
LLM |
Personalized emails, reports |
| Make judgment calls |
LLM + rules |
Lead scoring, risk assessment |
| Summarize information |
LLM |
Meeting notes, research briefs |
| Route based on intent |
LLM |
Customer request → right team |
AI Integration Best Practices
- Always validate AI output — LLMs hallucinate. Add validation checks
- Set confidence thresholds — Below threshold → human review queue
- Log AI decisions — Input, output, confidence, model version
- A/B test AI vs rules — Prove AI adds value before committing
- Cost-control AI calls — Cache similar inputs, batch where possible
- Fallback to rules — If AI is unavailable, have deterministic backup
- Review AI decisions weekly — Spot check for quality drift
AI Agent Integration Pattern
ai_agent_step:
type: "ai_judgment"
model: "[model name]"
input:
context: "[relevant data from previous steps]"
task: "[specific instruction — be precise]"
output_format: "[JSON schema or structured format]"
constraints: ["must not", "must always", "if unsure"]
validation:
confidence_threshold: 0.85
required_fields: ["field1", "field2"]
value_ranges:
score: [0, 100]
category: ["A", "B", "C"]
on_low_confidence:
action: "route_to_human"
queue: "[review queue name]"
on_failure:
action: "fallback_to_rules"
rules_engine: "[rule set name]"
monitoring:
log_all_decisions: true
sample_rate_for_review: 0.10
alert_on_confidence_drop: true
Phase 12: Automation Maturity Model
5 Levels of Automation Maturity
| Level |
Name |
Description |
Indicators |
| 1 |
Ad Hoc |
Manual processes, maybe a few scripts |
No registry, tribal knowledge |
| 2 |
Reactive |
Automate pain points as they arise |
Some workflows, no standards |
| 3 |
Systematic |
Planned automation program |
Registry, testing, monitoring |
| 4 |
Optimized |
Continuous improvement, governance |
ROI tracking, quarterly reviews |
| 5 |
Intelligent |
AI-augmented, self-healing |
Adaptive workflows, predictive |
Maturity Assessment (Score 1-5 per dimension)
automation_maturity:
dimensions:
strategy: [1-5] # Planned roadmap vs ad hoc
architecture: [1-5] # Patterns, standards, reuse
reliability: [1-5] # Error handling, monitoring, uptime
governance: [1-5] # Registry, change management, reviews
testing: [1-5] # Test coverage, validation, chaos
documentation: [1-5] # Blueprints, runbooks, training
optimization: [1-5] # Performance, cost, continuous improvement
ai_integration: [1-5] # AI-powered decisions, self-healing
total: [sum ÷ 8]
grade: "[A/B/C/D/F]"
# A: 4.5+ | B: 3.5-4.4 | C: 2.5-3.4 | D: 1.5-2.4 | F: <1.5
top_gap: "[lowest scoring dimension]"
next_action: "[specific improvement for top gap]"
100-Point Quality Rubric
| Dimension |
Weight |
0-2 (Poor) |
3-5 (Basic) |
6-8 (Good) |
9-10 (Excellent) |
| Design |
15% |
No blueprint, ad hoc |
Basic flow documented |
Full blueprint with error handling |
Blueprint + edge cases + optimization |
| Reliability |
20% |
No error handling |
Basic retries |
DLQ + circuit breaker + fallback |
Self-healing + auto-scaling |
| Testing |
15% |
No tests |
Happy path only |
Full test pyramid |
Chaos testing + load testing |
| Monitoring |
15% |
No visibility |
Basic success/fail logs |
Dashboard + alerts |
Predictive monitoring |
| Documentation |
10% |
None |
README exists |
Blueprint + runbook |
Full docs + training materials |
| Security |
10% |
Hardcoded credentials |
Encrypted secrets |
Least privilege + rotation |
Zero-trust + audit trail |
| Performance |
10% |
Works but slow |
Acceptable speed |
Optimized + cached |
Auto-scaling + sub-second |
| Governance |
5% |
No registry |
Listed somewhere |
Full registry + reviews |
Change management + compliance |
Score: (weighted sum) → Grade: A (90+) B (80-89) C (70-79) D (60-69) F (<60)
10 Automation Killers
| # |
Mistake |
Fix |
| 1 |
Automating a broken process |
Fix the process FIRST, then automate |
| 2 |
No error handling |
Every step needs a failure path |
| 3 |
Silent failures |
If it fails and nobody knows, it's worse than manual |
| 4 |
Not testing edge cases |
Test empty, duplicate, malformed, concurrent |
| 5 |
Hardcoded values |
Use config/environment variables for everything |
| 6 |
No monitoring |
You can't fix what you can't see |
| 7 |
Building monolith workflows |
One workflow, one job. Chain them together |
| 8 |
Ignoring rate limits |
Design for API limits from day one |
| 9 |
No documentation |
Future-you will hate present-you |
| 10 |
Over-automating |
Not everything should be automated. Human judgment exists for a reason |
Edge Cases
Small Team / Solo Founder
- Start with Zapier/Make — speed over flexibility
- Automate the 3 most time-consuming tasks first
- Graduate to n8n when spending >$100/mo on no-code
Regulated Industry
- Add approval gates at every decision point
- Log all automated actions for audit trail
- Review automations quarterly with compliance team
- Document data flow for privacy impact assessments
Legacy Systems
- Use middleware/iPaaS for legacy integration
- Build adapters that normalize legacy data formats
- Plan for eventual migration, not permanent workarounds
Multi-Team / Enterprise
- Establish automation Center of Excellence (CoE)
- Standardize on 1-2 platforms max
- Shared component library for common patterns
- Governance board for cross-team automations
AI-Heavy Workflows
- Always keep human-in-the-loop for high-stakes decisions
- Monitor AI output quality continuously
- Budget for AI API costs separately (they scale differently)
- Version-pin AI models — don't auto-upgrade in production
Natural Language Commands
Use these to invoke specific phases:
audit my processes for automation opportunities → Phase 1
prioritize automations by ROI → Phase 2
recommend automation platform for [process] → Phase 3
design workflow blueprint for [process] → Phase 4
plan integration between [system A] and [system B] → Phase 5
design error handling for [workflow] → Phase 6
create test plan for [automation] → Phase 7
set up monitoring for [workflow] → Phase 8
optimize [workflow] for scale → Phase 9
review automation governance → Phase 10
add AI to [workflow] → Phase 11
assess automation maturity → Phase 12
1---
2name: business-automation-strategy-afrexai
3description: Before building anything, map where time and money leak.
4metadata:
5 source: https://skillmd.com/skills/modbender/business-automation-strategy-afrexai
6---
7
8# Business Automation Strategy — AfrexAI
9
10> The complete methodology for identifying, designing, building, and scaling business automations. Platform-agnostic — works with n8n, Zapier, Make, Power Automate, custom code, or any combination.
11
12## Phase 1: Automation Audit — Find the Gold
13
14Before building anything, map where time and money leak.
15
16### Quick ROI Triage
17
18Ask these 5 questions about any process:
191. How often does it happen? (frequency)
202. How long does it take? (duration per occurrence)
213. How many people touch it? (handoffs)
224. How error-prone is it? (failure rate)
235. How much does failure cost? (impact)
24
25### Process Inventory Template
26
27```yaml
28process_inventory:
29 process_name: "[Name]"
30 department: "[Sales/Marketing/Ops/Finance/HR/Engineering]"
31 owner: "[Person responsible]"
32 frequency: "[X per day/week/month]"
33 duration_minutes: [time per occurrence]
34 monthly_volume: [total occurrences]
35 monthly_hours: [volume × duration ÷ 60]
36 hourly_cost: [fully loaded employee cost]
37 monthly_cost: "$[hours × hourly cost]"
38 error_rate: "[X%]"
39 error_cost_per_incident: "$[average]"
40 handoffs: [number of people involved]
41 current_tools: ["tool1", "tool2"]
42 automation_potential: "[Full/Partial/Assist/None]"
43 complexity: "[Simple/Medium/Complex/Enterprise]"
44 dependencies: ["system1", "system2"]
45 notes: "[Pain points, workarounds, tribal knowledge]"
46```
47
48### Automation Potential Classification
49
50| Level | Description | Human Role | Example |
51|-------|------------|------------|---------|
52| **Full** | End-to-end automated, no human needed | Monitor exceptions | Invoice processing, data sync |
53| **Partial** | Automated with human approval gates | Review & approve | Contract generation, hiring workflow |
54| **Assist** | Human does work, automation helps | Execute with AI assistance | Customer support, content creation |
55| **None** | Requires human judgment/creativity | Full ownership | Strategy, relationship building |
56
57### ROI Calculation
58
59```
60Annual savings = (monthly_hours × 12 × hourly_cost) + (error_rate × volume × 12 × error_cost)
61Build cost = development_hours × developer_rate + tool_costs
62Payback period = build_cost ÷ (annual_savings ÷ 12) months
63ROI = ((annual_savings - annual_tool_cost) ÷ build_cost) × 100%
64```
65
66**Decision rules:**
67- Payback < 3 months → Build immediately
68- Payback 3-6 months → Build this quarter
69- Payback 6-12 months → Evaluate against alternatives
70- Payback > 12 months → Reconsider (unless strategic)
71
72---
73
74## Phase 2: Prioritization — The Automation Stack Rank
75
76### ICE-R Scoring (0-10 each)
77
78| Dimension | Weight | Scoring Guide |
79|-----------|--------|--------------|
80| **Impact** | 30% | 10=saves >$50K/yr, 7=saves >$20K/yr, 5=saves >$5K/yr, 3=saves >$1K/yr |
81| **Confidence** | 20% | 10=proven pattern, 7=similar done before, 5=feasible but new, 3=uncertain |
82| **Ease** | 25% | 10=<1 day, 7=<1 week, 5=<1 month, 3=<3 months, 1=>3 months |
83| **Reliability** | 25% | 10=deterministic, 7=95%+ success, 5=80%+ success, 3=needs frequent fixes |
84
85```
86Score = (Impact × 0.30) + (Confidence × 0.20) + (Ease × 0.25) + (Reliability × 0.25)
87```
88
89### Quick Win Identification
90
91**Automate FIRST** (highest ROI, lowest risk):
921. Data entry / copy-paste between systems
932. Notification routing (email → Slack → SMS based on rules)
943. Report generation and distribution
954. File organization and naming
965. Status updates across tools
976. Meeting scheduling and follow-ups
987. Invoice creation from templates
998. Lead capture → CRM entry
1009. Onboarding checklists
10110. Backup and archival
102
103**Automate LAST** (complex, high risk):
1041. Anything involving money transfers without approval
1052. Customer-facing responses without review
1063. Legal/compliance decisions
1074. Hiring/firing workflows
1085. Security-sensitive operations
109
110---
111
112## Phase 3: Platform Selection — Choose Your Weapons
113
114### Platform Decision Matrix
115
116| Factor | No-Code (Zapier/Make) | Low-Code (n8n/Power Automate) | Custom Code | AI Agent |
117|--------|----------------------|------------------------------|-------------|----------|
118| **Best for** | Simple integrations | Complex workflows | Unique logic | Judgment calls |
119| **Build speed** | Hours | Days | Weeks | Days-weeks |
120| **Maintenance** | Low | Medium | High | Medium |
121| **Flexibility** | Limited | High | Unlimited | High |
122| **Cost at scale** | Expensive | Moderate | Cheap | Varies |
123| **Error handling** | Basic | Good | Full control | Variable |
124| **Team skill needed** | Business user | Technical BA | Developer | AI engineer |
125| **Vendor lock-in** | High | Medium | None | Low-medium |
126
127### Selection Decision Tree
128
129```
130Is the process deterministic (same input → same output)?
131├── YES: Does it involve >3 systems?
132│ ├── YES: Does it need complex branching logic?
133│ │ ├── YES → Low-code (n8n/Power Automate)
134│ │ └── NO → No-code (Zapier/Make) if budget allows, else n8n
135│ └── NO: Is it performance-critical?
136│ ├── YES → Custom code
137│ └── NO → No-code (simplest wins)
138└── NO: Does it need judgment/reasoning?
139 ├── YES: Is the judgment pattern learnable?
140 │ ├── YES → AI agent with human review
141 │ └── NO → Human-assisted automation
142 └── NO → Partial automation with human gates
143```
144
145### Cost Comparison by Scale
146
147| Monthly Tasks | Zapier | Make | n8n (self-hosted) | Custom Code |
148|--------------|--------|------|-------------------|-------------|
149| 1,000 | $30 | $10 | $5 (hosting) | $50+ (hosting) |
150| 10,000 | $100 | $30 | $5 | $50+ |
151| 100,000 | $500+ | $150 | $10 | $50+ |
152| 1,000,000 | $2,000+ | $500+ | $20 | $100+ |
153
154**Rule:** If you're spending >$200/mo on Zapier/Make, evaluate self-hosted n8n.
155
156---
157
158## Phase 4: Workflow Architecture — Design Before You Build
159
160### Workflow Blueprint Template
161
162```yaml
163workflow_blueprint:
164 name: "[Descriptive name]"
165 id: "WF-[DEPT]-[NUMBER]"
166 version: "1.0.0"
167 owner: "[Person]"
168 priority: "[P0-P3]"
169
170 trigger:
171 type: "[webhook/schedule/event/manual/condition]"
172 source: "[System or schedule]"
173 conditions: "[When to fire]"
174 dedup_strategy: "[How to prevent double-processing]"
175
176 inputs:
177 - name: "[field]"
178 type: "[string/number/date/object]"
179 required: true
180 validation: "[rules]"
181 source: "[where it comes from]"
182
183 steps:
184 - id: "step_1"
185 action: "[verb: fetch/transform/validate/send/create/update/delete]"
186 system: "[target system]"
187 description: "[what this step does]"
188 input: "[from trigger or previous step]"
189 output: "[what it produces]"
190 error_handling: "[retry/skip/alert/abort]"
191 timeout_seconds: 30
192
193 - id: "step_2_branch"
194 type: "condition"
195 condition: "[expression]"
196 true_path: "step_3a"
197 false_path: "step_3b"
198
199 error_handling:
200 retry_policy:
201 max_attempts: 3
202 backoff: "exponential"
203 initial_delay_seconds: 5
204 on_failure: "[alert/queue-for-review/fallback]"
205 alert_channel: "[Slack/email/SMS]"
206 dead_letter_queue: true
207
208 monitoring:
209 success_metric: "[what defines success]"
210 expected_duration_seconds: [max]
211 alert_on_duration_exceeded: true
212 log_level: "[info/debug/error]"
213
214 testing:
215 test_data: "[how to generate test inputs]"
216 expected_output: "[what success looks like]"
217 edge_cases: ["empty input", "duplicate", "malformed data"]
218```
219
220### 7 Workflow Design Principles
221
2221. **Idempotent by default** — Running the same workflow twice with the same input should produce the same result, not duplicates
2232. **Fail loudly** — Silent failures are worse than crashes. Every error must notify someone
2243. **Checkpoint progress** — Long workflows should save state so they can resume, not restart
2254. **Validate early** — Check inputs at the start, not after 10 expensive API calls
2265. **Separate concerns** — One workflow, one job. Chain workflows, don't build monoliths
2276. **Log everything** — Timestamps, inputs, outputs, decisions. You WILL need to debug
2287. **Human escape hatch** — Every automated workflow needs a manual override path
229
230### Common Workflow Patterns
231
232| Pattern | When to Use | Example |
233|---------|------------|---------|
234| **Sequential** | Steps depend on each other | Lead → Enrich → Score → Route |
235| **Parallel fan-out** | Independent steps | Send email + Update CRM + Log analytics |
236| **Conditional branch** | Different paths by data | High value → Sales, Low value → Nurture |
237| **Loop/batch** | Process collections | For each row in CSV, create record |
238| **Approval gate** | Human judgment needed | Contract review before sending |
239| **Event-driven chain** | Workflow triggers workflow | Order placed → Fulfillment → Shipping → Notification |
240| **Retry with fallback** | Unreliable external APIs | Try API → Retry 3x → Use cached data → Alert |
241| **Scheduled sweep** | Periodic cleanup/sync | Nightly: sync CRM → accounting |
242
243---
244
245## Phase 5: Integration Architecture — Connect Everything
246
247### Integration Quality Checklist
248
249For every system integration:
250- [ ] API documentation reviewed
251- [ ] Authentication method confirmed (OAuth2/API key/JWT)
252- [ ] Rate limits documented (requests/min, requests/day)
253- [ ] Webhook support checked (push vs poll)
254- [ ] Error response format understood
255- [ ] Pagination handling planned
256- [ ] Data format confirmed (JSON/XML/CSV)
257- [ ] Field mapping documented
258- [ ] Test environment available
259- [ ] Sandbox/production separation configured
260
261### Data Mapping Template
262
263```yaml
264data_mapping:
265 source_system: "[System A]"
266 target_system: "[System B]"
267 sync_direction: "[one-way/bidirectional]"
268 sync_frequency: "[real-time/5min/hourly/daily]"
269 conflict_resolution: "[source wins/target wins/newest wins/manual]"
270
271 field_mappings:
272 - source_field: "contact.email"
273 target_field: "customer.email_address"
274 transform: "lowercase"
275 required: true
276 - source_field: "contact.company"
277 target_field: "customer.organization"
278 transform: "trim"
279 default: "Unknown"
280 - source_field: "contact.created_at"
281 target_field: "customer.signup_date"
282 transform: "ISO8601 → YYYY-MM-DD"
283```
284
285### Rate Limit Strategy
286
287| Approach | When | Implementation |
288|----------|------|---------------|
289| **Queue + throttle** | Predictable volume | Process queue at 80% of rate limit |
290| **Exponential backoff** | Burst traffic | Wait 1s, 2s, 4s, 8s on 429 errors |
291| **Batch API calls** | High volume CRUD | Group 50-100 records per call |
292| **Cache responses** | Repeated lookups | Cache for TTL matching data freshness needs |
293| **Off-peak scheduling** | Non-urgent syncs | Run heavy syncs at 2-4 AM |
294
295---
296
297## Phase 6: Error Handling & Reliability — Build It Unbreakable
298
299### Error Classification
300
301| Type | Example | Response | Priority |
302|------|---------|----------|----------|
303| **Transient** | API timeout, 503 | Retry with backoff | Auto-handle |
304| **Rate limit** | 429 Too Many Requests | Queue + throttle | Auto-handle |
305| **Data validation** | Missing required field | Log + skip + alert | Review daily |
306| **Auth failure** | Token expired | Refresh + retry, else alert | P1 — fix within 1h |
307| **Logic error** | Unexpected state | Halt + alert + queue | P0 — fix immediately |
308| **External change** | API schema changed | Halt + alert | P0 — fix immediately |
309| **Capacity** | Queue overflow | Scale + alert | P1 — fix within 4h |
310
311### Dead Letter Queue Pattern
312
313Every workflow should have a DLQ:
3141. **Capture** — Failed items go to DLQ with full context (input, error, timestamp, step)
3152. **Alert** — Notify on DLQ growth (>10 items or >1% failure rate)
3163. **Review** — Daily check of DLQ items
3174. **Replay** — Ability to reprocess DLQ items after fix
3185. **Expire** — Auto-archive items older than 30 days with summary
319
320### Circuit Breaker Pattern
321
322```
323States: CLOSED (normal) → OPEN (failing) → HALF-OPEN (testing)
324
325CLOSED: Process normally, track failures
326 → If failure_count > threshold in window → OPEN
327
328OPEN: Reject all requests, return cached/default
329 → After cool_down_period → HALF-OPEN
330
331HALF-OPEN: Allow 1 test request
332 → If success → CLOSED
333 → If failure → OPEN (reset cool_down)
334```
335
336**Thresholds:**
337- Simple integrations: 5 failures in 60 seconds
338- Critical paths: 3 failures in 30 seconds
339- Non-critical: 10 failures in 300 seconds
340
341---
342
343## Phase 7: Testing & Validation — Trust But Verify
344
345### Automation Test Pyramid
346
347| Level | What | How | When |
348|-------|------|-----|------|
349| **Unit** | Individual step logic | Mock inputs, verify output | Every change |
350| **Integration** | System connections | Test with sandbox APIs | Weekly + after changes |
351| **End-to-end** | Full workflow path | Run with test data | Before deploy + weekly |
352| **Chaos** | Failure scenarios | Kill steps, corrupt data | Monthly |
353| **Load** | Volume handling | 10x normal volume | Before scaling |
354
355### Test Scenario Checklist
356
357For every workflow, test:
358- [ ] Happy path (normal input, expected output)
359- [ ] Empty/null input (missing required fields)
360- [ ] Duplicate input (same event twice)
361- [ ] Malformed input (wrong types, encoding issues)
362- [ ] Boundary values (max length, zero, negative)
363- [ ] API down (target system unavailable)
364- [ ] Slow response (timeout handling)
365- [ ] Partial failure (step 3 of 5 fails)
366- [ ] Concurrent execution (two runs at same time)
367- [ ] Clock skew / timezone issues
368- [ ] Large payload (oversized data)
369- [ ] Permission denied (auth issues)
370
371### Validation Before Go-Live
372
373```yaml
374go_live_checklist:
375 functionality:
376 - [ ] All test scenarios pass
377 - [ ] Edge cases documented and handled
378 - [ ] Error messages are actionable
379
380 reliability:
381 - [ ] Retry logic tested
382 - [ ] Circuit breaker configured
383 - [ ] Dead letter queue active
384 - [ ] Idempotency verified (run twice, same result)
385
386 monitoring:
387 - [ ] Success/failure alerts configured
388 - [ ] Duration alerts set
389 - [ ] Log retention configured
390 - [ ] Dashboard created
391
392 documentation:
393 - [ ] Workflow blueprint updated
394 - [ ] Runbook written
395 - [ ] Team trained on manual override
396
397 rollback:
398 - [ ] Previous version preserved
399 - [ ] Rollback procedure tested
400 - [ ] Data cleanup plan for partial runs
401```
402
403---
404
405## Phase 8: Monitoring & Observability — See Everything
406
407### Automation Health Dashboard
408
409```yaml
410automation_dashboard:
411 period: "weekly"
412
413 summary:
414 total_workflows: [count]
415 total_executions: [count]
416 success_rate: "[X%]"
417 avg_duration: "[X seconds]"
418 errors_this_period: [count]
419 time_saved_hours: [calculated]
420 cost_saved: "$[calculated]"
421
422 by_workflow:
423 - name: "[Workflow name]"
424 executions: [count]
425 success_rate: "[X%]"
426 avg_duration: "[X seconds]"
427 p95_duration: "[X seconds]"
428 errors: [count]
429 error_types: ["type1: count", "type2: count"]
430 dlq_items: [count]
431 status: "[healthy/degraded/failing]"
432
433 alerts_fired: [count]
434 manual_interventions: [count]
435
436 top_issues:
437 - "[Issue 1: description + fix status]"
438 - "[Issue 2: description + fix status]"
439
440 cost:
441 platform_cost: "$[monthly]"
442 api_calls_cost: "$[monthly]"
443 compute_cost: "$[monthly]"
444 total: "$[monthly]"
445 cost_per_execution: "$[calculated]"
446```
447
448### Alert Rules
449
450| Metric | Warning | Critical | Action |
451|--------|---------|----------|--------|
452| Success rate | <95% | <90% | Investigate + fix |
453| Duration | >2x average | >5x average | Check for bottleneck |
454| DLQ size | >10 items | >50 items | Review + reprocess |
455| Error spike | 5 errors/hour | 20 errors/hour | Pause + investigate |
456| Queue depth | >100 pending | >1000 pending | Scale + investigate |
457| Cost spike | >150% of average | >300% of average | Audit + optimize |
458
459### Weekly Review Questions
460
4611. Which workflows had the lowest success rate? Why?
4622. Are any workflows consistently slow? What's the bottleneck?
4633. How many manual interventions were needed? Can we eliminate them?
4644. What's in the DLQ? Patterns?
4655. Are we approaching any rate limits?
4666. Total cost vs total time saved — still positive ROI?
467
468---
469
470## Phase 9: Scaling & Optimization — Go From 10 to 10,000
471
472### Scaling Checklist
473
474Before scaling any automation:
475- [ ] Load tested at 10x current volume
476- [ ] Rate limits mapped for all APIs
477- [ ] Queue-based architecture (not synchronous chains)
478- [ ] Database indexes optimized
479- [ ] Caching layer in place
480- [ ] Monitoring alerts adjusted for new thresholds
481- [ ] Cost projections at scale calculated
482- [ ] Fallback/degradation plan documented
483
484### Performance Optimization Priority
485
4861. **Eliminate unnecessary API calls** — Cache lookups, batch operations
4872. **Parallelize independent steps** — Don't wait when you don't have to
4883. **Optimize data payloads** — Only fetch/send fields you need
4894. **Use webhooks over polling** — Real-time + fewer API calls
4905. **Batch processing** — Group operations (50-100 per batch)
4916. **Async where possible** — Don't block on non-critical steps
4927. **CDN/cache for static lookups** — Country codes, categories, templates
4938. **Database query optimization** — Indexes, query plans, connection pooling
494
495### When to Migrate Platforms
496
497| Signal | From | To |
498|--------|------|----|
499| Spending >$500/mo on Zapier/Make | No-code | Self-hosted n8n |
500| Need custom logic in >50% of workflows | No-code | Low-code or code |
501| >100K executions/day | Any hosted | Self-hosted or custom |
502| Complex branching breaking visual tools | Low-code | Custom code |
503| Multiple teams building automations | Single tool | Platform + governance |
504| AI judgment needed in workflows | Traditional | AI agent integration |
505
506---
507
508## Phase 10: Governance & Documentation — Keep It Manageable
509
510### Automation Registry
511
512Every automation must be registered:
513
514```yaml
515automation_registry_entry:
516 id: "WF-[DEPT]-[NUMBER]"
517 name: "[Descriptive name]"
518 description: "[What it does in one sentence]"
519 owner: "[Person]"
520 team: "[Department]"
521 platform: "[n8n/Zapier/Make/custom]"
522 status: "[active/paused/deprecated/testing]"
523 created: "[date]"
524 last_modified: "[date]"
525 last_reviewed: "[date]"
526 review_frequency: "[monthly/quarterly]"
527
528 business_impact:
529 time_saved_monthly_hours: [X]
530 cost_saved_monthly: "$[X]"
531 error_reduction: "[X%]"
532
533 technical:
534 trigger: "[type]"
535 systems_connected: ["system1", "system2"]
536 avg_daily_executions: [X]
537 success_rate: "[X%]"
538
539 dependencies:
540 upstream: ["WF-XXX"]
541 downstream: ["WF-YYY"]
542
543 documentation:
544 blueprint: "[link]"
545 runbook: "[link]"
546 test_plan: "[link]"
547```
548
549### Naming Conventions
550
551```
552Pattern: [DEPT]-[ACTION]-[OBJECT]-[QUALIFIER]
553Examples:
554 SALES-sync-leads-from-typeform
555 FINANCE-generate-invoice-monthly
556 HR-onboard-employee-new-hire
557 MARKETING-post-content-social-scheduled
558 OPS-backup-database-nightly
559```
560
561### Change Management for Automations
562
563| Change Type | Approval | Testing | Rollback Plan |
564|-------------|----------|---------|---------------|
565| **Config change** (threshold, timing) | Owner | Quick smoke test | Revert config |
566| **Logic change** (new branch, new step) | Owner + reviewer | Full test suite | Previous version |
567| **Integration change** (new API, new system) | Owner + tech lead | Integration + E2E | Disconnect + manual |
568| **New workflow** | Owner + stakeholder | Full test + pilot | Disable workflow |
569| **Deprecation** | Owner + affected teams | Verify replacements | Re-enable |
570
571### Quarterly Automation Review
572
5731. **Inventory check** — Are all automations in the registry? Any rogue workflows?
5742. **ROI validation** — Is each automation still delivering value?
5753. **Health review** — Success rates, error trends, DLQ patterns
5764. **Cost audit** — Platform costs trending up? Optimization opportunities?
5775. **Security review** — API keys rotated? Permissions still appropriate?
5786. **Deprecation candidates** — Any automations that should be retired?
5797. **Opportunity scan** — New processes to automate? Existing ones to improve?
580
581---
582
583## Phase 11: AI-Powered Automations — The Next Level
584
585### When to Add AI to Automations
586
587| Scenario | AI Type | Example |
588|----------|---------|---------|
589| Classify unstructured text | LLM | Categorize support tickets |
590| Extract data from documents | LLM + OCR | Parse invoices, contracts |
591| Generate content from templates | LLM | Personalized emails, reports |
592| Make judgment calls | LLM + rules | Lead scoring, risk assessment |
593| Summarize information | LLM | Meeting notes, research briefs |
594| Route based on intent | LLM | Customer request → right team |
595
596### AI Integration Best Practices
597
5981. **Always validate AI output** — LLMs hallucinate. Add validation checks
5992. **Set confidence thresholds** — Below threshold → human review queue
6003. **Log AI decisions** — Input, output, confidence, model version
6014. **A/B test AI vs rules** — Prove AI adds value before committing
6025. **Cost-control AI calls** — Cache similar inputs, batch where possible
6036. **Fallback to rules** — If AI is unavailable, have deterministic backup
6047. **Review AI decisions weekly** — Spot check for quality drift
605
606### AI Agent Integration Pattern
607
608```yaml
609ai_agent_step:
610 type: "ai_judgment"
611 model: "[model name]"
612
613 input:
614 context: "[relevant data from previous steps]"
615 task: "[specific instruction — be precise]"
616 output_format: "[JSON schema or structured format]"
617 constraints: ["must not", "must always", "if unsure"]
618
619 validation:
620 confidence_threshold: 0.85
621 required_fields: ["field1", "field2"]
622 value_ranges:
623 score: [0, 100]
624 category: ["A", "B", "C"]
625
626 on_low_confidence:
627 action: "route_to_human"
628 queue: "[review queue name]"
629
630 on_failure:
631 action: "fallback_to_rules"
632 rules_engine: "[rule set name]"
633
634 monitoring:
635 log_all_decisions: true
636 sample_rate_for_review: 0.10
637 alert_on_confidence_drop: true
638```
639
640---
641
642## Phase 12: Automation Maturity Model
643
644### 5 Levels of Automation Maturity
645
646| Level | Name | Description | Indicators |
647|-------|------|------------|------------|
648| **1** | Ad Hoc | Manual processes, maybe a few scripts | No registry, tribal knowledge |
649| **2** | Reactive | Automate pain points as they arise | Some workflows, no standards |
650| **3** | Systematic | Planned automation program | Registry, testing, monitoring |
651| **4** | Optimized | Continuous improvement, governance | ROI tracking, quarterly reviews |
652| **5** | Intelligent | AI-augmented, self-healing | Adaptive workflows, predictive |
653
654### Maturity Assessment (Score 1-5 per dimension)
655
656```yaml
657automation_maturity:
658 dimensions:
659 strategy: [1-5] # Planned roadmap vs ad hoc
660 architecture: [1-5] # Patterns, standards, reuse
661 reliability: [1-5] # Error handling, monitoring, uptime
662 governance: [1-5] # Registry, change management, reviews
663 testing: [1-5] # Test coverage, validation, chaos
664 documentation: [1-5] # Blueprints, runbooks, training
665 optimization: [1-5] # Performance, cost, continuous improvement
666 ai_integration: [1-5] # AI-powered decisions, self-healing
667
668 total: [sum ÷ 8]
669 grade: "[A/B/C/D/F]"
670 # A: 4.5+ | B: 3.5-4.4 | C: 2.5-3.4 | D: 1.5-2.4 | F: <1.5
671
672 top_gap: "[lowest scoring dimension]"
673 next_action: "[specific improvement for top gap]"
674```
675
676---
677
678## 100-Point Quality Rubric
679
680| Dimension | Weight | 0-2 (Poor) | 3-5 (Basic) | 6-8 (Good) | 9-10 (Excellent) |
681|-----------|--------|------------|-------------|------------|-------------------|
682| **Design** | 15% | No blueprint, ad hoc | Basic flow documented | Full blueprint with error handling | Blueprint + edge cases + optimization |
683| **Reliability** | 20% | No error handling | Basic retries | DLQ + circuit breaker + fallback | Self-healing + auto-scaling |
684| **Testing** | 15% | No tests | Happy path only | Full test pyramid | Chaos testing + load testing |
685| **Monitoring** | 15% | No visibility | Basic success/fail logs | Dashboard + alerts | Predictive monitoring |
686| **Documentation** | 10% | None | README exists | Blueprint + runbook | Full docs + training materials |
687| **Security** | 10% | Hardcoded credentials | Encrypted secrets | Least privilege + rotation | Zero-trust + audit trail |
688| **Performance** | 10% | Works but slow | Acceptable speed | Optimized + cached | Auto-scaling + sub-second |
689| **Governance** | 5% | No registry | Listed somewhere | Full registry + reviews | Change management + compliance |
690
691**Score: (weighted sum) → Grade: A (90+) B (80-89) C (70-79) D (60-69) F (<60)**
692
693---
694
695## 10 Automation Killers
696
697| # | Mistake | Fix |
698|---|---------|-----|
699| 1 | Automating a broken process | Fix the process FIRST, then automate |
700| 2 | No error handling | Every step needs a failure path |
701| 3 | Silent failures | If it fails and nobody knows, it's worse than manual |
702| 4 | Not testing edge cases | Test empty, duplicate, malformed, concurrent |
703| 5 | Hardcoded values | Use config/environment variables for everything |
704| 6 | No monitoring | You can't fix what you can't see |
705| 7 | Building monolith workflows | One workflow, one job. Chain them together |
706| 8 | Ignoring rate limits | Design for API limits from day one |
707| 9 | No documentation | Future-you will hate present-you |
708| 10 | Over-automating | Not everything should be automated. Human judgment exists for a reason |
709
710---
711
712## Edge Cases
713
714### Small Team / Solo Founder
715- Start with Zapier/Make — speed over flexibility
716- Automate the 3 most time-consuming tasks first
717- Graduate to n8n when spending >$100/mo on no-code
718
719### Regulated Industry
720- Add approval gates at every decision point
721- Log all automated actions for audit trail
722- Review automations quarterly with compliance team
723- Document data flow for privacy impact assessments
724
725### Legacy Systems
726- Use middleware/iPaaS for legacy integration
727- Build adapters that normalize legacy data formats
728- Plan for eventual migration, not permanent workarounds
729
730### Multi-Team / Enterprise
731- Establish automation Center of Excellence (CoE)
732- Standardize on 1-2 platforms max
733- Shared component library for common patterns
734- Governance board for cross-team automations
735
736### AI-Heavy Workflows
737- Always keep human-in-the-loop for high-stakes decisions
738- Monitor AI output quality continuously
739- Budget for AI API costs separately (they scale differently)
740- Version-pin AI models — don't auto-upgrade in production
741
742---
743
744## Natural Language Commands
745
746Use these to invoke specific phases:
747
7481. `audit my processes for automation opportunities` → Phase 1
7492. `prioritize automations by ROI` → Phase 2
7503. `recommend automation platform for [process]` → Phase 3
7514. `design workflow blueprint for [process]` → Phase 4
7525. `plan integration between [system A] and [system B]` → Phase 5
7536. `design error handling for [workflow]` → Phase 6
7547. `create test plan for [automation]` → Phase 7
7558. `set up monitoring for [workflow]` → Phase 8
7569. `optimize [workflow] for scale` → Phase 9
75710. `review automation governance` → Phase 10
75811. `add AI to [workflow]` → Phase 11
75912. `assess automation maturity` → Phase 12