transcribe

Building a Linear issue agent with Langsmith Agent Builder

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

Section Insights

# 0:00

Introduction to Langmith Agent Builder

What is the Langmith agent builder?

The Langmith agent builder is a tool designed to create agents that can automate tasks, such as managing issues and feature requests in a project management tool.

  • Langmith agent builder is launching as a public beta.
  • It allows users to create agents for various tasks.
  • The demo focuses on the linear issue manager agent.
# 0:20

Creating an Agent

How can I create an agent using the Langmith agent builder?

Users can create agents by describing their tasks in natural language, which the agent builder interprets to configure the agent.

  • Agents can be created using simple natural language descriptions.
  • The builder searches available tools and triggers based on user input.
  • Memory management in the agent builder is file-based.
# 0:45

Gathering Information for Agent Configuration

What information does the agent builder need to configure an agent?

The agent builder asks follow-up questions to gather necessary details, such as which team to create issues for and how to distinguish between bug reports and feature requests.

  • Follow-up questions help refine agent functionality.
  • Users specify criteria for processing messages.
  • Configuration includes team selection and response preferences.
# 0:58

Finalizing Agent Configuration

What happens after the agent configuration is completed?

Once the configuration is finalized, the agent is created and can be connected to a Slack channel for operation.

  • The agent is configured to trigger on Slack messages.
  • Users can limit agent access to themselves initially.
  • The agent editor allows for further configuration adjustments.
# 1:20

Testing the Agent

How can I test the functionality of the created agent?

Users can interact with the agent through a test chat interface to ask questions and see how it retrieves and processes information.

  • The agent can retrieve current issues from the project management tool.
  • It demonstrates its ability to call necessary tools and handle pagination.
  • Real-time testing showcases the agent's capabilities.
# 2:00

Real-World Application of the Agent

How does the linear issue manager operate in a real-world scenario?

The linear issue manager automatically files issues based on messages in Slack, linking back to the relevant issues for team visibility.

  • The agent operates in the background, processing messages continuously.
  • It can handle multiple requests from a single Slack thread.
  • Real-time feedback is provided in Slack after actions are taken.
# 2:20

User Interface Overview

What does the user interface for the agent look like?

The user interface includes a chat page where users can view conversations with the agent and monitor its activity.

  • The UI provides an overview of agent interactions.
  • Users can track how the agent responds to Slack messages.
  • The ambient nature of the agent allows for passive monitoring.

Transcript

0:01 Hi, I'm Sam and I'm a product manager at Langchain and today I'm going to give you a brief tour of the Langmith agent builder which we're launching as a public beta this week. so these are the agents that I have available for myself in production right now. you can see my support email filter assistant, my daily calendar briefer. the one I'm going to be showing today is the linear issue manager, which monitors a Slack channel that the engineering team that builds the agent builder spends most of its time in for feature requests or for bug reports. And it then takes that information and it it manages our linear board. So, the board in which we manage our our issues and our feature requests. it can create new issues. It can update existing issues. then it reports back in Slack with the work that it's done. But to start, I'm going to show you how to create such an agent. So I'll click the new agent button up here in the top right corner. we want to make it really easy to build agents on the agent builder. And so we've allowed people to create agents using natural language. So let me just describe the task now.

1:00 So I've written out I want an agent that listens for messages in my team Slack channel and manages our linear board when it receives bug reports and feature requests. So I send that message and that goes to our agent creator agent as we call it. and it searches the available tools, the available triggers. and what it does then is it it manages a bunch of files. So basically the way that memory works in the Langmith agent builder is that memory is a file system. the system prompt lives in a file. The tools connected to an agent lives lives in a file. And so all of those files can be managed by the agent itself. so then what it does is it asks me follow-up questions to gather more information. having seen what tools it's going to need, it knows the arguments to those tools. it then can can sort of know what it does not know and it asks that information from me. So, which linear team should issues be created in agent builder team.

1:51 How should the agent distinguish between bug reports and feature requests? this look for keyword suggestion looks just fine. Should the agent respond in Slack after creating a linear issue? Yes, reply with confirmation and link to the linear issue. Perfect. Should certain types of messages be ignored? yes. Only process messages that clearly look like bug reports or feature requests? So, I submit that additional information and now the creator agent is taking it and it's going to make the final agent configuration for me.

