Opening one
Correlation is opt-in. If you send none of these headers, everything behaves as it would have; send one and the calls are grouped.x-navige-workflow: the stable name for this kind of task, such assupport.ticket.triage. Baselines and per-task costs key on this.x-navige-transaction: your own id for this specific run, used to make retries idempotent rather than counting them twice.traceparent: a standard W3C trace header. If your stack already emits one, you get correlation with no Navige-specific configuration.
x-navige-workflow and x-navige-transaction are each cut to 200 characters. Keep them shorter than that: two longer names that share their first 200 characters are recorded as one task.
Status and outcome are different questions
- Status is lifecycle: is this task open, closed or abandoned. Navige knows this on its own.
- Outcome is judgement: did the task achieve what it was for. Navige cannot know this, and does not guess.
null outcome, which is not the same as failed. Report how it went to get cost-per-successful-task figures:
x-navige-workflow and x-navige-transaction, you do not need Navige’s id: report the outcome under the same two names you sent. This endpoint refuses a name longer than 200 characters rather than cutting it, so keep both names within 200.
Navige does not infer outcomes. A task whose last model call returned HTTP 200 can still have produced a wrong answer, refunded the wrong customer, or closed a ticket that then reopened. Treating 200 as success would overstate every success rate in the product by an unknown amount.
What a task will cost, before it runs
GET /v1/workflows/:workflowKey/estimate
With your agent’s key, this returns the range a task of that workflow usually costs (the 50th, 90th and 99th percentile in micro-USD), learned from your own finished tasks of that workflow over the last 30 days. The range is wide while there are few tasks: five tasks give a wide one, five hundred a narrow one. Only API spend counts; tasks with an unpriced step or no metered cost are counted under leftOut rather than read as cheap. With fewer than two priced tasks there is no range yet, and expected is null, not zero.
What you get from it
- Cost per task, and the spread across runs of the same task.
- The most expensive workflow you run.
- Cost per successful task, once outcomes are reported.
- A baseline, so a change that doubles the cost of a task shows up as a change rather than noise.