Skip to main content
connic

Find the run behind any answer.
See why it happened and what it cost.

Every run records each model request, tool call and guardrail with its inputs, outputs and token cost. Look up a customer's conversation and see the step that went wrong.

context.ticket_id == 'INC-20417'
  • 7a3c90e1d5b6 Completed3.9s8.4k296(€0.024)10:02:14
  • 0b7d5e11c8f2 Completed6.8s9.8k600(€0.031)09:41:02
    Tool Callvpn.issue_certificate403 Forbidden233ms

    Run output: Done. I issued a new VPN certificate for your laptop. Restart the VPN app and you're all set.

Run records your other teams can use.

The same records answer a pricing question, page the on-call engineer and explain a failure.

A SaaS team writes the account ID into every run. Their admin tool pulls AI cost per account from connic and flags accounts whose AI cost eats into their plan price.

Dispatch Admin
admin.dispatch.example.com/accounts?sort=ai_cost
dispatch
Accounts
Billing
Usage
Team
AI cost per account
October 2026 · token cost grouped by account_id
2 accounts above 40% of plan price
AccountPlanPlan priceAI costRunsOf price
Hillcrest FacilitiesACC-3307Starter€99.00€112.655,102114%
Brightway CleaningACC-1042Starter€99.00€48.172,20549%
Brandt LogistikACC-2210Team€490.00€61.822,91413%
Oakmere PropertyACC-0871Business€1,290.00€84.403,8707%
Larsen PlumbingACC-4415Starter€99.00€6.122886%

On enterprise, every failed run goes straight to the team's alerting tool. The alert carries the run ID and the error, so on-call opens the right trace.

Alerts
alerts.example.net/incidents/4127
alertsIncidents
#4127 it-assistant: failed runs above thresholdTriggered
run_status = failed, more than 5 in 10 min · production · on call: Tomás Reyes
TimeStatusRuncontext.ticket_iderror
14:21:07failed9f04c2e1INC-20452TimeoutError
14:20:51failed1ab7e930INC-20449TimeoutError
14:19:33failedc5d81f02INC-20448TimeoutError
14:18:02failed7e2a64bdINC-20441TimeoutError
14:16:40failed40fd19a7INC-20437TimeoutError
14:15:12failedb83c0e55INC-20436TimeoutError
Source: connic run drain · environment production
Timeline
14:21Rule triggered
14:21Paged Tomás Reyes
14:23Acknowledged

A developer pastes a run ID into an AI client connected to connic. It reads the run's trace and explains which step failed and what to change.

Assistant
assistant.example.com/chat/vpn-run
Chats
VPN run after laptop swap
Weekly cost by department
Deploy failed on staging

Why did run c19e5a7b-2d04-4f1e-9a63-0b7d5e11c8f2 tell the employee the VPN fix worked?

connicget_runinclude_traces: true, include_io: true

At 09:41:07 the run called vpn.issue_certificate for laptop NB-4471 and got 403: device not enrolled. The next model call ignored that result and wrote a success message, which is what the employee saw.

Enroll NB-4471 in device management, then rerun the run. To stop this from happening again, tell the agent in its prompt to report tool errors instead of confirming the action.

Ask a follow-up

See every step behind an answer.

A trace splits a run into steps: the incoming message, each model request, every tool call and every guardrail. Select a step to see what went in and what came out.

Here the certificate tool failed because the new laptop wasn't enrolled yet, but the agent still told the employee it worked.

Run Details#0b7d5e11c8f2 Completed
Triggered by IT Help chatOct 30, 09:41:02 AM6.84s9.8k600(€0.031)
Tool Call · vpn.issue_certificate
error
Input
{ "device_id": "NB-4471" }
Output
{
  "error": "403 Forbidden",
  "detail": "Device NB-4471 is not enrolled in device management"
}

Know what each team costs, and cap any agent.

Group token cost by a value from the run, such as the department that asked. Set a monthly limit on an agent, and it starts no new runs once the limit is reached.

Alerts and hard limits
An alert notifies your team. A limit also holds waiting runs until you raise it or the period resets.
Expensive outliers
Turn on an alert for runs that cost more than three times the agent's 30-day average, or a multiple you set.
Token Usage
departmentBy AgentBy ModelBy Context
departmentTotalInputOutputRuns
Finance€18.4210€12.0832€5.9104412
Sales€9.1036€6.2210€2.7408233
Operations€6.0517€4.1890€1.7905186
People€2.9071€2.0214€0.8202118
Token Cost Alerts & Limits
IT assistant monthly capMonthly · Agent: it-assistant
€32.80 of €40.0082%
BYOK daily spendDaily · All agents
$6.40 of $25.0026%

Tag runs with your own IDs, then search by them.

Middleware copies the ticket ID and department from the incoming message into the run context. Agent Runs filters by them, and Token Usage groups cost by them.

Filter expressions
Search runs by context, input or output, such as output.priority == 'high'. The sparkle button turns a plain-language request into a filter.
Logs without setup
Printed output, stderr and log calls from tools, middleware, hooks and guardrails land in the run's logs, tagged with their source.
Run it again
Run Again starts the agent with the same input. Compare the new trace with the old one span by span.
middleware/it-assistant.py
import logging

log = logging.getLogger(__name__)

async def before(content: dict, context: dict) -> dict:
    ticket = context.get("payload", {})
    context["ticket_id"] = ticket.get("ticket_id")
    context["department"] = ticket.get("department", "unknown")
    log.info("Ticket %s", context["ticket_id"])
    return content
All Statusescontext.ticket_id == 'INC-20417'
RunStatusStartedTokens
3be7d0f4a611 Completed10:21:448.6k297(€0.026)
7f02a9c1e5b8 Completed10:02:197.9k356(€0.024)
c19e5a7b2d04 Completed09:41:029.8k412(€0.031)

Frequently Asked Questions

Every step of a run: the incoming message, each model request, tool calls, guardrails, other agents it started and the outgoing reply. Each step has its status, duration, input and output. Where the model provider returns its reasoning, you see that too.

Each environment keeps runs for a period you set, up to what your plan includes: 14 days on basic, 90 on developer, 365 on pro, custom on enterprise. Fields you name are hidden in recorded inputs, outputs, logs and traces. The agent still receives the original values.

Yes. Set a cost alert or a hard limit for the whole project, chosen environments or chosen agents, per day or per month. A limit stops new runs from starting until you raise or remove it, or the next period begins.

Yes, on the enterprise plan. Runs, logs and the audit log can be forwarded as they happen to Datadog, to other tools that accept OpenTelemetry, or to a webhook.