# How Sypnia uses it

> Every Sypnia product reaches models through Sypnia AI, and Telemetry, the pilot, shows how.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://ai.docs.sypnia.com/start/how-sypnia-uses-it/

For agents: Dogfooding: Telemetry (the pilot, built on Sypnia end to end) calls Sypnia AI under its own project for problem analysis (task summarize, the agent's sentence per problem, structured output), the daily summary (task write), weekly suggestions; each call is a span inside the trace of the Telemetry case that made it (e.g. analyze-problem), visible in Telemetry itself; per-case budgets; bodies not stored. Self-hosted Telemetry engines can point SYPNIA_AI_PROVIDER=openai-compatible + SYPNIA_AI_BASE_URL at a self-hosted gateway. Agent, Cases' editor, Design's helpers, Learn and App's chat also call it, each under its own task routes, using the Sypnia session instead of a secret key.

Telemetry is the pilot of the Sypnia suite: it is built on Sypnia from end to end and uses every Sypnia product. This is how it uses Sypnia AI.

## How Telemetry uses Sypnia AI

| What Telemetry does                                                                                           | How it reaches a model                                                                                                                               |
| ------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| **The sentence about each problem** («3 people tried to pay today and could not: the card form never loaded») | the `summarize` task, with a structured answer (a JSON schema for the sentence, the likely cause and the evidence), under the case `analyze-problem` |
| **The daily summary** e-mail                                                                                  | the `write` task, under the case `send-daily-summary`                                                                                                |
| **Weekly suggestions**                                                                                        | the `extract` task, under the case `suggest-improvements`                                                                                            |

- **Its own project.** Telemetry's calls belong to the Telemetry project of Sypnia's organization, paid with that organization's credits, like any customer's.
- **Budgets per case.** `analyze-problem` has a monthly cap, and each customer project a daily one, so a storm of new problems in one project cannot use up the analysis of everyone else.
- **Traced in Telemetry itself.** Each analysis is a span inside the trace of `analyze-problem`, with the model, the tokens, the time and the credits. When an analysis is slow, Telemetry's own team sees it the way a customer would.
- **Nothing kept.** The evidence sent to the model and the sentence it writes are not stored by Sypnia AI; Telemetry keeps the sentence in its own database, as part of the problem.
- **Self-hosted too.** A self-hosted Telemetry engine can reach a self-hosted Sypnia AI gateway: set `SYPNIA_AI_PROVIDER=openai-compatible` and `SYPNIA_AI_BASE_URL` to the gateway's `/v1` in the Telemetry engine.

## The rest of the suite

| Product                                   | What it asks of Sypnia AI                                                    |
| ----------------------------------------- | ---------------------------------------------------------------------------- |
| [Agent](https://agent.docs.sypnia.com/)   | the `code` task for every step of a coding task, within the task's budget    |
| [App](https://app.docs.sypnia.com/)       | the chat's answers, through Agent                                            |
| [Cases](https://cases.docs.sypnia.com/)   | drafts of use cases in the editor, always approved by a person               |
| [Design](https://design.docs.sypnia.com/) | proposals for palettes, type pairings and screens, checked against the guide |
| Learn                                     | explanations and exercises at the person's level                             |

Sypnia's products use the Sypnia session of the person working, not a secret key, so each call is charged to the right organization and shows who made it.

## What it proves

If Sypnia AI is slow, wrong about a cost, or lets one project starve another, Telemetry is the first to feel it, in production, every day.
