Melaya · Build and run AI agents across your business tools, browser, desktop apps and Android phone. Seven connected products on one governed platform: Agents, Assistant, Device Control, Browser Control, Computer Control, MCP Server, and Marketing. Bring your own AI and keep human approval on every consequential action.

Melaya Blog

AI Workflow Monitoring: What to Track and How to Set It Up

AI workflow monitoring explained: which traces, metrics and approvals to track across multi-step agent runs, and how to set it up so you can replay failures.

AI Workflow Monitoring: What to Track and How to Set It Up

AI workflow monitoring means recording every step an agent takes (model calls, tool calls, approvals, outcomes) so you can see failures, replay them and fix them. The most reliable way to get it is to run workflows on a platform that records traces by default. Melaya's Agent Builder runs are traceable and replayable, with human approval controls and execution traces built in, so monitoring is part of the run and not a separate project.

TL;DR

  • Monitor the execution path, not just uptime: inputs, outputs, tool calls, approvals and final outcome for every step.
  • Track latency, errors, timeouts, token counts and cost per run, then evaluate output quality against explicit criteria.
  • Agents are non-deterministic, so you need replayable traces to find where a run went wrong.
  • Put approval gates in front of every consequential action and log who approved what.
  • Keep telemetry independent of the model, so you can swap a cloud model for a local one without losing visibility.

What AI workflow monitoring is

A classic script does the same thing every time. An AI workflow does not. A model picks tools, interprets results and decides the next step, so two runs on the same input can differ. Researchers describe agents as autonomous, non-deterministic and continuously evolving, which makes anomalies and failures hard to manage without visibility into the inner workings.

The working term is observability: analyzing component inputs and outputs as they flow through the pipeline. PwC describes it as collecting and analyzing logs, traces, model outputs and data flows across the lifecycle, then turning deviations into business-relevant metrics and alerts.

In practice, "monitoring" for you covers four questions:

  1. Did the run finish, and how long did it take?
  2. Which step failed, and with what input?
  3. Was the output correct, not just present?
  4. What did it cost, and who approved the actions it took?

The same applies to a single agent and to a multi-agent pipeline. In a pipeline, one bad hand-off between agents corrupts everything downstream, so you need the trace across agents, not one log per agent. Our multi-agent orchestration guide covers how those hand-offs are structured.

Trace the execution path first

The AgentOps research argues that tracing the execution path is the direct foundation for observability, because it locates the origin of errors and unexpected behavior in complex runs. Start there before building dashboards.

A useful trace records, per step:

  • The step type: model call, tool call, browser action, device action, approval, schedule or trigger.
  • The exact input the step received and the output it produced.
  • The model and provider used.
  • Start time, duration and status.
  • The parent step, so you can rebuild the tree.

A trace you cannot replay is half a trace. Replay lets you rerun a failed path with the same inputs, change one variable (a prompt, a model, a tool permission) and compare. In Melaya, runs built in the visual Agent Builder are traceable and replayable, covering models, tools, memory, schedules, approvals, triggers and multi-agent pipelines in one run history.

Operations versus decisions

MongoDB's engineers separate operational observability from decision evidence. Operational data tells you where time and errors occurred. Decision evidence helps explain why the agent chose an action. You need both: a slow step is an ops problem, a wrong refund amount is a decision problem. Store the context the agent saw alongside the action it took.

Operational metrics compared with decision evidence

Metrics worth tracking

Do not track everything. Start with the set that the gateway research treats as standard. The SEAR paper lists round-trip latency, time to first token, throughput, failure and timeout status, error details, token counts and cache usage, tied to semantic evaluation signals. Add workflow-level metrics on top.

Layer Metric Why it matters
Model call Latency, time to first token Finds slow providers or oversized prompts
Model call Input/output tokens, cache usage Drives cost per run
Model call Error and timeout rate Early signal of provider trouble
Tool call Success rate, duration Most agent failures sit here, not in the model
Workflow End-to-end duration, completion rate Your SLA number
Workflow Retries per run Hidden cost and instability
Outcome Pass rate against criteria Whether the work was actually right
Governance Approvals requested, approved, rejected Shows where humans catch problems

Set thresholds per workflow, not globally. A nightly report can tolerate 90 seconds. A browser step filling a customer form cannot.

Evaluate quality, not just completion

A run can finish green and still be wrong. The AgentOps authors recommend evaluating agent behavior against criteria or benchmarks, checking both final outputs and intermediate steps against the goal and governance requirements.

A workable routine:

  1. Write 3 to 5 pass/fail criteria per workflow (correct fields extracted, no duplicate record, amount within limit).
  2. Check them automatically on every run where a rule can decide.
  3. Sample the rest for review by a person.
  4. Keep failed runs as a regression set and replay them after every prompt or model change.

Cost matters here. The SEAR authors note that judging all production traffic with an LLM is prohibitively expensive, so sample instead of scoring everything. The same paper reports an offline replay of 100 sessions in one organization where a cheaper model tied or won in 84 cases at roughly 90% lower input-token cost. The authors stress this is one workload slice, not a general benchmark. The practical takeaway is to measure your own workflow per model before choosing.

That measurement is easy when the tool layer does not care which model is behind it. Melaya is bring-your-own-model: it works with any cloud or local model, including Claude, GPT, Gemini, DeepSeek, Mistral, Qwen, Ollama and LM Studio. You can replay the same workflow on a different model and compare traces and cost without rebuilding tools.

Monitor approvals, permissions and security

