How to run a customer support agent that only sees what each user may see, answers from docs and account data, opens tickets itself and ships only when evals pass (LangGraph + LangSmith, Snyk Assist)
Confirmed by source: Production use documented by Snyk's own engineering team in a case study on the LangChain blog (8 Oct 2026): permission-scoped LangGraph agent, CI eval gate, online grading, with dated usage figures and a public product docs link. Page checked live (HTTP 200) on 2026-11-26. Not run by BranoLabs (needs a real product, account data and support queue). (checked 2026-11-26)
The problem
Customers of a technical product ask specific questions about their account, issues and product behaviour, and the answers are scattered across docs, support articles, release notes and account data. They end up reading several pages or filing a ticket and waiting, while the support team has to read, classify and route thousands of cases by hand. Because the product is security software, an agent must never show a user anything they could not already see.
Tools needed
- LangGraph agent runtime with LangChain middleware (context, guardrails, model fallbacks)
- LangSmith for tracing, offline eval datasets, CI gating and online grading
- PostgreSQL checkpointer for per-session conversation state
- Your docs, support articles, release notes and account APIs exposed as typed tools (microservices)
- Ticketing / feature-request system the agent can write to
- Surfaces: Slack app, web panel, API
Step-by-step recipe
- Start internal: let your own support team use the agent for case triage and as a virtual agent first, and feed every trace from that phase into your evaluation sets.
- Expose each capability (look up open issues, check a package, read account context, open a support case, log a feature request) as a typed tool, and attach tools per request based on the signed-in user's actual permissions, so the agent can only reach data that user may see.
- Put context handling, guardrails and model fallbacks into middleware hooks rather than hand-coding them into the agent loop, and keep conversation state in a checkpointer keyed by session.
- Build two offline eval suites: real questions with known good answers scored by a second model, and an automated red-team set that tries to make the agent ignore instructions or leak secrets.
- Run both suites against the real agent on every pull request and block the merge when scores fall below thresholds stored in the repo.
- In production, grade every conversation with a scheduled job (was it on-topic, did it answer?) to get a measured deflection rate, and tag each question by product area and error type so product and docs teams see where customers struggle.
- Roll out by surface while keeping one runtime: internal tool, then the support portal, then a panel inside the product for all paying customers.
Copyable prompt
Online grader for support-agent conversations (run on every finished session).
Input: the full conversation [TRANSCRIPT] and the list of tool calls [TOOL_CALLS].
Answer in JSON:
{"on_topic": true|false, // was the user asking about [PRODUCT]?
"answered": "yes"|"partly"|"no", // did the final reply actually resolve the question?
"ticket_opened": true|false,
"should_have_escalated": true|false, // e.g. bug, outage, billing dispute, data the agent could not reach
"product_area": "[ONE_OF_YOUR_AREAS]",
"topic": "short label",
"error_type": "none|wrong_answer|refused_wrongly|missing_doc|tool_failure|other",
"evidence": "one sentence quoting the decisive turn"}
Judge only what is in the transcript. If unsure whether it was answered, use "partly".Original template written by our AI agent for AgentRecipes, not copied from the source. Replace the [BRACKETS] and {{variables}} with your own values and test before relying on it.
What the builder reported
Snyk says that since Snyk Assist went live to customers in April 2026 it has handled more than 60,000 queries across 500+ customer accounts, resolved over 85% of sessions without a support ticket (saving the support team hundreds of hours) and auto-detected and escalated 250+ cases straight to the right team. Since 1 September 2026 it runs inside the core product for every paying customer. Source: Snyk's case study on the LangChain blog.
These are the source author's own claims. AgentRecipes has not run this recipe itself.
Watch out for
- Permission scoping is the core safety mechanism: tools are attached per user at request time, not filtered after the fact.
- Deflection measured by an automated grader is still a model judgement; spot-check the graded sessions.
- Snyk ran the agent internally for about a year before customers saw it; budget for that learning phase.
- The 85% figure is sessions resolved without a support ticket, not a measured accuracy rate.
- Vendor customer story written by Snyk on the LangChain blog; figures come from Snyk.
Source
Original write-up: LangChain blog (customer case study) (2026-10-08) ↗
Found via LangChain customer stories: “How Snyk turned an internal support agent into a customer feature”. This recipe summarises the source in words written by our AI agent; read the original for the full details. Link last checked 2026-11-26.
More customer support recipes
New agent recipes in your inbox
A short email with the newest automation recipes, each linked to its real-world source. No spam. Every email has a one-click unsubscribe link.