Compliance & ContractsFree worksheetPDF, Excel, Word export

AI Agent Action Audit Log Worksheet for ERP Changes

If an AI agent can change ERP data, someone will eventually ask who asked for it, what ran and who said yes. This worksheet defines the audit fields and lets you keep a manual log during a pilot or review.

Download:
DateRequesting userTool calledERP recordActionApproverMinutes to approveOutcomeNote
Total approval minutes
57 min
Longest approval wait
45 min
Entries
4
Average minutes per entry
14.25

Your real audit trail should be written automatically by the MCP server or gateway. Use this sheet to define the fields, run a pilot by hand, or reconcile exceptions during review.

Review my agent audit design

Optionally have the fields and retention of your audit trail reviewed.

Optional. The tool and every export work without this. No spam.

How to use the log

Add one row per tool call that matters: every write, every rejected request and every error, plus reads that touched sensitive data. Record the requesting user, the tool and the ERP record. For writes that need human approval, capture the approver and the minutes until they decided. The outcome column separates applied changes from declined and failed ones. Export to Excel for audit evidence and review the exceptions weekly during the first months of a pilot.

Fields every agent audit trail needs

Beyond what this sheet shows, a production log should hold a unique request ID, the model and prompt version, the exact tool arguments, the generated query and the ERP response status. Store the identity of the person behind the request, not just the service account, otherwise you cannot answer who asked. Keep the log append-only and out of the agent's own write reach.

  • Request ID that ties prompt, tool call and ERP transaction together
  • Requesting user and approver identities
  • Tool arguments before and after validation
  • Model and prompt version
  • Before and after values for every update

Reading the example

The sample shows one approved date change after twelve minutes, one declined after forty-five and one failed requisition. The declined entry is the valuable one: it shows the approval step caught a conflict with the production plan. Average approval time also tells you whether the human gate is workable or becoming a bottleneck that users will route around.

Common mistakes

Logging only successful actions hides the failures auditors care about. Logging only the service account hides the user. Letting the agent itself write its own audit entries is weak because a faulty agent can also write a faulty log. Check retention against your regulatory needs and keep personal data in the log to the minimum.

Frequently Asked Questions

Which agent actions must be logged?

At minimum every write, every refusal, every error and every read of sensitive data. Many teams log all tool calls because storage is cheap and the log is the only way to reconstruct what happened.

Should the log be inside the ERP?

Use the ERP's own audit where available, but also keep an independent log at the MCP server or gateway. It captures the prompt and tool arguments, which the ERP does not see.

How long should we retain agent logs?

Follow your records retention policy and any regulation that applies to the underlying transactions. Financial changes often need years, while debug detail can be kept shorter.

Does this sheet replace automatic logging?

No. It defines the fields and supports pilots and reviews. Production logging should be automatic and tamper resistant.

Netray's ERP agents log the question, the generated query and approvals so changes are traceable. If you are designing the audit trail for your own build, we can review the fields.