# OpenBot product telemetry > **On Kubernetes, a team install connects to CopilotKit by default.** Separately from the usage > events on this page, the `openbot` and `openbot-bundle` charts install a management agent that > connects the install to CopilotKit's management service with its team licence, with no step from > you. Every minute it sends a heartbeat: OpenBot's version, chart and image digests, the last > database migration, pod readiness counts, and upgrade state. It sends no conversations, > messages, files, prompts, names, secrets or logs, and by default it upgrades nothing. It never > runs on OpenBot Desktop, on the personal edition, on OpenBot Cloud, or without a team licence. > > To turn it off, set `management.enabled=false` on the `openbot` chart > (`openbot.management.enabled=false` on `openbot-bundle`), or press Disconnect on Admin → Managed > updates. [CopilotKit management on Kubernetes](managed-upgrades.md) lists every field that > leaves your cluster. OpenBot forwards bounded usage events through the public `@copilotkit/shared` telemetry sender and the existing CopilotKit telemetry sink to PostHog. It adds no analytics database, migration, identity store, queue, replay service or administrator health endpoint. Local audit remains authoritative and independent of product analytics. ## Configuration and scope Set `OPENBOT_PRODUCT_TELEMETRY=1` to opt in on self-hosted, organization-hosted and local-evaluation servers. The desktop distribution follows its existing telemetry disclosure; `OPENBOT_PRODUCT_TELEMETRY=0` disables these events. `DO_NOT_TRACK=1|true` or `COPILOTKIT_TELEMETRY_DISABLED=1|true` overrides collection everywhere. Existing `COPILOTKIT_TELEMETRY_URL` configuration still selects the shared sink. `deployment_id` uses the existing `DEPLOYMENT_ID`, then `CPK_TELEMETRY_ID`, or the literal `unknown`. `user_id` is an HMAC of authenticated actor and deployment scope using the server's already-required `KEY_ENCRYPTION_KEY`; the key and raw actor ID are never exported. Changing that key or deployment identifier changes the pseudonym. Unknown deployment scope is reported separately, not presented as a known deployment or globally unique person. API-key ownership does not establish the identity of an end user. CopilotKit's own runtime events always carry `app_id=openbot`, and carry this deployment's `deployment_id` only while product telemetry is on. OpenBot adds current execution context at its authenticated run boundary; it does not invent Intelligence project/tenant attribution. Intelligence must independently validate, persist and export matching context before cross-repository joins can be claimed complete. ## Intelligence run context With product telemetry on, every run also states the shared Intelligence analytics context, version 1: `app_context_version`, `app_id=openbot`, `deployment_id` (or `unknown` when it does not fit `^[A-Za-z0-9_:.-]{1,128}$`), `app_user_hash` (the `user_id` pseudonym above), `trigger`, `surface`, `environment`, `purpose`, `root_task_id`, `parent_run_id` when known and `attempt`. Nothing else: no name, prompt, URL or raw identifier. A browser run carries it in `forwardedProps.__copilotkitAnalyticsContext`, which the CopilotKit runtime sends as `analyticsContext` on the thread lock. A headless turn and a Bot-to-Bot hop take the lock themselves and send it there, and never hand it to the agent. Whatever a browser sent under that key is replaced; with telemetry off it is removed and nothing is sent. The CopilotKit runtime OpenBot runs forwards it; `@copilotkit/runtime` 1.83.0 did not. Browser runs are `web`, or `desktop` in the desktop distribution; the native app's messages are `mobile`; Slack, Teams and SMS are `external_channel`; other headless turns are `unknown`. A subagent carries the root task and surface of the run that started it, and a resumed turn its root task; a task's retry shares its first run's root with its own `attempt`. `purpose` is `ordinary` for every run the server sees. ## Events and interpretation The event names are `oss.runtime.openbot.run_accepted`, `.run_terminal`, `.run_stop_requested`, `.capability`, `.result_viewed`, `.result_copied`, `.exception`, `.nudge_shown`, `.nudge_clicked` and `.nudge_dismissed`. Common properties include `schema_version`, `app_id`, `event_id`, `occurred_at`, `deployment_id`, `user_id`, `environment`, `openbot_version` and `openbot_edition`. `openbot_version` is the release the running server is, as its image is tagged and without the tag's `v` (`1.1.0`, `1.1.0-rc.2`); an internal build is `1.1.0-internal`; a development server or a local image build is `unknown`. `openbot_edition` is `team` or `personal`. Together they let a staged rollout be watched release by release. `environment` (and `deployment_environment`, the same value) says what kind of deployment sent the event, decided by the build it runs and not by `NODE_ENV`, which a Compose install and OpenBot Desktop leave empty: a build with a version (a release, a release candidate or an internal build) is `production`; a development server or a local image build, whose `openbot_version` is `unknown`, is `development`; a test run (`NODE_ENV=test`) is `test`. Events sent before this say `unknown`. Those that carry an `openbot_version` other than `unknown` came from such a build and count as `production`; those with no `openbot_version` at all predate it and cannot be told apart. [The queries](telemetry-queries.sql) read history this way. Run events carry known thread/run/root/parent IDs, `attempt_id=run_id`, a numeric `attempt` only when available, `trigger`, `surface` and `purpose`. Unknown linkage stays unknown. `run_accepted` records entry into agent execution, rather than every HTTP run/connect request. Only runs OpenBot started as work are counted: a person's, a routine's, a subagent's or a hop's. The runtime's own runs on a Bot, naming a new conversation or offering suggestions, carry no OpenBot context and emit no run events. `run_terminal` records the observed `outcome`, bounded `failure_category`, duration, `is_root` and up to 256 `result_message_ids`. A run that ended because its model provider failed also carries `refusal_kind`, one closed name for what went wrong: `usage_limit` (a plan's usage limit, until it resets), `usage_credits`, `rate_limit`, `billing`, `key`, `model`, `outdated_client`, `too_many_tools`, `too_long`, `too_large`, `provider_down`, `connection_dropped`, `no_response`, `unreachable`, `declined` (the model declined to answer), `unknown` or `other`. It is `null` on every other run, and never carries the provider's words. An actual protocol finish without an explicit failure is normal completion; source errors, cancellation and timeout remain distinct. The host may emit `run_stop_requested` with a bounded stop reason; this records a request, not a terminal outcome. A run OpenBot knows it stopped ends `cancelled` with `failure_category` `none`: a person's Stop (on a browser run or on a thread a headless turn runs in), a stop that reaches a subagent, a headless cancel or pause, and a paused hop. A headless turn stopped at its deadline ends `timeout`. A lost lock is not a stop. Missing terminal evidence is unknown. A child run never determines its parent's outcome. Human initiation, scheduled routines, followups and subagents remain separate triggers. Capability events project allowlisted audit categories, stages, outcomes and source event names for connections/tools, approvals, Bot and routine setup, computer interventions and Learning sharing/access. They exclude raw audit payloads, customer-authored names, tool arguments/results, URLs and credentials. A connection check completes only with actual verification evidence. Automated tool activity is not a new human request; Skill access is not proof of successful application or improved output. There is no producer-side first-success event. PostHog deduplicates stable `event_id` properties, then derives first observed ordinary human root success per known deployment/scoped user. This is first use within verified collection coverage, not a historical or global first. Desktop wizard setup activation remains separate. Viewing and copying do not imply satisfaction. ## Observed result consumption `POST /api/telemetry/product-events` requires the existing signed-in session and accepts a strict, size-bounded body: ```json {"kind":"result_viewed","threadId":"...","messageId":"...","surface":"web","runId":"optional"} ``` The allowed actions are `result_viewed|result_copied`. The server derives actor/deployment metadata and forwards the supplied thread/message identifiers as observations; it performs no telemetry database lookup and does not infer execution success or root ownership from browser fields. An optional run ID is only an observed identifier. `204` means the handler completed, including when telemetry is disabled; it is not a PostHog receipt. The UI does not retry or persist failed observations. Channel chat and direct Bot chat observe a settled, nonempty assistant markdown body only when it has positive viewport intersection and its document is visible. Each mounted body reports at most once. Reload/remount submissions can repeat and share the server's stable event ID for query deduplication. Direct Bot chat records the existing full-answer copy action only after clipboard success. Consumption events carry `consumption_surface`; they do not carry a client-inferred execution outcome. PostHog joins consumption to terminal execution through scoped user, deployment, thread and membership of `message_id` in `result_message_ids`. The browser need not know the run ID. Unmatched observations remain visible as missing joins; a matching terminal establishes the observed execution outcome, not usefulness. Tool/activity-only outputs, nested code/table copy controls, native mobile and external-channel consumption remain outside this UI coverage. The notification sheet is an approval/question inbox with no delivered-result open action, so a bell click emits no result-open event. Existing feedback behavior is unchanged and has no new product analytics event. ## Errors `oss.runtime.openbot.exception` reports an error OpenBot did not handle, in PostHog's own error-tracking shape: `$exception_list` (each entry's `type`, `value`, `mechanism` and a raw `stacktrace` of frames with `platform`, `filename`, `function`, `lineno`, `colno` and `in_app`) and `$exception_level`, built by PostHog's own builder and stack parsers. It also carries `exception_source` (`server` or `app`), `exception_mechanism` and `exception_fingerprint`, a hash of the error's type and the frames it was thrown from, for counting one kind of failure. It follows the same switch as every other event here: with product telemetry off nothing is built or sent. The server sends one for an exception nothing caught (`uncaught_exception`, level `fatal`; the server still logs it and exits as before, after waiting at most two seconds for the send), a promise nobody handled (`unhandled_rejection`; the server keeps running, as before), and a request the server answered with a 5xx because a route threw (`http_5xx`, with `http_method` and the route's pattern as `http_route`, such as `/api/v2/organizations/:organizationId/bots/:botId`, never its address). The web app reports what its error screen caught (`error_boundary`), an error the page threw (`window_error`) and a promise nobody handled (`unhandled_rejection`) to its own server, at `POST /api/v2/organizations/{organizationId}/app-errors` (`recordAppError`), with keepalive and no retry. The server forwards it under the signed-in person's `user_id` pseudonym, with `app_surface` and the release the app was built for as `app_version`, so the browser never holds a telemetry key. A page sends the same error once and at most ten in all, and nothing before the person's organization is known. Like a result view, the report is accepted and dropped where telemetry is off. Nothing personal is sent. A message is scrubbed of secrets (the token shapes and credential names the command scrubber knows), email addresses, URLs past their scheme and host, IPv4 addresses, runs of seven or more digits, home directories' owners and anything quoted that is not a short identifier, so `reading 'map'` stays and `Unexpected token "what somebody wrote"` does not; then it is cut to 512 characters. A frame keeps the path of its file, never the deployment's host or a query. Request bodies, prompts, messages, tokens, emails and names are never read into an exception. An event holds at most four chained exceptions, thirty frames for the one thrown and ten for each cause, and is cut to fit the sink. Each server process sends at most five of one kind and fifty in all in any ten minutes. ## Nudges A nudge is a notice OpenBot shows a person once, such as the ask to star OpenBot on GitHub, which only the personal edition shows. When one is due is the server's rule (`shared/notices.ts`); the app reads it as `noticesDue` on the person's preferences, and saves either answer as the notice's id in `dismissedNotices`. What a person did with one is counted at `POST /api/v2/organizations/{organizationId}/nudge-events` (`recordNudgeEvent`), with keepalive and no retry, in a strict body: ```json {"nudge":"star-on-github","action":"clicked","place":"card","surface":"desktop"} ``` `action` is `shown|clicked|dismissed`: the card was drawn, it was followed (for the star nudge, the repository opened), or Not now was pressed. `place` is `card` for the card above the message box, or `settings` for the permanent row in Settings → General, which has no shown event. `surface` is `web` or `desktop`. Nothing else is accepted. The server sends `nudge_shown`, `nudge_clicked` or `nudge_dismissed` with `nudge_id`, `nudge_place`, `nudge_surface` and `nudge_moment`, under the signed-in person's `user_id` pseudonym. `nudge_moment` is added by the server, never sent by the app: the win that made the card due (`result_copied`, `routine_succeeded` or `task_finished`), and null from Settings. The stable event ID is the person, the nudge, the action and the place, so a card drawn twice, or a link pressed twice, counts once: deduplicated, the counts are people. Clicked means the repository opened, not that a star was given; GitHub's own star count is the outcome. [Query F](telemetry-queries.sql) counts people shown, clicking and dismissing per nudge and moment. Like a result view, an event is accepted and dropped where telemetry is off. ## OpenBot for Business bookings The OpenBot for Business calendar, in the web app and in OpenBot Desktop, is Calendly's, and the booking is Calendly's record. Its address (`shared/openbot-for-business.ts`) carries `utm_source=openbot_app`, `utm_medium=in_app` and `utm_content`, the screen that put it in front of the person, which Calendly keeps on the booking: `account_menu` (the account menu's entry, in every skin), `home` (the home page's Meet OpenBot for Business), `admin` (an Admin page that applies only to a team), `computer_line` (a Bot's line about a computer of its own), `self_host_banner` (the self-hosting bar's Book a call), `sign_in` (OpenBot Cloud's sign-in screen), `onboarding` (onboarding's Book a demo step), and Desktop's `welcome` and `move_to_cloud`. A place names the entry, not the page it sits on: a Bot's computer line on an Admin page is `computer_line`. Nothing about the person is added to the address. The tags are on the address whatever the telemetry setting, since they describe where a booking was made and reach only Calendly, with the booking. A calendar that could not load hands over to the OpenBot for Business page in the browser, which OpenBot does not tag. Desktop's setup window also counts its booker opened and a call booked in it, by place ([desktop telemetry](../desktop/TELEMETRY.md)). ## Desktop updates and the join with the server OpenBot Desktop reports its own updates with four events. `oss.desktop.update_started` is sent when the download of a newer release begins, with `from_version` and `to_version`. `update_completed` is sent by the first launch of the new version, with `duration_ms` measured from the start of the download. An update the app did not run itself, such as the move from 1.0.3, which says none of these, is seen by the first launch of the new version: one `update_completed` from the version that last ran (the telemetry state keeps it; for a state saved before it did, the installation's release names it) with `observed_at_first_launch: true` and no duration. Where an older installation is still to be moved to the new release, it is sent once that move goes through; a move that is put back or fails sends `update_restored` or `update_failed` instead, never both. `update_failed` adds `duration_ms` and a closed `failure_class`: `network_unavailable`, `download_failed`, `signature_invalid`, `install_failed`, `permission_denied`, `restart_failed` (the next launch was still the old version), `restore_failed` (what failed could not be put back), `cancelled` or `unknown`. `update_restored` is sent when a Start's move of the installation to the new release fails and the previous release is put back with its database. Versions are app versions in their closed form, never free text, and the events are recorded only while the person shares usage data, like every other Desktop event. An internal build reports its version with an `internal` label, as in `1.1.0-internal`, without the commit count and hash, so it is not counted as the release; the server says the same. Every Desktop event also carries `deployment_id`, the install id it is sent under. The Desktop hands that id to its server as `CPK_TELEMETRY_ID`, which the server's events carry as their `deployment_id`, so Desktop and server events join on it. ## Delivery and reporting limits Sending is best effort through the existing transport. There is no local event journal, application-level telemetry retry, replay or exactly-once producer guarantee. Stable event IDs support deduplication in PostHog queries; physical sink/destination deduplication remains an external transport concern. Shared sender completion does not acknowledge destination receipt, and opt-out or unavailable transport can leave gaps. [PostHog query definitions](telemetry-queries.sql) cover receipt/identity coverage, run outcomes, first observed success, capability use and message-to-terminal consumption joins. They are versioned examples, not installed dashboards or proof of received events. Set their coverage dates to the verified rollout and validate counts against actual destination records before publishing metrics. Keep unknown identity, missing joins, missing terminals, opt-out and surface exclusions visible. No internal/external customer classification is inferred. The OpenBot maintainer owns producer investigation; the existing sink owner owns forwarding and destination receipt. Actual new-contract receipt, Intelligence context validation/export and live dashboard validation remain external completion dependencies. Website acquisition-to-activation linkage is unavailable without a verified handoff. No receipt canary is claimed for this corrected implementation.