Langfuse v4: up to 165× faster · Read more
August 18, 2026
How Evolve built a voice AI sleep coach, traced and evaluated on Langfuse logo

How Evolve built a voice AI sleep coach, traced and evaluated on Langfuse

Learn how Evolve traces Rest, a voice-and-text sleep coach based on the principles of CBT-I, on Langfuse, managing 100+ composed prompts and cutting the coach's memory misses in half.

Picture Annabell SchäferAnnabell Schäfer

Summary

01

Rest brings sleep coaching to thousands of users

Evolve built Rest, a voice-and-text sleep coach based on the principles of CBT-I, circadian biology, and neuroscience.

02

Tracing and prompt management in one place

Langfuse traces the Vapi and OpenAI system end to end and manages 100+ dynamically composed prompts, including locale variants.

03

Error analysis drives product improvement

Structured error analysis surfaces failure modes and the right evaluators to improve the system over time.

04

Automated monitoring for memory issues

LLM-as-a-judge evaluators measure cross-session memory, and the first iterations cut misses in half.

70 million Americans show symptoms of insomnia

Evolve is a YC-backed company that's been building products for about nine years. It started with Podcast App, one of the most-downloaded podcast apps on iOS with more than 15 million downloads, and they're continuing to innovate today.

Podcast App usage spiked late at night because listeners were using it to fall asleep. That led Evolve to investigate sleep care, where roughly 70 million Americans show symptoms of insomnia but access to CBT-I, which the American College of Physicians recommends as first-line treatment for insomnia, is scarce. Clinicians trained in it are few, waitlists can run for up to a year, and the care that is available is often small-group or costly one-to-one. Evolve works with leading sleep researchers and clinicians at institutions like UCSF, and saw an opportunity to bring science-backed sleep support to more people through voice AI, at greater scale and lower cost.

Rest: a sleep expert that never sleeps

Rest is Evolve's AI sleep coach. The program draws on the principles of CBT-I, circadian biology, and neuroscience, and was built with sleep experts. Its first part runs about eight weeks.

Rest sleep coach app showing a sleep log beside the message A Sleep Expert That Never Sleeps
Rest app showing a live Rest AI voice session and a Day 8 sleep program dashboard
Person using a phone in bed at night, the setting Rest's sleep coach is built for

Tracing a voice-and-text agent end to end

All of Rest's AI usage is traced in Langfuse. The voice experience runs on Vapi as the orchestration layer, with ElevenLabs for voice synthesis, Deepgram for transcription, and OpenAI as the underlying LLM. Vapi has a native Langfuse integration and works out of the box. The text-chat experience is built and traced directly on OpenAI LLM APIs in Evolve's own backend. The text experience, and also non-conversational LLM work such as background extractors that process conversations after the fact, are traced through Langfuse as well.

Vapi orchestrating a Rest voice turn through speech, Deepgram transcription, OpenAI reasoning, and ElevenLabs voice, with spans emitted to Langfuse

"Everything that has to do with evals and error analysis, we completely rely on the fact that we have Langfuse as a repository for traces and prompts. I don't know what it would have been like if we didn't have it.
Ignacio Perez
Ignacio Perez, CTO at Evolve

Error analysis as an engineering practice

For both Ignacio and Martin, tracing their agents in Langfuse is the foundation for their most important eval practice: error analysis. It's how they find failure modes and act on them, either by implementing and testing a fix directly or by setting up an evaluator to monitor for it going forward.

Martin reviews traces himself. Working through flagged conversations in annotation queues surfaces which failure modes are quick fixes and which are "a whole big component we need to build... a multi-week, maybe even a multi-month exercise."

On top of manual review, Evolve runs LLM-as-a-judge evaluators in Langfuse to measure how consistently the coach carries context forward.

Deep dive: building the coach's cross-session memory

The most valuable thing error analysis surfaced was how much cross-session memory matters.

Users share context with the coach, like routines, preferences, and how their days look, and the coach notes it so the program can personalize around it. In a single conversation the coach was solid. The hard part is carrying context into the next conversation days later: cross-session memory, the thing that makes personalization compound over time. Early on, some context carried forward and some didn't, and the coach wasn't as consistent about it as the team wanted.

"We found this during error analysis, and then heard the same thing in user research calls and in customer support. Users were telling the coach they'd already shared something days earlier. These patterns, you only find them when you do structured error analysis.
Martín Siniawski
Martín Siniawski, CEO at Evolve

Consistency here is a trust and experience question: remembering what someone told you is a big part of feeling coached. The team decided cross-session memory had to be tackled from several angles and turned it into a project: building a next-generation memory system, a genuinely multi-month engineering effort. The LLM-as-a-judge they set up in Langfuse flags conversations where context wasn't carried forward as expected, which meant that for the first time they could measure whether the new system was working. It was: the first iterations alone cut cross-session misses in half.

Prompt management at scale

Beyond tracing, Evolve manages more than 100 prompts in Langfuse Prompt Management. These aren't static prompts. They are composed on the fly, and Langfuse makes that composition easy to pull off: a foundational prompt sets up the overall conversation, and on top of that sits an agenda of two to four items, each its own prompt that can embed further prompts, including locale-specific variants (English and Spanish, adjusted for users in Argentina, Colombia, and Mexico).

Layered Rest prompt architecture showing a foundational prompt, agenda items, embedded prompts, and locale variants composed at runtime in Langfuse

"... we discovered the prompt repository as well, and it turned out to be a game changer for us.
Ignacio Perez
Ignacio Perez, CTO at Evolve

The main win, per Ignacio, is that this gives non-engineers, people writing and refining prompts who don't have (or want) deploy access, a safe way to edit and ship prompt changes without touching code or GitHub. Staging and production labels let a prompt be tested before it's promoted live.

"I always say it's like the CMS of prompts. It's a game changer.
Martín Siniawski
Martín Siniawski, CEO at Evolve

Why Langfuse

Ignacio's team found Langfuse through Evolve's YC network, and it stuck. As Ignacio put it, "The centralization of tracing, reliably managed. And the prompt repository was a lucky punch, we jumped to Langfuse for tracing, and eventually we discovered the prompt repository as well, and it turned out to be a game changer for us."

Ignacio credits responsive support and steady, visible product improvement. Martin runs on Langfuse Cloud and points to the same standard: "we also know that you have very high standards." Beyond that, Evolve enjoys knowing self-hosting is a potential future avenue.

What's next

Deeper eval coverage. The product has grown substantially in complexity and sophistication over the past year, and the team is building out datasets in Langfuse so that every core conversation flow is regression-tested as a standard part of shipping.

More proactive issue detection, including using the Langfuse API, MCP server, and CLI inside Evolve's own internal tools and admin dashboard, to pull trace data into context faster and catch problems earlier.

Possibly bringing the agent in-house. Ignacio said Evolve is considering building a custom agent harness for more control over performance and latency of voice interactions. Observability in Langfuse stays on regardless - a key advantage of Langfuse's vendor-agnostic tracing.

Ready to get started with Langfuse?

Join thousands of teams building better LLM applications with Langfuse's open-source observability platform.

or Talk to an expert

No credit card required · Free tier available · Self-hosting option