Find docs searches with zero results

Capture failed docs searches and connect them to activation, support load, and API adoption so docs work targets real blockers.

Published

difficulty beginner · time to value 3 minutes

Start from this

Show docs searches with zero results, the users/accounts who searched them, and whether those searches were followed by failed activation or support tickets.

Why this matters

Docs search queries are user intent in plain text. Zero-result searches tell you what users expected to find and could not.

What you get

  • Top zero-result queries
  • Pages where searches happen
  • Users or accounts affected
  • Follow-up impact: activation failure, support tickets, or API inactivity

Walk through it

You

What are people searching for in docs and not finding?

Agent

I’ll rank docs searches with result_count = 0.

Endpoint: POST /v1/projects/:project_id/analytics/query
Exact shape: /v1/openapi.json?path=%2Fv1%2Fprojects%2F%7Bproject_id%7D%2Fanalytics%2Fquery&method=post
Custom HogQL goes in the OpenAPI-defined `query` field.
Concept fields:
  query: "SELECT properties.query AS query, properties.path AS path, count() AS searches, count(DISTINCT distinct_id) AS users FROM events WHERE event = 'docs_search' AND toInt(properties.result_count) = 0 AND timestamp > now() - INTERVAL 30 DAY GROUP BY query, path ORDER BY searches DESC LIMIT 50"

The output

The agent returns search gaps and suggested docs pages to create or improve.

Setting it up

Emit docs_search from your docs site search component. Include result count and current path.

Variations

  • “Only show searches from logged-in accounts.”
  • “Find zero-result searches before API inactivity.”
  • “Draft the missing docs outline for the top query.”

Adapt this playbook in your own agent.

Ask your agent to map the starter prompt to your saved signal map, live events, and the current HTTP API before answering.

Set up Agentry in this repo by following https://agentry.sh/install.md. I authorize you to: run its device-code login and save the key to ~/.agentry/credentials.json, read this repo, propose an instrumentation plan for my approval, and edit code after I approve it.

+ Full access
5.5 Extra High
  1. 1. Open your repo in Codex, Claude Code, Cursor etc.
  2. 2. Paste the install prompt.
  3. 3. Your agent reads the install doc and shows you an implementation plan for approval.