# Ledger Intake Agent

*/Services/Ledger_Intake_Agent*

## Service Contract

**Sla**: Categorized ledger entries are generated and synced within 4 hours of document receipt or feed ingestion.
**Input**:
- Raw receipts and vendor invoices
- Uncategorized bank feed lines
- Target chart of accounts
**Output**:
- Categorized transaction drafts
- Extracted vendor and line-item metadata
- Exception flags for missing document information
**Sla Basis**: turnaround-time
**Definition**: A service offering that accepts raw financial documents and transaction feeds, extracts the relevant financial data, categorizes it according to a provided chart of accounts, and generates structured ledger entries ready for reconciliation.
**Solves Problem**: [Uncategorized Transaction Backlog](/Problems/Uncategorized_Transaction_Backlog)
**Absorbs Process**: [General Ledger Maintenance](/Processes/General_Ledger_Maintenance)
**Delivery Lenses**:
- human
- services-as-software
**Outcome Contract**: All submitted financial documents and transaction feeds are ingested, extracted, and categorized against the target chart of accounts to produce standardized journal entries that require no manual data entry.

## Service Function Cascade

**Ai Role**: AI performs the core data extraction and account categorization, acting as the primary processor while routing ambiguous or incomplete transactions to human reviewers for exception handling.
**Cascade**:
- Kind: Code · Note: Fetches raw bank feeds, receipts, and invoices from connected sources. · Step: Ingest Financial Documents · Verb: ingest · Realizes: Process Financial Transactions · Oversight: none
- Kind: Generative · Note: Pulls vendor names, amounts, dates, and line items from unstructured text. · Step: Extract Transaction Metadata · Verb: extract · Realizes: Extract Transaction Data · Oversight: none
- Kind: Agentic · Note: Evaluates extracted context and historical ledgers to assign account codes. · Step: Map to Chart of Accounts · Verb: classify · Realizes: Categorize Financial Transactions · Oversight: none
- Kind: Generative · Note: Human reviews flagged documents missing details or falling below confidence thresholds. · Step: Resolve Low-Confidence Exceptions · Verb: resolve · Realizes: Resolve Ledger Discrepancies · Oversight: review-on-exception
- Kind: Code · Note: Formats categorized transactions into standardized entries for ERP sync. · Step: Draft Ledger Entries · Verb: format · Realizes: Post Journal Entries · Oversight: none
**Realizes**:
- [Process Financial Transactions](/Tasks/Process_Financial_Transactions)
- [Extract Transaction Data](/Tasks/Extract_Transaction_Data)
- [Categorize Financial Transactions](/Tasks/Categorize_Financial_Transactions)
- [Resolve Ledger Discrepancies](/Tasks/Resolve_Ledger_Discrepancies)
- [Post Journal Entries](/Tasks/Post_Journal_Entries)
**Optimizes**:
- [Categorization Accuracy Rate](/Metrics/Categorization_Accuracy_Rate)
- [Straight-Through Processing Rate](/Metrics/Straight-Through_Processing_Rate)
- [Categorization Cycle Time](/Metrics/Categorization_Cycle_Time)

## Service Wrapper Fanout

- [Ledger Intake Agent](/Agents/Ledger_Intake_Agent) — Agent

## Service Representative Offer

**Warranty**: The provider guarantees categorized ledger entries are generated within 4 hours of document receipt, offering pro-rated usage credits for transactions that exceed the SLA turnaround time.
**Price Band**: ~$0.10 to $0.35 per successfully processed document or transaction line, depending on monthly volume commitments.
**Pricing Kind**: UsageMeter
**Deliverables**:
- Structured journal entry drafts mapped to the provided chart of accounts
- Extracted vendor, date, and line-item metadata records
- Exception queue alerts for documents with missing or unreadable information
**Delivery Mode**: The buyer provisions the service via a self-serve portal or API connection, immediately enabling automated, metered ingestion of financial documents and bank feeds.
**Business Function**: ProvideService
**Agent Checkout Support**:
- agentic-commerce-protocol
- stored-credential

## Service Composes Headless Saas

- [Bank Feed Ingestion API](/Software/Bank_Feed_Ingestion_API) — Financial Data
- [Document Extraction Model](/Software/Document_Extraction_Model) — ML / Vision
- [ERP Ledger Sync API](/Software/ERP_Ledger_Sync_API) — Ledger State
- [Semantic Categorization Engine](/Software/Semantic_Categorization_Engine) — ML / NLP
- [Journal Posting Endpoint](/Software/Journal_Posting_Endpoint) — ERP Integration

## Service Delivery Cascade Diagram

```mermaid
flowchart TD; A[Code Ingest Financial Documents] --> B[Generative Extract Transaction Metadata]; B --> C[Agentic Ledger Intake Agent Map to Chart of Accounts]; C --> D[Generative Resolve Low Confidence Exceptions]; D --> E[Code Draft Ledger Entries]; E --> F[Standardized Ledger Entries];
```

## Neighborhood

### What it addresses

- [Uncategorized Transaction Backlog](/Problems/Uncategorized_Transaction_Backlog) — addresses · Problems

### Composed of

- [Ledger Intake Agent](/Agents/Ledger_Intake_Agent) — composes · Agents
- [Bank Feed Ingestion API](/Software/Bank_Feed_Ingestion_API) — composes · Software
- [Document Extraction Model](/Software/Document_Extraction_Model) — composes · Software
- [ERP Ledger Sync API](/Software/ERP_Ledger_Sync_API) — composes · Software
- [Journal Posting Endpoint](/Software/Journal_Posting_Endpoint) — composes · Software
- [Semantic Categorization Engine](/Software/Semantic_Categorization_Engine) — composes · Software
