Agentic AI in GMP Quality: Which Decisions Can It Make

Home Blogs Agentic AI in GMP Quality: Which Decisions Can It Make

Agentic AI in GMP Quality: Which Decisions Can It Make

By Dr. Richard Soltero, President, InstantGMP, Inc.

When we started developing our agentic AI, our first concern was which decisions we should allow it to make. We wanted to ensure that AI is given permissions to make suggestions, but that final decisions in GMP quality were always assigned to a quality professional.

The question wasn’t whether an agent could. The technology is very capable of reading a batch record, pulling the environmental monitoring results, searching past investigations, initiating a root cause analysis or connecting to a CAPA. The question was which of those steps an agent should ever be allowed to take on its own, and the answer was written into the regulations long before anyone built an agent.

What Changes When AI Starts Acting

Most of us met generative AI as a chat window. You pasted in a deviation description, got back a cleaner summary, copied it into the QMS and signed it, which meant the human did every step that touched a system of record and the AI only answered.

An agent removes that separation. Anthropic’s own engineering guidance draws the line between workflows, where the model follows predefined code paths, and agents, where the model directs its own process and tool use. The same guidance warns that more autonomy brings the risk of compounding errors and recommends guardrails. In a quality unit that changes where review happens. With a chat tool the review is built in, because a person has to carry the output somewhere. With an agent, the review only happens where the system forces it.

And whatever the agent’s credentials allow, the agent can do.

The Regulations Already Name the Decider

None of the GMP rules mention AI agents, and all of them constrain what an agent can do. Under 21 CFR 211.22(a), the quality control unit has the responsibility and authority to approve or reject components, containers, closures, in process materials, labeling and drug products. Section 211.192 requires the quality unit to review and approve production and control records before a batch is released, and requires unexplained discrepancies to be thoroughly investigated with written conclusions. Dietary supplement makers find the same structure in 21 CFR Part 111, where quality control personnel approve or reject components, packaging and finished batches. In the EU, Annex 16 requires a Qualified Person to certify each batch.

Then there is 21 CFR Part 11. Section 11.100(a) says each electronic signature shall be unique to one individual and shall not be reused by, or reassigned to, anyone else, and section 11.50 requires the signed record to show what the signature means, whether that is review, approval, responsibility or authorship. An agent is not an individual. It cannot hold a signature, and you cannot lend it yours, even with the best intentions.

The words that matter in all of these are approve, reject, review and certify. They describe acts of judgment by named people with written responsibilities, and an agent can prepare the evidence for those acts without ever being the one who performs them.

Where an AI Agent Earns Its Keep

The good news is that most of the time lost in an investigation isn’t spent deciding, it’s spent gathering. Somebody has to pull the batch record, the equipment logs, the training records, the supplier certificates and every similar deviation from the last five years, and in most plants that means logging into four systems and exporting to a spreadsheet. An agent with read only access can assemble that evidence pack in minutes, and if it misses something, the investigator reviewing the pack catches it in the normal course of the work.

Drafting is the second place an agent belongs. A first draft of an investigation timeline, proposed CAPA wording or a redline of the SOP the CAPA touches is a proposal, and nothing enters the record until a qualified person has checked it against its sources and taken ownership. That last condition is the one people skip. A draft delivered without its evidence invites approval by reading instead of approval by checking.

We are adapting AI as a tool to improve our electronic software solutions and to improve our quality management systems, and the honest description of where that work pays off today is gathering, comparing, trending and drafting, which happens to be most of the clock time in a quality unit.

Where It Has No Business Being

The other list is shorter, and I’d treat it as fixed until the regulations change. Batch release and QP certification belong there, along with final disposition of product and materials, approval of any GxP record from a batch record to a change control, the final root cause and closure of an investigation, and the decision whether an event is reportable to FDA. An agent can run a completeness check before release, compile the test results against specification or flag an event that might trigger a Field Alert Report. It cannot make the call.

The EU has said much the same thing in its own way. The draft Annex 22 says generative AI and large language models should not be used in critical GMP applications, and every agent on the market today is built on a large language model. The joint FDA and EMA principles for good AI practice released in January 2026 point the same direction, asking for oversight proportionate to the risk and for performance to be judged on the whole system, people included.

Who Is Really Making the Decision?

The hard cases sit between drafting and release. Classifying a deviation as minor, recommending that no CAPA is needed, or suggesting that an investigation is ready to close are all recommendations, and the danger is that a busy reviewer accepts them without thinking. Researchers call this automation bias, and it is strongest under exactly the conditions a quality unit lives in, with high volume, complex events and deadlines.

I’ve seen the paper version of this for decades. A second signature on a batch record is supposed to mean a second person checked the work, and on a Friday afternoon with ten records in the queue it sometimes means a second person checked that the first signature was there. An AI recommendation makes that habit easier, not harder. If your throughput target assumes a two minute review of an agent classified deviation, the review will take two minutes whether the classification is right or not.

So show the reviewer the evidence before the recommendation, let the agent say it is undecided when its confidence is low, and record the person’s decision separately from what the agent proposed, so an inspector can see whether anyone ever disagreed.

Build the Line Into Permissions

Here is the part I feel most strongly about. Telling an agent not to approve a record is an instruction, and instructions to a language model are suggestions with good manners. Taking away its permission to approve is a control. If the agent’s service account cannot change a batch status to released, it doesn’t matter what the prompt says or how the model behaves on a bad day.

That is how we built the AI connection into InstantGMP, the global manufacturing platform we run for pharmaceutical, dietary supplement, cosmetic, medical device and food manufacturers. An agent connected to it can query batch records, inventory, QC samples, deviations, CAPAs and training logs, which is everything it needs to gather evidence and draft. It has no tool that writes, approves or signs, and every call it makes lands in an audit log alongside the human activity. Signatures stay with named people under Part 11, which is where the regulations put them in the first place.

Can a Supplement Maker Let AI Release a Batch?

I get versions of this question from dietary supplement and cosmetic manufacturers who assume the rules are looser outside pharma, and for release they aren’t. Part 111 puts the release of each finished batch in the hands of quality control personnel, and a device maker working under 21 CFR Part 820 and ISO 13485 must keep records that identify the person who authorized release. Use the agent to assemble the record and flag the exceptions, and keep the release decision with a person who is trained and accountable for it.

Draw the Line Before the Vendor Demo

The quality organizations that get value from agents over the next few years will be the ones that decided where the line sits before the vendor demo, not after. Take your own deviation process, mark each step as gather, draft, recommend or decide, and give the agent system access only to the first two. If a regulation or your own SOP names a person for a step, the conversation about how accurate the agent is doesn’t need to happen at all.

share