transcribe

How Lyft Increased Its Agent Resolution Rate by 16% with LangSmith and LangGraph

LangChain · 3m · transcribed 6d ago
More from LangChain Business
𝕏 Share ▶ YouTube 📥 PDF 🤖 .md

Section Insights

# 0:00

Overview of Customer Support Use Cases

What are the main challenges and metrics in customer support?

Customer support encompasses a wide range of issues, with a significant volume of daily interactions. The focus is on improving resolution rates without escalating to human agents.

  • Customer support includes diverse issues like lost items and damage claims.
  • There are 200,000 to 300,000 user queries daily.
  • The platform initially resolved 30-40% of use cases without human intervention.
# 0:43

Limitations of Previous Customer Support Agents

What were the shortcomings of the previous customer support agents?

The previous agents lacked sophistication, struggled with multi-turn conversations, and had poor observability, making it hard to debug issues.

  • Previous agents relied on basic LLM calls with limited functionality.
  • Debugging was challenging due to unclear component failures.
  • There was a lack of proper evaluations for agent performance.
# 1:26

Creating a Self-Serve Platform for Non-Engineering Staff

How did the team address the limitations of their customer support agents?

The team developed a self-serve platform allowing non-engineering staff to create and deploy agents using their domain knowledge with minimal coding.

  • The self-serve platform empowers PMs and ops to build agents independently.
  • Focus shifted from building agents to addressing complex use cases.
  • Configuration changes and prompt writing simplified the deployment process.
# 2:09

Dynamic Agent Deployment with LangSmith

How has LangSmith improved the deployment and management of customer support agents?

LangSmith allows for dynamic registration of agents, making deployment easier and improving debugging and evaluation processes.

  • Agents are registered as nodes in a meta agent for streamlined management.
  • LangSmith enhances debugging and testing capabilities.
  • Deployment has become more efficient with configuration and prompt management.
# 2:53

Impact of the Agent Builder Platform

What improvements have been observed since implementing the agent builder platform?

The platform significantly reduced the time to ship agents, allowing for faster iterations and an increase in resolution rates.

  • Agent deployment time decreased from six months to one to two weeks.
  • Faster shipping of agents has led to a 16% increase in resolution rates.
  • The team can now focus on more complex improvements while non-engineering staff manage agent deployment.

Transcript

0:00 Customer support use cases are very broad. It can be like issues like lost and found or issues like damage claims or issues like taxes. We have like 500 million types of interactions every day. And we have almost like 200 to 300,000 user queries per day, which is a lot. So we work for riders, drivers and applicants. One of the metrics we go for is what's like the resolution rate. So how much can we solve our customer issues without escalating them to human agents?

0:35 Our platform covers about 30 to 40% of use cases before we adopted LangSmith. Our agents were pretty basic. They were very deterministic, maybe like a one single short LLM call with a huge prompt and a bunch of internal APIs it can access. So there was no like sort of sophistication in multi-turn conversations. There were no evaluations, proper evaluations. The observability was a big issue because we kind of launched a few agents in production and sometimes it did not behave as we expected it to be.

1:11 But then we didn't know what to do about it. We didn't know which component inside that pipeline broke the response, whether it was a tool call or like a prompt or maybe like the LLM itself hallucinated in between providing a response. It was difficult to debug issues. It was getting difficult to scale. So we wanted our engineers to focus more on more complex use cases or maybe like foundational improvements and not spend all of their time building agents.

1:45 We tried to bridge this gap by creating a self-serve platform for our non-engineering people like PMs and ops, where they can use their own domain knowledge. and natural language prompting skills to build agents and ship them to production without making a lot of code changes. So it's merely like a config change, and they write some prompts on LangSmith Prompt Hub. We as engineers can review them, but they are like very easily deployable to production. So what we did was we have like a meta agent and all the sub agents are kind of registered as nodes in that meta agent.

2:25 And we do that dynamically when we start the service. So every new agent now it's just like a config which we have in our runtime repository and prompts which we have in the LangSmith Prompt Hub. So we just pull that and like the platform composes the rest of the things. So it's become pretty easy. And because of LangSmith tracing, the debugging and evaluations, testing, everything has become like very smooth and very easy. It was a huge upgrade to ship to production.

2:56 But then with this agent builder platform that we have created, that has reduced from six months to a few weeks, one to two weeks. And that's pretty exciting because now, like we have free time to focus on more complex and foundational improvements while PMs and other ops people can directly ship agents. So the iteration loop has become faster. Shipping faster has enabled us to create more agents and like cover more issues in production. And that's definitely resulted in an increase in the resolution rate by 16%.

3:31 So yeah, since we have started using LangSmith and LangGraph. (upbeat music)

Summary

The implementation of LangSmith has significantly improved the efficiency and effectiveness of customer support operations, allowing non-engineering personnel to create and deploy agents with ease. This transition has led to a faster iteration process, enabling the team to focus on more complex tasks while increasing the resolution rate of customer queries.

- Customer support handles a vast array of issues, with 200,000 user queries daily.
- Prior to LangSmith, the resolution rate for customer issues was only 30-40% without human intervention.
- Existing agents were simplistic and lacked sophistication in multi-turn conversations, making debugging challenging.
- A self-serve platform was created for non-engineering staff to build and deploy agents with minimal coding.
- The new system allows for dynamic registration of agents, simplifying deployment and management.
- The time to ship agents has reduced from six months to one to two weeks.
- The increased efficiency has led to a 16% rise in the resolution rate of customer queries.
- LangSmith's tracing features have improved debugging and evaluation processes significantly.

Questions Answered

What are the main challenges and metrics in customer support?

Customer support encompasses a wide range of issues, with a significant volume of daily interactions. The focus is on improving resolution rates without escalating to human agents.

What were the shortcomings of the previous customer support agents?

The previous agents lacked sophistication, struggled with multi-turn conversations, and had poor observability, making it hard to debug issues.

How did the team address the limitations of their customer support agents?

The team developed a self-serve platform allowing non-engineering staff to create and deploy agents using their domain knowledge with minimal coding.

How has LangSmith improved the deployment and management of customer support agents?

LangSmith allows for dynamic registration of agents, making deployment easier and improving debugging and evaluation processes.

What improvements have been observed since implementing the agent builder platform?

The platform significantly reduced the time to ship agents, allowing for faster iterations and an increase in resolution rates.

© transcribe · For agents Built with care and craft by Gokul Rajaram