---
title: "Generate an agent-ready debugging prompt from recent production feedback"
method: GET
path: "/api/observability/agent-prompt"
tags: ["Observability"]
---

# Generate an agent-ready debugging prompt from recent production feedback

`GET /api/observability/agent-prompt`

## Request

- Base URL: `https://api.cernion.de`
- URL: `https://api.cernion.de/api/observability/agent-prompt`
- Auth: none declared

Builds a compact prompt for agentic troubleshooting from observability summary signals: error volume, latency hotspots, recent redacted errors, and slowest actions in the selected time window.

## Query parameters

- `sinceMinutes` integer
- `slowActionThresholdMs` integer
- `limit` integer
- `token` string

## Response `200`

Agent prompt template with structured production context

- object
  - `generatedAt` string, date-time
  - `window` object
  - `prompt` string
  - `context` object

---

[API](https://skmtc.dev/cernion/apis/cernion-energy-tools-api.md) · [All operations](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/revisions/cdb94473b538?raw)
