Chapter 3: The Trilogy Framework
Why Some Solutions Work and Others Don't
Two consultants can both implement document automation for similar clients in the same vertical and get dramatically different results. One client raves about the solution, renews immediately, and sends referrals. The other struggles to adopt the system, calls frequently with complaints, and doesn't renew.
The difference is almost never the quality of the templates. It's almost always the architecture — specifically, whether the consultant understood that document generation is not the whole solution. It's one-third of it.
This chapter introduces the Trilogy Framework: the three-layer architecture that separates document automation solutions that transform businesses from those that merely generate paperwork.
The framework comes from a 665,000-word technical trilogy — Building Intelligent Systems — that documents the complete pattern language for organizational knowledge systems. This chapter distills the framework's core concepts into the practical foundation you need as a consultant. If you want the full theoretical depth, the trilogy is available at datapublisher.io/books.
The Three Layers
Every successful document automation solution operates across three interconnected layers.
┌─────────────────────────────────────────────────────┐
│ OUTPUT LAYER │
│ Documents Generated from Structured Data │
│ Proposals • Contracts • Reports • Certificates │
├─────────────────────────────────────────────────────┤
│ INTELLIGENCE LAYER │
│ What the System Observes, Predicts, │
│ Discovers, and Acts On │
├─────────────────────────────────────────────────────┤
│ INPUT LAYER │
│ How Information Enters the System │
│ Data Entry • Imports • Forms • Integrations │
└─────────────────────────────────────────────────────┘
Most document automation approaches address only the OUTPUT layer — they build templates and stop there. This produces solutions that generate documents but don't transform the business. The Trilogy Framework requires all three layers to work together as an integrated system.
Layer 1: The OUTPUT Layer
What It Is
The OUTPUT layer is the most visible part of any document automation solution — the templates that generate professional, accurate documents from structured data. It's what clients see first, what impresses them in demos, and what they'll talk about when they describe the solution to colleagues.
The OUTPUT layer answers the question: What documents does this organization need, and what logic governs how they're created?
The Architecture of a Good Document Template
A professional document template is not a static Word document with blanks to fill in. It's a dynamic program that:
Pulls data from multiple sources. A construction contract might draw from the Projects table (scope, location, timeline), the Clients table (name, address, billing), the Contracts table (value, payment schedule), and a StateRequirements lookup table (jurisdiction-specific legal language). Every field is connected to a specific data source — no manual entry required.
Applies conditional logic. The same base template produces different outputs depending on the data. A lease agreement includes lead paint disclosure language for properties built before 1978 and omits it for newer properties. A legal complaint uses different procedural language for state court versus federal court. A medical consent form includes different sections depending on the procedure being performed. This logic is encoded once in the template and applied correctly every time.
Handles repeating sections. Many documents contain lists of variable length — line items on an invoice, witnesses on a legal document, students in a class roster, committee members in a board packet. Template loops — {{ForEach:LineItems}}...{{EndForEach}} — generate each repetition automatically from the data, regardless of how many items exist.
Formats output professionally. Dates formatted correctly for the context (January 15, 2026 for a formal letter, 01/15/2026 for a form). Currency with appropriate symbols and decimal places. Phone numbers in consistent formats. Text automatically bolded or sized based on document section. A finished document that looks like it was produced by a professional designer, not assembled from data.
Enforces compliance. For regulated industries, the template encodes the requirements. The insurance COI always includes the required ACORD language. The nonprofit grant report always includes the required outcome metrics section. The homeschool transcript includes every element required by the state. Compliance isn't checked after the fact — it's built into the document structure.
The Document Portfolio
In any vertical, the OUTPUT layer consists of a portfolio of 15–50 document types, organized by function and priority. The highest-priority documents are those that are:
- Created most frequently (daily or weekly)
- Most time-consuming to create manually
- Most consequential if incorrect (legal, financial, or compliance impact)
- Most visible to clients or external parties
Chapter 5 provides complete document portfolios for 15 verticals. The prioritization methodology for new verticals is covered in Chapter 4.
What the OUTPUT Layer Cannot Do Alone
A solution that consists entirely of templates — even excellent templates — has a fundamental limitation: it only generates documents when a human explicitly requests them. The system has no awareness of what's happening in the business, no ability to detect problems, and no capacity to act proactively.
This is why the OUTPUT layer alone produces solutions that clients describe as "helpful but not transformative." For transformation, you need the INTELLIGENCE layer.
Layer 2: The INTELLIGENCE Layer
What It Is
The INTELLIGENCE layer is what separates a sophisticated document automation solution from a glorified mail merge. It's the system's ability to observe what's happening in the organization, identify patterns and anomalies, predict future conditions, and take action — often by generating the right OUTPUT automatically at the right time, without being asked.
The INTELLIGENCE layer answers the question: What does the system need to know, monitor, and act on to make this organization run better?
The Four Functions of Intelligence
Function 1: Observation
A system with intelligence observes the organization's data continuously and reports on what it sees. This means dashboards and metrics that give decision-makers a clear picture of current state.
For a property management company: how many units are occupied today, vacancy rate by property, maintenance requests by status and age, leases expiring in the next 90 days, payments received vs. expected for this week, tenants with balance due.
For a law firm: active cases by attorney and stage, approaching court deadlines, unsigned engagement letters, bills outstanding over 30 days, cases opened this month vs. last month.
For a nonprofit: grant applications in process, grant reports due by date, donor gifts this month vs. last month vs. budget, upcoming events by registration count.
Observation translates organizational complexity into clarity. It eliminates the need to manually compile status reports — the data is always current, always visible.
Function 2: Prediction
A system with intelligence doesn't just report what's happening now — it forecasts what's likely to happen based on patterns in the historical data. These predictions allow the organization to intervene before problems become crises.
For a membership organization: which members are at high lapse risk based on engagement score (events attended, committee participation, CEU completion pace, prior renewal history). Members who score below 40 on the engagement index are 3x more likely not to renew. The system identifies them 90 days before renewal — early enough to intervene.
For a restaurant chain: which shift is likely to be short-staffed based on historical absenteeism patterns on comparable days. The system suggests calling in a backup employee the day before rather than scrambling the morning of.
For an insurance agency: which policies are approaching renewal with carriers who have been increasing rates in this category — flagging accounts where the client should be re-marketed before renewal conversation begins.
Prediction converts reactive management to proactive management. Problems are addressed before they occur rather than after.
Function 3: Discovery
Discovery is the intelligence function that surprises clients most. It's the system's ability to surface patterns in the data that nobody specifically looked for — insights that exist in the data but were invisible until the system found them.
A homeschool co-op discovers that families who volunteer in their first semester stay an average of 3.2 years, vs. 1.8 years for families who don't volunteer in their first semester. Nobody asked for this analysis. The system found it by correlating volunteer records with enrollment duration. The co-op's response: redesign new family onboarding to prioritize getting families volunteering in their first 60 days.
A law firm discovers that cases where the client portal account was never activated are 2.4x more likely to result in billing disputes. The discovery triggers a new workflow: every new client who hasn't activated their portal within 14 days receives an outreach from the paralegal.
An accounting firm discovers that clients who don't return their tax organizer by February 15 file for extension at a 78% rate, vs. 12% for clients who return by February 15. This leads to an intensive follow-up campaign targeting non-responders in the first two weeks of February.
Discovery insights cannot be anticipated in advance — they emerge from the data itself. A system rich with complete, accurate, longitudinal data will continually surface them.
Function 4: Action
The most powerful intelligence function is automated action: the system doing something based on what it observes or predicts, without waiting for a human to initiate the process.
The most common and valuable form of automated action is triggered document generation. The renewal letter goes out automatically 90 days before the membership expires. The lease renewal offer is generated automatically 60 days before the lease end date. The CEU completion reminder is triggered automatically when a member reaches 60 days before their certification deadline with credits still needed. The late payment notice is generated on day 4 after the grace period expires.
This is the synthesis of the OUTPUT layer and the INTELLIGENCE layer. Intelligence knows when and for whom a document is needed. Output knows what the document should say. Together, they produce the right communication at the right time without human intervention.
The Intelligence Layer in Practice
Implementing the INTELLIGENCE layer doesn't require building a custom analytics platform. It requires thoughtful data structure design — specifically, capturing the right data elements so that meaningful observation, prediction, discovery, and action are possible.
The most common intelligence failures in document automation implementations are:
Not capturing dates. Systems that track what happened but not when cannot calculate age, time since last event, days until deadline, or trend. Every table should include relevant date fields: creation date, last modified date, transaction date, deadline date. These are the raw material of intelligence.
Not tracking engagement. Knowing that a member exists is different from knowing that they've attended 0 events in 12 months, haven't logged in in 45 days, and are 30 days past their last renewal. Engagement tracking requires intentional data collection — but it enables the most powerful predictive features.
Not building status fields. Open/closed, active/inactive, pending/approved/denied, paid/outstanding/overdue. Status fields allow the system to filter, segment, and count by state — the foundation of any useful dashboard.
Designing for current state only. Many consultants build systems that track the current value of a field but don't maintain history. For a membership system, knowing that a member's current status is "active" is less valuable than knowing they were lapsed for 14 months before reinstating — a pattern that predicts future lapse risk.
Chapter 4 covers data structure design in detail, including the specific decisions that enable or disable intelligence capabilities.
Layer 3: The INPUT Layer
What It Is
The INPUT layer is how information enters the system. This sounds mundane — someone types data into fields, or imports a spreadsheet. But the INPUT layer is where most implementations silently fail, and it's the layer that determines whether the INTELLIGENCE layer can function at its full potential.
The INPUT layer answers the question: How does accurate, complete, structured data get into the system consistently — and stay there?
Why Input Is the Hardest Layer
The INTELLIGENCE layer can only be as smart as the data it works with. The OUTPUT layer can only be as accurate as the data it draws from. Both layers depend entirely on the INPUT layer doing its job correctly.
The challenge is that data entry is performed by humans who have competing priorities, varying levels of technical comfort, and sometimes limited understanding of why specific data points matter. A membership coordinator who doesn't understand that the CEU completion date is critical for certification tracking will skip it when it's not convenient to collect. A construction PM who doesn't understand that the "preliminary notice sent date" drives lien rights compliance will enter it inconsistently or not at all.
Effective INPUT layer design makes correct data entry the path of least resistance. It structures the interface so that required information is captured at the natural moment in the workflow. It validates data entry in real time — alerting the user when a date is in the wrong format, a required field is empty, or a value falls outside an expected range. It provides enough context (field labels, tooltips, examples) that users understand what's being asked and why.
The Three Input Methods
Direct data entry. Users enter information through forms — web interfaces, spreadsheets, or the Data Publisher input forms. This is the most common input method for new records: a new client, a new project, a new event registration.
Design principles for direct entry: - Group related fields logically (don't require users to scroll past irrelevant fields to reach what they need for the current task) - Make required fields visually distinct - Use dropdown lists for fields with defined value sets (status fields, category fields, state codes) — free text entry in these fields creates inconsistency that degrades intelligence - Validate immediately, not on save - Preserve partially completed records — don't require all fields before saving, or users will skip non-required fields
Bulk import. Many clients have existing data — in spreadsheets, in other software, in exported database files — that needs to be loaded into the new system. This is a critical implementation step that's often underestimated.
Common import challenges: - Inconsistent formatting (dates in 5 different formats in the same column) - Blank fields for records where the data was never collected - Duplicate records - Category values that don't match the new system's standards ("Bd Mbr" vs. "Board Member" vs. "Board") - Related records that need to be linked after import (matching transaction records to the right customer records)
Chapter 10 covers import methodology in detail. The key principle: data quality problems discovered before import are cheap to fix; data quality problems discovered after the system is live are expensive.
Automated integration. The most powerful input method is data that flows automatically from existing systems — a CRM, a practice management platform, a property management system, an AMS. Rather than asking users to enter data in two places, integration captures it once and makes it available to both systems.
Integration is beyond the scope of initial implementations for most clients, but it's worth understanding what's possible and naming it as a future phase. For clients using AppFolio (property management), Wild Apricot (membership), or Clio (law firms), integration reduces ongoing data entry burden significantly and improves data currency.
The Self-Reinforcing Loop
The three layers of the Trilogy Framework are not independent — they form a self-reinforcing loop.
Better INPUT produces richer data, which enables more powerful INTELLIGENCE. More powerful INTELLIGENCE drives more automated OUTPUT, which delivers more value to clients, which motivates them to maintain better INPUT. The system rewards completeness and punishes gaps.
When clients ask why it matters that they fill in the "referral source" field for every new lead, the answer is: because in 18 months, the system will tell you which referral sources produce clients who stay the longest and spend the most — and you'll use that to focus your marketing. The field seems optional today; its value is revealed over time.
This is the core of organizational intelligence: the system becomes smarter over time as more data accumulates and more patterns become visible. Solutions built on the Trilogy Framework don't just automate documents — they build institutional knowledge that compounds in value.
Applying the Framework: A Walkthrough
To make the framework concrete, let's trace a single scenario through all three layers in a property management context.
The scenario: A tenant's lease is expiring in 75 days, and the property manager needs to decide whether to offer renewal, what terms to offer, and when to communicate.
INPUT Layer (the data that makes this possible): The system has complete tenant records including: lease start date, lease end date, monthly rent, payment history (12 months of on-time vs. late payments), maintenance request history (count and resolution satisfaction), move-in inspection condition, and notes from periodic communications.
INTELLIGENCE Layer (observation → prediction → action): 75 days before lease end, the system flags this tenant in the renewal pipeline dashboard. It calculates a Renewal Recommendation Score based on payment history (perfect: no late payments in 12 months), maintenance history (2 routine requests, both resolved), and lease duration (has been a tenant for 2 years — lower turnover risk). Score: 91/100 — strong renewal candidate.
The system also looks at current market rents for comparable units in the building's zip code (if market data is integrated) and notes that market rents have increased 6% since this tenant's lease was signed. It flags this as an opportunity to adjust rent at renewal.
Predicted outcome: 87% probability of renewal acceptance if offered within the next 2 weeks with a 4% rent increase.
OUTPUT Layer (automated action): The system generates a renewal offer letter: personalized with the tenant's name and unit, current rent and proposed new rent clearly stated, lease term options (12-month or 6-month), and a response deadline. The letter is professional, accurate, and ready for the property manager's review and send — not drafted from scratch.
If the tenant doesn't respond within 10 days, the INTELLIGENCE layer triggers a follow-up. If they don't respond with 45 days remaining, it flags the unit for vacancy preparation workflow.
The result: A process that previously required the property manager to remember the lease date, pull the file, review the history, draft the letter, and track the response — all manually — now runs automatically. The property manager reviews, approves, and sends. Total time: 4 minutes instead of 45.
This is what the Trilogy Framework looks like in practice.
Common Mistakes When Applying the Framework
Even with the framework clearly understood, consultants make predictable mistakes in implementation. Recognizing these in advance saves significant rework.
Mistake 1: Building OUTPUT without designing INPUT.
The most common failure pattern: a consultant builds impressive-looking templates and demonstrates them to the client. The client is delighted. Implementation begins. Then everyone discovers that the data required to populate those templates isn't available, isn't accurate, or isn't organized correctly. Templates that assumed clean, structured data fall apart when confronted with real client data.
Prevention: Always design the data structure before designing the templates. Every template field should trace to a specific data source. If that data source doesn't exist or isn't reliable, either redesign the template or build the data collection process first.
Mistake 2: Ignoring INTELLIGENCE because the client didn't ask for it.
Clients rarely ask for intelligence features in the initial sale. They ask for "a system that generates my renewal letters automatically." But a system that generates renewal letters without an intelligence layer to determine which clients are at risk, when to send each communication, and what happened after sending is delivering a fraction of the possible value.
Prevention: Design the INTELLIGENCE layer as part of the initial scope, even if it's delivered in a second phase. Build the data structure to support intelligence features from day one. A data structure designed for OUTPUT only is expensive to retrofit for intelligence later.
Mistake 3: Poor INPUT design that guarantees data degradation.
A system with no validation, no required fields, no dropdown standardization, and no user guidance will have excellent data quality for the first 30 days — while the consultant is involved. After that, data entry will drift toward incompleteness and inconsistency. Intelligence features built on this data will produce misleading results.
Prevention: Invest in INPUT design as seriously as OUTPUT design. The templates are what clients see; the input structure is what determines whether the system remains valuable in Year 3.
Mistake 4: Delivering OUTPUT without training on the framework.
Some clients will see the document generation capability and start using the system, but never understand that there's a broader framework available to them. They use 10% of what was built.
Prevention: Explicitly teach the three-layer framework during client training. Show them the intelligence features and how to act on them. Help them understand that the value compounds over time as their data grows.
The Trilogy Framework as Your Consulting Compass
Throughout Chapter 5's vertical playbooks, you'll see the Trilogy Framework applied to 15 different industries. Every vertical follows the same structure: INPUT (what data the system needs), INTELLIGENCE (what the system observes, predicts, and does), OUTPUT (what documents it generates). The content changes by vertical; the framework is constant.
When you sit down with a new client you've never worked with before, the framework gives you a structured discovery process. Ask: What information does your organization manage? What do you wish you could see more clearly? What documents do you create most often? The answers map directly to INPUT, INTELLIGENCE, and OUTPUT.
When a client calls with a problem — "the system isn't working for us" — the framework gives you a diagnostic structure. Is the problem in INPUT (data is incomplete or inconsistent), INTELLIGENCE (the system isn't surfacing useful information), or OUTPUT (the documents aren't meeting requirements)? Each root cause has a different solution.
When you're scoping a new engagement, the framework gives you a completeness check. Have you designed all three layers? Have you accounted for the data collection that enables intelligence? Have you built the intelligence features that make the output generation more than reactive?
The Trilogy Framework is not just a design tool — it's a professional standard. Solutions built to this standard deliver more value, generate more referrals, and renew at higher rates than solutions built without it.
Chapter Summary
- The Trilogy Framework consists of three interconnected layers: INPUT (how data enters the system), INTELLIGENCE (what the system observes, predicts, discovers, and acts on), and OUTPUT (the documents generated from structured data)
- Most document automation implementations address only the OUTPUT layer; this produces useful but not transformative solutions
- The OUTPUT layer includes all document templates with their conditional logic, repeating sections, data connections, and formatting rules
- The INTELLIGENCE layer includes four functions: observation (dashboards and current state), prediction (identifying risk before it materializes), discovery (surfacing patterns nobody asked for), and action (triggering documents and workflows automatically)
- The INPUT layer determines data quality, completeness, and currency — and therefore determines whether the INTELLIGENCE layer can function at all
- The three layers form a self-reinforcing loop: better input enables better intelligence, which drives more valuable output, which motivates better input
- Common mistakes: building output without designing input first; ignoring intelligence because the client didn't ask for it; poor input design that guarantees data degradation over time; delivering output without training clients on the full framework
- The framework provides a consulting compass for discovery, diagnostics, scoping, and quality standards across all verticals
Next: Chapter 4 — Building Domain Intelligence
In Chapter 4, we'll cover how to acquire deep vertical expertise — the domain knowledge that makes your solutions feel custom-built for a specific industry. You'll get the week-by-week process for becoming a vertical expert, including how to discover the documents that matter most, design the data structures that enable intelligence, and map the compliance requirements that create the deepest client lock-in.
Chapter 3 | The Document Automation Consultant | datapublisher.io/books