Data Collection Policy
Optional telemetry, execution chains, collected data and opt-out controls
LangBot sends product telemetry to the LangBot Space service configured by space.url (by default https://space.langbot.app) to understand usage and improve reliability. Telemetry is enabled by default and can be disabled. This page describes the current 4.11 execution telemetry protocol (schema: 2); older-version data is described separately below.
Execution telemetry
An eligible execution consists of independent records sharing an event_id: one execution_node is generated when each workflow node completes, and one execution_chain when the execution closes. Core buffers records within a fixed limit and uploads them in background batches; Space reconstructs the execution chain. The current sender no longer uses legacy feature window counters or assembles a complete chain locally.
Platform events without a matching business route, or whose selected route is discard with no matching plugin subscription, report neither nodes nor a closure. Disabled routes and event-type/filter mismatches are included; local logs and monitoring keep their existing behavior. A matching plugin event processor still makes an execution eligible when the primary route misses. Unmatched and discarded branches do not contribute telemetry.
After a business route matches, unavailable targets, execution failures, timeouts and filtering inside a Chat remain reportable. Valid interaction callbacks resuming an original processor, WebUI/API debug runs and independent calls explicitly targeting a Chat also remain eligible; invalid callbacks do not independently qualify. Eligibility takes precedence over sampling and failure fallback, including in Cloud. This requires a Core upgrade and does not retroactively change older clients or historical records.
| Data | Contents |
|---|---|
| Identity and environment | instance_id, workspace_uuid, event_id, version, edition, timestamp, debug flag and sampling information |
| Execution nodes | Operation identifiers, processing mode, outcome, start/end times, parent/child relationships and sequence, routing target and Runner run identity for platform events, routing, Chat, Runner, platform API and tool calls, plus command executions (command: builtin:<name>, plugin, or processor with ok/denied/failed/intercepted outcomes) and policy drops (message_policy: rule category, discarded outcome, and bot/route layer) |
| Chain closure | Overall outcome, closure reason (completed when the inbound event and all downstream work queued for it finished; merged when message aggregation folded it into another chain, with merged_into; timeout when handed-off work did not report back within 30 minutes), duration, node count, nodes omitted by sampling, origin, model name, adapter, Runner and Chat plugins |
| Feature usage | Per-execution integer counters in features: tool calls by source, sandbox executions and errors, knowledge-base retrieval attempts, skill activations and LLM attempts (including retries). Zero counters are omitted; each counter is capped at 65,535. No tool arguments, outputs or skill names are added by these counters |
| Bound resources | Identifiers or names of plugins, MCP servers, knowledge bases, tools and their sources, skills, models and platform APIs granted to a Chat or Agent, plus selector fields, capabilities and permission flags; fields depend on the execution path |
| Errors | A complete diagnostic description: exception class, message, the Caused by chain and the file, line and function of the last traceback frames (no source lines), capped at about 4,000 characters while keeping both ends. Common credential shapes (sk- keys, Bearer tokens, api_key=/token=/password= pairs, secret URL parameters) and email addresses are masked before upload |
| Workflow steps | For executions that run workflows: how each run started, how many steps of each type it walked and, in order, the type, variant (an operation, platform action, tool source or target kind defined by LangBot), outcome, duration and exception class of up to 64 steps in total. No step names, configuration, inputs, outputs or error messages |
Bound resources describe what an execution was configured or authorized to use. They do not establish that those resources were actually called, searched or consumed. Routing targets use type:uuid, not user-defined rule names.
model_name identifies the first LLM invoked in an execution, across Chat, Agent and event-processor paths, truncated to 128 UTF-8 bytes. Feature counters are included only in the existing chain closure; disabling telemetry or leaving space.url empty disables counting as well as upload.
Execution records do not intentionally collect message bodies, prompts, model replies, platform user/group IDs, or tool/API arguments or results. Credential masking matches common formats and is not reliable redaction: exception messages (such as raw provider error text) and user-defined model, skill or resource names may still contain sensitive information or user content. Instance and Workspace identifiers may be associated with deployments or accounts; these records are neither anonymous nor guaranteed to contain no user content.
Sampling and debug runs
The community edition controls execution reporting with space.execution_trace:
| Mode | Behavior |
|---|---|
all (default) | Records nodes and closure records for every eligible execution |
sampled | Makes one stable hash decision from the event identity at ingress; retains approximately 1/N successful executions, where N is space.execution_trace_sample (default 20); every record of an execution shares the decision |
failures | Omits nodes for ordinary executions and reports a closure only for failure, cancellation, timeout or a recorded chain failure reason |
off | Disables node and closure records; Workspace heartbeats and their usage counters remain controlled by the main telemetry switch |
If an execution excluded by sampled fails, its closure is still reported. Previously skipped nodes are not recovered, so a failure may have a summary without a complete chain. WebUI debug runs are retained in all, sampled and failures with a debug flag; neither off nor the main opt-out permits their upload.
Cloud always uses all while product telemetry is enabled, so sampling successful executions does not distort activity counts. The instance operator can still disable the product telemetry described here with space.disable_telemetry.
Delivery and completeness
Records are sent to POST /api/v1/telemetry. The default flush interval is 180 seconds, configurable through space.telemetry_flush_seconds. Each flush sends at most 128 records and the memory buffer holds at most 512. Records are removed only after an accepted send; failed sends are retried, and a full buffer drops the oldest records. Shutdown attempts to flush remaining records within a limited time.
Network failures, timeouts and server errors do not fail business execution because telemetry failed; upload failure details are logged at DEBUG level. Sampling, buffer overflow, process exit or expired cross-task associations can leave incomplete chains. Full reporting does not guarantee complete delivery. A successful platform API response does not prove that a user read a message.
Heartbeats, surveys and older-version data
Active Workspaces first send an instance_heartbeat about 30 seconds after startup. Ordinary deployments send daily thereafter; Cloud runtime refreshes every 5 minutes. Heartbeats include deployment platform, database/vector-database kinds, sandbox configuration and availability, adapter types and counts of resources such as bots, Chats, plugins, Agents, workflows (and how many are turned on) and their data tables, event processors, event bindings, MCP servers, knowledge bases and skills, as well as bot message-policy and command configuration counts (non_neutral_policy_bots, commands_disabled_bots, custom_prefix_bots, builtin_disabled_bots, silent_denial_bots, all_plugins_bots, route_policy_overrides). They do not intentionally include resource contents or connection credentials.
Optional in-app surveys send the survey ID, submitted answers, instance ID, version and completion/dismissal status. Survey answers are content voluntarily provided by users.
Space remains compatible with older query and feature_execution data. Legacy query records may contain model names, feature counters, user-defined skill/MCP names and raw traceback text. The current execution-record restrictions neither sanitize historical data nor change uploads from older clients still running.
Aggregated feature usage
Heartbeats also carry process-local usage counters for knowledge-base creation, updates, deletion, uploads, ingestion, retrieval and migration; prompt-library browsing and application, sharing previews/submissions and plugin/MCP/skill installation; bot command executions (command.run), policy drops (policy.drop), lifecycle hook interceptions (hook.intercept) and outbound transforms (output.transform); workflow runs (workflow.run: how the run started and whether it succeeded) and the step types they passed (workflow.step), their variants (workflow.step.detail) and exception classes (workflow.step.error), run length (workflow.size), test runs (workflow.test), saves (workflow.save) and the step types a save added or removed (workflow.design); the workspace assistant, described below; and HTTP/MCP calls, including lbctl commands and client versions. Dimensions are limited to operation categories, command kind/built-in name (builtin names or plugin/processor), policy rule category and layer (bot/route), client type, HTTP status class, public engine plugin IDs, file-extension categories, size/duration buckets, outcomes and exception class names. Installation counters include source categories and whether an MCP installation still needs configuration inputs.
These counters do not contain workflow names, step names or contents or data-table rows, knowledge-base names, file names or contents, prompt names or text, retrieval queries, URLs, credentials or error messages. Heartbeats additionally include up to 16 loaded knowledge-engine IDs, a file count where available (unavailable in Cloud runtime), validated deployment-source/tool-version labels and up to five lbctl versions. No new telemetry requests or frontend funnel tracking are added.
For the workspace assistant, the counters cover new conversations, how each turn was started and ended, its failure code, length and duration, tokens in thousands, model call outcomes (whether the model is an official LangBot model or your own, not its name), the built-in tools, LangBot operations and built-in skills it used, whether proposed changes were confirmed, thumbs up/down, and what it made or changed as a resource kind and a change (for example workflow / create). They never contain conversation text, tool arguments or results, names, generated content, files or the note left with feedback. The full assistant records described in the Workspace settings stay in the database of the instance and are not part of telemetry.
Each Workspace has at most 512 counter keys and the process tracks at most 10,000 Workspaces. Counters are sent as acknowledged deltas with the existing heartbeat; failed sends retain pending counts. They are not persisted locally, so restarts and capacity limits can lose counts. Space aggregates usage by UTC day and retains usage and content-event aggregates for 180 days. space.disable_telemetry: true disables accumulation as well as reporting of these counters.
Storage and retention
Data is stored by the configured Space service. Execution lists, chain details and summaries are restricted to authorized telemetry management users or service clients. Raw execution_node, execution_chain and legacy feature_execution records are periodically removed in bounded batches using a 30-day retention window; backlogs or service interruptions can delay deletion. This does not change retention for legacy query telemetry, heartbeats, surveys, accounts or service logs.
Opting out stops future reporting but does not delete existing server records. For historical data requests, contact [email protected] or your Space administrator.
Disabling telemetry
Set the following in the existing space section of data/config.yaml, preserve other settings, and restart LangBot:
space:
disable_telemetry: trueThis switch disables the product telemetry described on this page and survey fetching. Use an unquoted YAML boolean. To restore the default, set it to false and restart.
If SPACE__DISABLE_TELEMETRY is set in your deployment, it overrides the file at startup; update or remove it too. Recreate containers when changing their environment. In Cloud, the instance operator controls this setting for every Workspace in the instance. It does not disable the bot or change privacy settings of messaging platforms, model providers or plugins.
Cloud Plugin Runtime operational health reporting is separate from product telemetry. It is controlled by plugin.runtime_ops.enabled and is not disabled by space.disable_telemetry.
See System Settings.
Community Resources
LangBot community resources: GitHub, Discord, documentation and support for the open-source AI bot platform.
One-Line Install (Recommended)
Install lbctl and deploy LangBot with one command: Python set up automatically, native or Docker deployment, start on boot, one-command upgrades.
