Back-office / accounting department playbook
This playbook illustrates how the agent blueprint applies to a department whose primary job is processing internal business events — invoices, approvals, reconciliations, expense submissions, and similar financial or administrative workflows. You might recognise this as an accounts payable function, a finance operations desk, or a general back-office coordination team. Use this as a reference when mapping the blueprint to your own equivalent department. Every placeholder (“Department C”, “VM-3”, “your ERP system”) stands in for the real names you would substitute during a scoping engagement.This playbook describes a structural pattern, not a finished implementation. Exact scope, timelines, and fit for your situation are determined during the consulting process. See Scope & Boundaries for how scoping works.
Department profile
Role definition
The agent’s role statement for a back-office department:VM-3 is responsible for receiving financial and administrative documents, validating them against defined rules, and routing them to the correct approver with all relevant context pre-assembled. It does not approve, reject, or execute payments. All financial decisions require explicit human sign-off.This constraint is non-negotiable for back-office agents. The agent prepares and routes; a person decides. The audit trail records both.
Standard operating procedures
SOP 1: Receive and validate a document
SOP 1: Receive and validate a document
Trigger: A new document event arrives from a connected input source (e.g. a new invoice record in your ERP system, or a submission to the shared invoice inbox).Steps:
- Extract the document fields: document type, reference number, amount, vendor or supplier identifier, and date.
- Check whether the required fields are present and in the expected format.
- Look up the corresponding purchase order or reference record in your ERP system.
- Compare key fields (amount, vendor, line items if available) against the reference record.
- Assign a validation status: matched, discrepancy found, or reference not found.
- Log the validation result against the document record.
- Route to SOP 2 (approval routing) with the validation result attached.
SOP 2: Route for approval
SOP 2: Route for approval
Trigger: Validated document with status from SOP 1.Steps:
- Determine the correct approver based on the routing rules configured for this deployment (rules may be based on document type, amount range, department, or vendor category).
- Compose an approval notification containing: document reference, amount, vendor, validation status, any discrepancy summary, and a link to the document record in your ERP system.
- Send the notification to the approver via the configured channel (e.g. internal notification system or email).
- Log the routing action with the approver identity and timestamp.
- Set a follow-up reminder if no response is received within the configured window.
SOP 3: Process approval response
SOP 3: Process approval response
Trigger: An approval or rejection response is received from an approver.Steps:
- Read the response and identify the decision: approved, rejected, or returned for clarification.
- Update the document status in your ERP system to reflect the decision.
- Log the decision with the approver identity, timestamp, and any comments provided.
- If approved: mark the document as ready for payment processing (no payment is initiated by the agent).
- If rejected: notify the relevant contact or team with the rejection reason.
- If returned for clarification: route the document back to the human review queue with the clarification request attached.
SOP 4: Generate periodic summary report
SOP 4: Generate periodic summary report
Trigger: Scheduled trigger (e.g. end of week, end of month — configured per deployment).Steps:
- Query your ERP system for documents processed during the period: total received, matched, discrepancies found, pending approval, approved, rejected.
- Compile the counts into a structured summary.
- Format the summary using the approved report template.
- Send the summary to the configured recipients.
- Log the report generation event with a timestamp.
Input sources
Outbound interfaces
Escalation rules
The following situations always route to a human:- Document cannot be parsed or required fields are missing
- Reference record (purchase order or equivalent) cannot be found in your ERP system
- Discrepancy is found between the document and the reference record — these are never auto-approved
- Approver cannot be determined from routing rules
- Any document above the configured amount threshold (threshold is set per deployment)
- Approval response contains a request for clarification
JSON message flow (simplified)
A simplified document processing event written to the audit log:validation_status becomes "discrepancy_found", discrepancy contains a plain-language description, and escalated is true.
Audit trail
Every action the agent takes is written to an append-only audit log. Each entry records:- The input event that triggered the action
- The SOP step executed
- The data read and written
- The human involved (if any — approver identity, reviewer identity)
- A timestamp
Staged evolution
Starting at Phase 1 lets the team validate the validation SOP against real documents before any notifications are sent to approvers. Discrepancy detection can be tuned during this phase with no risk of misdirecting approvals.
Cross-references
- What is an agent? — role definitions and the three layers of every agent
- Agent Structure → Overview — inputs, intelligence, and actions
- Agent Structure → Components — guardrails, tools, and handoff rules
- Agent Structure → Integrations — connecting ERP systems and approval channels
- ERP & Legacy Systems — adapter patterns for connecting to existing financial systems
- Scope & Boundaries — how scope and financial guardrails are defined and controlled