All posts
2 min readby Romiel Inolino

LangSmith Engine Goals: LangChain's design agent finished every edit without errors, yet users abandoned the videos it revised

LangSmithLangChainAI agentsobservabilityevals

LangChain added Goals to LangSmith Engine, and its example shows why an agent's error rate says little about whether people use what it produces.

What happened

LangSmith Engine is a persistent agent that reads production traces, diagnoses recurring problems and proposes fixes as pull requests. With the new Goals feature, a team describes an outcome in plain language, in LangSmith or through a Slack message, and Engine helps pick a metric for it. LangChain's docs say Engine then compares the traces that score best and worst on that metric and files its recommendations under the goal. It still runs broader analysis outside the goals, less often.

LangChain's example is Content Studio, an internal agent that makes videos, graphics and slides from Slack prompts. The goal was "Generated content gets used in marketing campaigns," measured as the share of output posted to LinkedIn or X. Engine first found that traces didn't record whether content was published, so it opened a PR to attach that signal to traces as feedback.

With the outcome attached, Engine found that videos with follow-up edits were less likely to be posted, even when those edits completed without errors. Requests like "change the closing slide" regenerated the whole video, which changed scenes users had already approved and started another round of corrections. Engine proposed a fix that applied revisions only to the relevant scenes, added the problem requests to the regression dataset, and evaluated the fix against the full dataset before it shipped.

My take

The Content Studio case is a good illustration of a failure that no error log catches. Every step succeeded, and the output still wasn't usable. You only see that by recording what happened after the agent finished: whether the email was sent, the ticket stayed closed, or the lead booked a call.

That outcome usually lives in another system, often the CRM, and connecting it back to the agent run is integration work rather than an AI problem. Store the agent run ID on the record it touched, then write the outcome back against that ID when it's known.

Engine's automated PRs are interesting, but the instrumentation step is the part any team can copy today without LangSmith. LangChain doesn't publish how much the publish rate changed after the fix, so the example shows the method rather than a measured result.

More posts