What happens when a supplier changes its invoice layout and the software that reads invoices stops working? Amazon Bedrock AgentCore, an AWS platform for building, connecting, and running AI agents, is used in a reference design that avoids that failure. Several cooperating agents identify each document, pull out its data, check the result, and remember the format for next time.
What does this document processing system actually do?
It reads business documents such as supplier invoices, purchase orders, insurance claims, and loan applications. It sorts them by type and sender, extracts the fields that matter, and checks those fields against business rules. AWS describes the design in a machine learning blog post and in a companion architecture guide, which says the goal is to cut manual data entry, reduce errors, and free staff for higher-value work.
The difference from older tools is how they handle layouts. AWS explains that many intelligent document processing (IDP) pipelines need templates, extraction rules, and validation logic defined for every format in advance. A new vendor with a different layout breaks the pipeline. In the agentic version, agents analyze each document, write their own extraction instructions, validate the output, and learn from corrections.
Why is template-based processing a problem?
AWS cites IDC research that puts the cost of document-related challenges at $19,732 per information worker each year, with productivity down 21.3 percent. The post also says staff can spend up to 30 percent of their time on document tasks. It adds that manual data entry error rates run between 1 and 4 percent.
AWS names three weaknesses in rule-based pipelines:
- Template rigidity: each new format needs manual setup, and small layout changes can cause extraction failures.
- No learning: the same errors repeat because the system keeps nothing from earlier corrections.
- Scaling burden: every new vendor or variant adds maintenance work, which weighs heavily on organizations receiving documents from hundreds of sources.
How do the eight agents work together?
AWS says eight specialized agents collaborate across two graph-based workflows on AgentCore. A graph-based workflow is a map of steps in which each agent hands its result to the next one. The agents are built with Strands Agents, an open source toolkit for creating AI agents.
The first workflow handles identification. An Analyzer agent extracts text with Amazon Textract, AWS’s text-reading service, and works out the document type and sender. A Matcher agent then searches for similar documents the system has seen before. AWS’s guidance adds that agents classify entities using vector embeddings stored in Amazon S3. Embeddings are numeric fingerprints of a document that make similar items easy to find.
If a match exists, the document can go straight to extraction. If it does not, the system learns the format first, which is where the self-improvement comes from. The excerpt provided for this article cuts off before the remaining agents and the second workflow are described, so their individual roles are not covered here.
What happens when a document arrives?
AWS’s architecture guide lays out the path in steps. Documents arrive by email through Amazon SES or by direct upload to Amazon S3. Amazon EventBridge detects the new file and triggers an AWS Lambda function. That function creates a tracking job in Amazon DynamoDB and calls the AgentCore Runtime, which orchestrates the agents.
Security and tool access run through other AgentCore parts. According to AWS, AgentCore Identity supplies machine-to-machine credentials, retrieving a workload access token from Amazon Cognito. AgentCore Gateway then turns existing APIs and Lambda functions into agent-compatible tools. It exposes them through a searchable Model Context Protocol (MCP) interface, a common standard that lets agents discover and call tools. The agent picks tools based on document type and processing needs.
For validation, AWS says agents reach enterprise data through MCP servers and check extracted content against business rules. Administrators get a chat-enabled dashboard running on Amazon ECS, where they can monitor jobs and troubleshoot problems live. AgentCore Observability logs telemetry to Amazon CloudWatch, giving a step-by-step view of each workflow run and its bottlenecks.
Where does this fit among other approaches?
The material describes two broad approaches to document processing. Conventional IDP relies on per-format configuration and breaks when vendors change layouts. The agentic design replaces static templates with agents that generate their own instructions and keep a growing knowledge base of formats.
Within the AWS stack, AgentCore does not read documents itself. It coordinates the work and supplies runtime, identity, tool access, and monitoring, while Amazon Textract handles text extraction and Strands Agents provides the agent framework. AWS’s materials do not compare the design with specific third-party products, so no such comparison is made here.
What would a realistic run look like?
Take an accounts-payable team that receives an invoice from a supplier it has never dealt with before. The file lands in an S3 bucket, and the Analyzer reads the text and identifies it as an invoice and names the sender. The Matcher finds no similar document on record, so the system builds extraction instructions for this layout, validates the extracted fields against business rules, and stores what it learned.
When that supplier’s next invoice arrives, the Matcher finds the earlier one, and the document can move directly to extraction. If something looks wrong, a person can open the dashboard and ask the system what happened to a specific job. AWS says the full deployment can often be completed in under 20 minutes.
Two limits apply to this picture. AWS presents the design as a reference solution rather than a finished product, and the claims about learning from corrections and handling new formats come from AWS’s own descriptions without independent testing or published accuracy figures. Anyone considering it should check current AWS documentation for costs, supported document types, and how human corrections feed back into the stored knowledge.
What is still unclear?
The most important open question is how reliably the system’s self-generated extraction instructions hold up across messy real-world documents. AWS describes the mechanism but, in the material available here, gives no accuracy measurements. That leaves the learning loop as a described capability rather than a measured one.