Skip to content
All news

n8n shows how to reconstruct an AI agent's decision with saved executions, audit tags and OpenTelemetry tracing

A new chapter in n8n's Production AI Playbook series tackles a question every team running an AI agent in production eventually faces: why did the agent make a given decision a month ago. The example is a refund agent that approved a 49.99 dollar refund that should never have gone out, after the prompt had been edited twice and the order record had changed. The post includes hands-on exercises in n8n Cloud: reading a saved execution to compare what a tool returned with what the agent replied, tagging executions by decision so they can be searched, tracing tool calls with OpenTelemetry, and connecting traces across services. Cloud Enterprise can also stream audit events, such as workflow changes, publishing and sign-ins, to syslog, a webhook or Sentry. To prove which version ran on a given date, n8n recommends naming a version each time a workflow goes live. Version history covers 24 hours on Starter, five days on Pro and full history on Enterprise. The guide focuses on agents built with the AI Agent node, not the new n8n Agents.

Otomatzia editorial · Published

Source published: · n8n

A timeline of an AI agent run with decision tags, tool calls, a human approval and the workflow version. Conceptual illustration.
Original Otomatzia editorial diagram. Conceptual illustration, not a product screenshot.

How do you apply this in a business?