2:24 Okay, so this process is completed. it's generated an agent configuration for me which you can see triggers off of receiving messages in a slack channel and it has a small number of linear tools attached to it and then also a tool Slack reply to message which it will use to communicate back to me after it does its work. so let's say I'm still workshopping this agent. So as opposed to being available to everybody in my Langmith workspace, I'm going to say this agent should only be available to me just to start. And then I'll connect my Slack channel to it. And once I do that, I can hit create agent which takes us to the agent editor page.

2:58 this is where you can update the configuration of the agent and also sort of see how it's configured. so on the the left side here we have the instructions which is effectively like the system prompt for the agent. bottom left we have the the trigger connected to the agent and then also we have the toolbox which has the same set of tools backed by MCP that I just showed you on the prior page. To show you how it works, I'm going to use the test chat right here on the right side and I'll ask it what issues exist today on agent builder team.

3:31 So I've asked the agent a question what issues exist today on the agent builder team. It first calls linear list teams which it needs to to do to get the exact UU ID of of the team and then it searches for issues with pageionation. It calls this tool twice and then it finds 82 total issues on our team. and has them grouped by status. So that was the agent that I just created for you on the fly. But to show you the one that my team uses in production every day, I'll go back to the linear issue manager, which is this agent here, which has a very similar configuration as the agent that we just created. It has a bunch of linear tools attached to it and then a single Slack tool to reply to a message and it is triggered on receiving a new message in a Slack channel. to show you an example of how that actually works, here's just an example conversation from last week where our CEO Harrison gave feedback on our product. lead engineer on our team responded to that, said, "I'm working on a fix, but in the meantime, Linearbot, please file an issue." The Linearbot filed that issue automatically and then linked us to it right in Slack.

4:33 And just briefly, I'm going to show you the the use agent page or the chat page in the in the links with UI. these are all the conversations with the agent. really this is an ambient agent so it's running in the background. So I'm not super often looking at these threads but you can see see it's receiving all these Slack messages. with those messages it is calling linear list labels list issues then create issue three times in this case. I guess it was three bug reports or feature requests that were filed in the same black thread and then it replies to the message with what it did. So thank you for watching. This has been a a brief demo of the linksmith agent builder and my linear issue manager bot.

Summary

Sam introduces the Langmith agent builder, a tool designed to create agents that automate tasks, such as managing feature requests and bug reports in a Slack channel. He demonstrates how to build an agent using natural language, configure it to interact with tools like Linear, and showcase its functionality in real-time.

- The Langmith agent builder allows users to create agents easily using natural language descriptions.
- Agents can monitor Slack channels for messages related to bug reports and feature requests.
- The builder generates agent configurations and asks follow-up questions to refine the setup.
- Agents can create and update issues in Linear and provide feedback in Slack.
- The demo includes a real-world example of an agent filing an issue based on team feedback.
- Users can test agent configurations and view conversation history within the Langmith UI.
- The agent operates in the background, automating tasks without requiring constant user interaction.

Questions Answered

What is the Langmith agent builder?

The Langmith agent builder is a tool designed to create agents that can automate tasks, such as managing issues and feature requests in a project management tool.

How can I create an agent using the Langmith agent builder?

Users can create agents by describing their tasks in natural language, which the agent builder interprets to configure the agent.

What information does the agent builder need to configure an agent?

The agent builder asks follow-up questions to gather necessary details, such as which team to create issues for and how to distinguish between bug reports and feature requests.

What happens after the agent configuration is completed?

Once the configuration is finalized, the agent is created and can be connected to a Slack channel for operation.

How can I test the functionality of the created agent?

Users can interact with the agent through a test chat interface to ask questions and see how it retrieves and processes information.

How does the linear issue manager operate in a real-world scenario?

The linear issue manager automatically files issues based on messages in Slack, linking back to the relevant issues for team visibility.

What does the user interface for the agent look like?

The user interface includes a chat page where users can view conversations with the agent and monitor its activity.

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