:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(llma): build AI-observability skill deep links via generate-app-url (#68157)
posthog[bot]8fb6c2ebfdfe
diff --git a/products/ai_observability/skills/creating-online-evaluations/SKILL.md b/products/ai_observability/skills/creating-online-evaluations/SKILL.mdindex 05f2ab2b2e8a..dd0327cf5696 100644--- a/products/ai_observability/skills/creating-online-evaluations/SKILL.md+++ b/products/ai_observability/skills/creating-online-evaluations/SKILL.md@@ -37,6 +37,7 @@ debugging a live eval), defer to `exploring-llm-evaluations`.| `posthog:llma-evaluation-run` | Spot-run a draft eval against one generation || `posthog:llma-evaluation-update` | Iterate config, then flip `enabled: true` || `posthog:execute-sql` | Verify a condition matches the events and volume you expect |+| `posthog:generate-app-url` | Build a region- and project-qualified deep link to the eval |The full create payload (every field, the config schemas, the exact `conditions` shape) is in[references/evaluation-payload.md](references/evaluation-payload.md).@@ -153,10 +154,15 @@ only `rollout_percentage` (0–100). Property filters use the standard PostHog s## Constructing UI links-- **Evaluations list:** `https://app.posthog.com/ai-evals/evaluations`-- **Single evaluation:** `https://app.posthog.com/ai-evals/evaluations/<evaluation_id>`+Build links with `posthog:generate-app-url` — never hand-write the host or the `/project/<id>/` prefix.+Pass the canonical path templates:-Surface the link after creating so the user can review and toggle it in the UI.+- **Evaluations list:** `generate-app-url {url: "/ai-evals/evaluations"}`+- **Single evaluation:** `generate-app-url {url: "/ai-evals/evaluations/<evaluation_id>"}`++These resolve to the correct region host and project prefix (e.g.+`https://us.posthog.com/project/<id>/ai-evals/evaluations/<evaluation_id>`). Surface the link after+creating so the user can review and toggle it in the UI.## Tipsdiff --git a/products/ai_observability/skills/exploring-ai-failures/SKILL.md b/products/ai_observability/skills/exploring-ai-failures/SKILL.mdindex 58ece6e6df15..658af7fe7c41 100644--- a/products/ai_observability/skills/exploring-ai-failures/SKILL.md+++ b/products/ai_observability/skills/exploring-ai-failures/SKILL.md@@ -39,6 +39,7 @@ high volume, `exploring-llm-clusters`.| `posthog:execute-sql` | Find metric outliers, discover the trace taxonomy, count failure modes || `posthog:llma-evaluation-list` | Find existing evals whose failures might reveal a new mode || `posthog:llma-evaluation-summary-create` | Summarize an existing eval's failures into patterns |+| `posthog:generate-app-url` | Build a region- and project-qualified deep link to a trace or list |Detailed queries for each strategy below are in[references/finding-traces.md](references/finding-traces.md). The full `$ai_*` event schema (and the@@ -133,8 +134,16 @@ niche domains.## Constructing UI links-- **Traces list:** `https://app.posthog.com/ai-observability/traces` (filter to your use case)-- **Single trace:** `https://app.posthog.com/ai-observability/traces/<trace_id>?timestamp=<url_encoded_timestamp>`.+`query-llm-trace` does not return a `_posthogUrl`, so build links with `posthog:generate-app-url` —+never hand-write the host or the `/project/<id>/` prefix. Pass the canonical path templates:++- **Traces list:** `generate-app-url {url: "/ai-observability/traces"}` (then filter to your use case)+- **Single trace:** `generate-app-url {url: "/ai-observability/traces/<trace_id>"}`, then append+ `?timestamp=<url_encoded_timestamp>` to the returned URL (the timestamp isn't expressible via the tool).++These resolve to the correct region host and project prefix (e.g.+`https://us.posthog.com/project/<id>/ai-observability/traces/<trace_id>`), so a user not already on the+target project still lands in the right place.## Tips