Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to enable AI workflow observability

AI workflow observability records every execution of a multi-agent pipeline in the DNotifier dashboard — agents, sendAI steps, searches, documents, latency, tokens, and optional provider / model.

Enable it with observability: true on the Workflow (not on the notifier).

Why use it?

  • See which agent ran and in what order

  • Inspect AI prompts/outputs per step (when recorded)

  • Correlate a support ticket with executionId

  • Track provider and model on AI steps (from sendAI, agent defaults, or project default)

How to enable AI observability

1. Set observability: true on the workflow

const workflow = new DNotifier.Workflow({
  name: "intent-router",
  description: "Route user questions",
  observability: true,
  async entry(ctx) {
    const intent = await ctx.runAgent("intent-agent");
    return ctx.runAgent(
      intent.intent === "search" ? "search-agent" : "general-agent"
    );
  },
}).registerAgents({
  "intent-agent": intentAgent,
  "search-agent": searchAgent,
  "general-agent": generalAgent,
});
workflow = Workflow(
    name="intent-router",
    description="Route user questions",
    observability=True,
    entry=entry,
).register_agents({
    "intent-agent": intent_agent,
    "search-agent": search_agent,
    "general-agent": general_agent,
})

2. Connect and run

If observability is false or omitted, no workflow is registered in the dashboard and executionId is absent.

What gets recorded

SDK call
Dashboard step

Workflow start / end

Execution status, duration

ctx.runAgent / ctx.runAgents

Agent nodes

ctx.sendAI

AI-LLM step (latency, tokens when available, provider / model)

ctx.search / document APIs

Search / document steps

ctx.recordStep

Custom labeled steps

Label AI steps for clearer graphs

Agent-level provider / model

Observability records the effective provider / model on the step (call override → agent default → project current_model for model).

Where to view results

  1. Go to Workflows

  2. Open the workflow by name (e.g. intent-router)

  3. Select an execution — match run.executionId from your SDK

See Dashboard overview.

Observability vs logs vs saveHistory

observability: true

logs: true

saveHistory: true

Scope

One workflow execution

Each sendAI session

Stored AI turns

Dashboard

Workflows

Logs

Not a dashboard list — use fetchAIHistory

Typical use

Multi-agent debugging

Ops / token audit

Product chat history

→ Full comparison: Observability overview

Requirements checklist

Next steps

Last updated