All integrations
Langfuse

Langfuse

Connect Langfuse to the AI agent: traces, generations, scores, sessions, prompts and datasets

Connect Langfuse to the AI agent: traces, generations, scores, sessions, prompts and datasets. The agent finds failed generations and quality drops.

Documentation
Скоры просели, посмотри где

Средний скор упал с 0,82 до 0,67 после версии промпта v12.

Сопоставил скоры с сессиями: сильнее всего просели диалоги с длинным контекстом — 34 сессии из 210. В трейсах там же выросла доля обрывов генерации до 6%.

Integration scenarios

Trace review for the last 24 hours

The agent goes through a day of traces and shows where generations failed and which steps lost the most time.

Answer quality drop

The agent matches scores to sessions and names the conversations where answer quality fell the most.

Observability digest

The agent sends a digest on schedule: how many traces there were, what share of them failed and how scores moved over the chosen period.

Prompts and datasets

The agent pulls the prompt versions and dataset items of the project so you can tie a prompt edit to a change in scores.

How to connect

1

Sign in to Langfuse in your region

EU is https://cloud.langfuse.com, US is https://us.cloud.langfuse.com, Japan is https://jp.cloud.langfuse.com. Keys are scoped to a single project, so open the exact project whose data the agent needs.

2

Open Settings → "API Keys" in the project

Inside the project go to Settings → "API Keys". You need the Owner or Admin role: Member and Viewer cannot configure the project, so the keys section stays out of reach.

3

Create a new key pair and copy both values

A pair is a public key prefixed pk-lf- and a secret key prefixed sk-lf-. Copy both right after creation — you need the full secret key, the shortened preview in the list is not enough.

4

Write down your host address

If the project is not in the EU region, you also need the host address: https://us.cloud.langfuse.com, https://jp.cloud.langfuse.com, https://hipaa.cloud.langfuse.com, or the domain of your self-hosted instance.

What the agent does in the first 10 minutes

  • Will go through a day of traces and show where generations failed and which steps cost the agent the most time
  • Will match scores against sessions and name the conversations where answer quality dropped the most
  • Will send a scheduled digest: trace volume, error share, and how scores moved over the period

FAQ

How do I connect Langfuse?

With a project key pair: open the project, go to Settings, then API Keys, and create a pair. The public key starts with pk-lf-, the secret one with sk-lf-. If the project is not in the EU region, set host: for example, https://us.cloud.langfuse.com or the domain of your own installation.

What does the agent see in Langfuse?

Traces and generations, scores, sessions, prompt versions and datasets of one project: keys are issued per project, not for the whole organisation.

Does the agent write to Langfuse?

By default the agent reads observability data and reports in chat: it sends no traces of its own and does not change prompts without your request.

Is a separate role required?

Only a project Owner or Admin can create a key pair — Member and Viewer cannot open the settings section. The agent itself only needs a key pair that already exists.

Related integrations