So we think about Clay as finding, closing, and growing your best customers. And I would say for each of the verbs in that sentence, we have agents for those.
Welcome everyone. My name is Harrison, co-founder and CEO of LangChain, joined here by Jeff Barg at Clay. Jeff, do you want to introduce yourself briefly?
Yeah. Well, thanks so much, Harrison. I'm Jeff. I lead our AI team at Clay and I'm really excited to chat.
All right, so most people probably have some idea of what Clay is, but for those that don't, do you maybe want to give an introduction of what Clay does and maybe how they're using AI throughout it?
So Clay, we think of ourselves as the creative tool for growth. And really what that means is building any kind of growth idea in Clay. And what that looks like in practice is building lists of companies and people, enriching them with data points either through traditional enrichment providers or using AI for web research or data synthesis, etc., and then activating on those lists of companies and people, either for outbound campaigns or lead enrichment, lead routing, things like that.
So you guys were around well before AI came out. You were one of the first, I think, to embrace it. Do you maybe want to talk about why you embraced it and how early you embraced it and what that process looked like from the early days up until where it is now?
I think we started as effectively a chat completions wrapper, right? So people would use AI for summarizing long documents or, you know, writing outbound copy. And I think one of the things that we observed early on was people were actually using web research, so pulling down, scraping web pages and then deterministically using an AI to summarize or extract insights from those web pages. And so I'd say that we were quite early in actually launching Claygent, which is our AI web research agent.
And when did that launch?
It might have been mid-2023.
Okay. Yeah, so like right after ChatGPT kind of...
Yeah, so pretty early days in the kind of the GPT-4 era. And yeah, I think what was interesting about that was it was really a user behavior that we observed. So people actually kind of trying to wrap that into something that would actually do it autonomously, or agentically.
And so nowadays, if someone uses Clay, like how many different touchpoints are there with AI?
So we think about Clay as finding, closing, and growing your best customers. And I would say for each of the verbs in that sentence, we have agents for those. So we have an agentic search product to actually do TAM sourcing and find your best customers, to actually search through the web or search through our database of companies and people to find your best accounts, grow those accounts, so doing research or actually figuring out whether a company meets your ICP with reasoning and sort of doing that agentically, and then actually engaging with and closing those accounts, so either through a native sequencer or actually, you know, sending outbound messaging.
And what is the scale that you guys are operating agents at?
So I think what's super interesting, I think about AI within our product, is it's grown, of course, because the business has grown, but it's also grown more as a percentage of our overall actions over time. And today we're running around 300 million agent runs a month.
Okay. Quite large scale. And what is an agent run? How many steps does it take? How long does it run for? I'm sure it varies to some extent, but like what stats do you have there?
Yeah, it's grown over time as well. I think this is partly because of the underlying models, but also because of our architecture. Somewhere between, I would say, 10 to 30 steps on average, doing a mix of, you know, synthesizing web documents, actually searching the web, crawling different pages, things like that.
As you guys started building more and more of these agents and, you know, Clay turned from purely kind of like a software app into this software plus agent app, how did your development process change for building those agents?
We think about three things at Clay. So we think about the quality of the agent runs, so actually people care a lot about getting correct data and, you know, there's all sorts of idiosyncrasies about how people think about quality. But we think about quality, we think about throughput, so how many of these can we run in an efficient way, and we care about cost. And so I think we've used tools like LangSmith to really do offline evaluations of where we are in quality and benchmark those against kind of where we are in a cost throughput position.
How do you measure quality for these runs?
We have a mix of different methods. Some of the evals that we have are just purely factual, right? So just is the agent actually able to get the right answer and compare those against ground truth.
And is that like a programmatic match or, I imagine if you're doing research, you're kind of like compiling like a paragraph at least of like an answer. So do you use some like LLM-as-a-judge to score that? Or what does that look like?
We do, yes. So some of these are just, we look for deterministic matches and we structure outputs and sort of do it that way. And for some of these we do use LLM-as-a-judge. I'd say a lot of our Clay customers will also use these agents for combining both research and then actually synthesizing that research into a recommendation, whether that's qualification or outbound messaging. But you know, they're sort of doing, it's a multipurpose sort of agent.
When a new model comes out, and it seems like there's a new model coming out every week or something like that, what does your process look like to see if it's better, or we'll talk about cost later on, but what does your process look like to see if it's a good fit for your type of workflows?
I think Clay's position really is we're model-agnostic in some ways. So we do allow users to select their preference of, you know, model provider, and I think we're not really yet at the point where models are completely interchangeable or, you know, they do have different writing styles, profiles of the actual work that they can do, and I think users have come to learn that over time, right? So we have users that really prefer Anthropic models and users that really prefer OpenAI models for different things. I think our job is really sort of giving the right recommendations to users. And so for us, we have a metaprompter tool that basically automatically maps prompts to different models based on the profile that we think is best for that underlying question.
So when a new model comes out, do you add like a new mapping to that metaprompter tool? Is that what it looks like to support it?
Exactly. Yeah. And I think we use kind of evals to understand where we should be mapping those things and for what use cases those models are best for.
You've mentioned LangSmith a few times. How does that fit throughout the whole kind of like agent development process for you guys?
For us, LangSmith is, we really think about it in two ways. One is just profiling production traffic and understanding the patterns there, understanding if they're very different from what we expected or very widely across customers, things like that. And I think that, you know, LangSmith really helps us at our scale where it's impossible for us to know for every customer exactly what's going on.
And when you say patterns, is this usage patterns or cost patterns, or errors, latency, or all of the above?
All of the above, yeah. And I think something that's really important for us is being able to go to a customer level and understand what's happening. We get a lot of feedback from customers and it's really hard to know what's just happening on the ground, and LangSmith really helps with just like knowing, sort of, hey, a customer reports this, but here's what actually happened. I would even add to that list just sort of underlying quality, right? If someone, you know, if someone says there's a problem with the actual answers that our agents are outputting, being able to understand, like, was that a tool problem? Was that an inference problem? Just kind of where in the stack that actually fell down.
I think most people listening have some sense of this, but maybe to go into it, why can't you just know that before you go to production?