Giving an LLM a defined job in a document workflow
Published
A retrospective on work from 2024–2025.
I worked on a production bank-statement processing workflow using Claude on Amazon Bedrock. My contribution covered the model integration and supporting data-processing flow. The system combined LLM extraction with rule-based transaction categorisation.
That boundary is the most useful part of the project for me to describe. Reading a document and assigning a business category are different responsibilities, even when they appear next to each other in a product.
Separate extraction from business decisions
The model handled document extraction. Application rules then assigned transaction categories. Keeping those steps distinct made the system’s responsibilities easier to reason about.
It also gave the integration a more specific purpose than “add AI to document processing”. The model produced information for the application to work with. The application still had its own logic for what to do with that information.
The distinction gives each part of the workflow a defined responsibility: the information the model should extract, and the decisions the application makes with it.
Work around the model call
The implementation included document preparation, queued work and the path from extraction into categorisation. Those parts matter because an LLM call is surrounded by an application with its own data and operational constraints.
My work involved that surrounding flow as well as the integration with Bedrock. The client team subsequently continued developing the system, so I distinguish my contribution from later changes.
The workflow was used in production, giving me experience with model integration as part of an existing application.
A useful boundary for investigation
When a workflow has several responsibilities, naming them helps frame an investigation. Is the input document available? Is extraction producing the information the next step needs? Is a business rule applying the intended category?
Those questions concern different parts of the system. Treating the whole process as one AI feature would make them harder to distinguish.
The experience shaped how I explain applied AI work. The model is a component inside an application. Its role should be clear enough that I can describe the surrounding engineering without falling back on the model name as the explanation.
Client work is described anonymously; examples focus on my contribution and general engineering lessons.