Monitoring is also your audit record. For any workflow that touches real systems, log three things: what the agent was permitted to do, what it asked to do, and what a person approved.

In Melaya, every consequential action (publishing, sending, paying, writing to connected apps) runs behind human approval. Agents do not publish, send or pay unsupervised. That gives monitoring a concrete signal: an approval queue with timestamps, the proposed action, and the decision. Watch these numbers:

  • Approval rejection rate. A rising rate means the agent's proposals are drifting.
  • Time to approve. Long waits stall workflows and push people to rubber-stamp.
  • Actions per permission scope. Granular permissions let you see whether an agent uses less access than it holds, and tighten it.

For the controls behind this, see our guides on AI agent governance and AI agent security best practices. If your agents drive websites, browser agent security covers the specifics, and for phones, mobile AI agent security. Mobile control in Melaya is Android only.

Alerts that reach someone

Traces nobody reads do not prevent failures. Route alerts for failed runs, timeout spikes and rejected approvals to a channel a person owns. Some teams give agent systems a dedicated mailbox for alerts, as in this alert mailbox approach to agent monitoring. Whatever channel you pick, each alert should name the workflow, the failing step and a link to the trace.

Keep telemetry portable

Multi-model setups make monitoring harder: different providers report different fields, and routers pick models dynamically. The SEAR paper explains that no single model or provider is best for all tasks, which is why routing exists, and why your logs must record which model served each step.

Standards are catching up. The OpenTelemetry project says its GenAI semantic conventions aim to standardize agent telemetry across frameworks for interoperable metrics, traces and logs. MongoDB notes the conventions were still in Development as of mid-2026 and the schema had changed between releases. So:

  • Store your own stable field names for the essentials (run ID, step, model, status, cost).
  • Map to OpenTelemetry names at export time, so a schema change touches one mapper.
  • Keep tracing in the platform layer, not inside each prompt.

A setup you can finish in a day

  1. Pick one workflow with a clear owner and a measurable result, such as invoice reconciliation or a weekly report. Our operations crew example shows the shape.
  2. Define pass/fail criteria (3 to 5) and a latency target.
  3. Add approval gates on every step that writes, sends, publishes or pays.
  4. Run it 20 times on your chosen model and record completion rate, retries, duration and cost per run.
  5. Replay the failures with one change at a time.
  6. Set alerts on failure rate, timeouts and approval rejections.
  7. Review weekly: sample 5 to 10 runs by hand and update the criteria.

When you are ready for production, the deployment guide walks through the rollout.

Where Melaya fits

Melaya is built so monitoring is not bolted on. Agents run with granular permissions, human approval controls and execution traces, and the platform has independent security audits. Browser Agents and Mobile Agents are $9.99 per month each, Melaya Assistant is $9.99 per month, and the Sandbox plan is $0 per month. Larger plans are Outpost at $20 per month, Forge at $49 per month or $469 per year, and Bastion at $129 per month or $1239 per year. Citadel starts from $490 per month. See the pricing page for what each includes.

Melaya

If you run agents through ChatGPT, Claude, Cursor or Codex, the Melaya MCP Server brings the same tools to those clients. Start on the enterprise AI agent platform page if you need private, provider-independent deployment.

Our perspective

Your AI model is the brain. Melaya is the controlled pair of hands. Monitoring is how you know what those hands did.

We build on one rule: an agent that can act on real systems must leave a record a person can read and replay. That is why runs are traced, why consequential actions wait for human approval, and why permissions are granular instead of all-or-nothing.

We also think monitoring should survive a model change. Models improve, prices move and some teams need local infrastructure. If your traces and approvals live in the tool layer, you can switch from a cloud model to Ollama or LM Studio and keep the same history, the same gates and the same alerts.

Start small: one workflow, five criteria, approvals on every write. Add scope only when the traces show it behaves.

Melaya Team

FAQ

What is the difference between AI workflow monitoring and AI observability?

Monitoring watches known signals such as errors, latency and cost. Observability is broader: it lets you ask new questions about a run by analyzing inputs, outputs and traces. In practice you need both, and traces serve both.

How do I monitor AI agents that use different models?

Record the model and provider on every step, and keep metrics in the same schema regardless of provider. With a bring-your-own-model platform such as Melaya, the tool layer and traces stay the same when you change models.

Do I need human approval in a monitored workflow?

For consequential actions, yes. In Melaya, publishing, sending, paying and writing to connected apps all run behind human approval, and each decision is part of the execution record.

How many runs should I review manually?

Scoring every run with a model judge is expensive, so sample. A weekly review of 5 to 10 runs per workflow, plus every failed or rejected run, is a practical starting point.

Sources

Recommended

Frequently asked questions

What is the difference between AI workflow monitoring and AI observability?

Monitoring watches known signals such as errors, latency and cost. Observability is broader: it lets you ask new questions about a run by analyzing inputs, outputs and traces. In practice you need both, and traces serve both.

How do I monitor AI agents that use different models?

Record the model and provider on every step, and keep metrics in the same schema regardless of provider. With a bring-your-own-model platform such as Melaya, the tool layer and traces stay the same when you change models.

Do I need human approval in a monitored workflow?

For consequential actions, yes. In Melaya, publishing, sending, paying and writing to connected apps all run behind human approval, and each decision is part of the execution record.

How many runs should I review manually?

Scoring every run with a model judge is expensive, so sample. A weekly review of 5 to 10 runs per workflow, plus every failed or rejected run, is a practical starting point.