Skip to main content

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

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:
  1. Extract the document fields: document type, reference number, amount, vendor or supplier identifier, and date.
  2. Check whether the required fields are present and in the expected format.
  3. Look up the corresponding purchase order or reference record in your ERP system.
  4. Compare key fields (amount, vendor, line items if available) against the reference record.
  5. Assign a validation status: matched, discrepancy found, or reference not found.
  6. Log the validation result against the document record.
  7. Route to SOP 2 (approval routing) with the validation result attached.
Escalation rule: If the document cannot be parsed or required fields are missing, route to the human review queue as “incomplete document” without attempting validation.
Trigger: Validated document with status from SOP 1.Steps:
  1. 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).
  2. 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.
  3. Send the notification to the approver via the configured channel (e.g. internal notification system or email).
  4. Log the routing action with the approver identity and timestamp.
  5. Set a follow-up reminder if no response is received within the configured window.
Escalation rule: If the approver cannot be determined from the routing rules, route to the human review queue flagged as “approver unknown”.
Trigger: An approval or rejection response is received from an approver.Steps:
  1. Read the response and identify the decision: approved, rejected, or returned for clarification.
  2. Update the document status in your ERP system to reflect the decision.
  3. Log the decision with the approver identity, timestamp, and any comments provided.
  4. If approved: mark the document as ready for payment processing (no payment is initiated by the agent).
  5. If rejected: notify the relevant contact or team with the rejection reason.
  6. If returned for clarification: route the document back to the human review queue with the clarification request attached.
Escalation rule: The agent never initiates a payment. “Ready for payment processing” is a status flag only — payment execution is always a manual step performed by an authorised person.
Trigger: Scheduled trigger (e.g. end of week, end of month — configured per deployment).Steps:
  1. Query your ERP system for documents processed during the period: total received, matched, discrepancies found, pending approval, approved, rejected.
  2. Compile the counts into a structured summary.
  3. Format the summary using the approved report template.
  4. Send the summary to the configured recipients.
  5. Log the report generation event with a timestamp.
Note: The report contains counts and statuses only. It does not contain payment details or account balances.

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
The agent has no ability to approve documents, initiate payments, or modify financial records beyond status flags. These constraints are enforced at the integration permission level, not just in the SOP logic.

JSON message flow (simplified)

A simplified document processing event written to the audit log:
For a document with a discrepancy, 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
This log is the primary record for any subsequent review or query about how a document was processed. It cannot be modified by the agent after writing.

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