AI — is it an existential threat or an exponential opportunity? I asked ChatGPT this question and it said yes. But all kidding aside, I've been curious about this idea of what do people actually think about AI. So I posed this question to my online community and I asked, how do you compete with AI? And as it turns out, this sentence is deliberately ambiguous. So how many people, when they read this sentence — how do you compete with AI? — by a show of hands, you think, how do you compete against AI? That was the first thought that popped into your mind. Okay. And how many said, oh, how do you compete using AI?
Okay, this is interesting because the data supports this. So I ran an online survey yesterday on LinkedIn and here's basically how it broke out. About a third of the people thought about that kind of negative scenario, competing against AI, and two-thirds thought they were competing using AI. Now, this is online. This is not a scientific study, but it was still fun to see the data.
Hi, I'm Dharmesh. I'm the co-founder and CTO of HubSpot. And the T stands for technology, not talking. So this is not my natural habitat. Just want you to know that I spend my day job basically building things with AI, thinking about AI, and sharing things I've learned about AI. And my night job is building with AI, thinking about AI, and sharing what I've learned about AI. Some of you are thinking, Dharmesh, you should probably get a hobby. Yes. And I haven't tried pickleball yet. On the list, they say it's like tennis for people that think running is overrated.
Perfect for me. I think that would be awesome. All right. So, now, as you can probably tell, I am in love with AI. Not in a frightening romantic way like the movie Her, and not even in a friendly platonic way like the movie Big Hero 6, but more in a geeky, systematic, algorithmic kind of way. So I love AI for what it helps me do. And what I do is create software. And AI has raised the level of abstraction for software developers everywhere. So now I can solve a much broader class of problems than I've ever been able to solve before. Here's the story of how I fell in love with AI. It goes way back to 2 BC. And by BC, I mean before ChatGPT — you know, the dark ages when we had to Google things ourselves.
So, picture me in my natural habitat. I'm working at home in my pajamas, click-clacking away on a mechanical keyboard that sounds like it was designed in the 1900s, largely because it was designed in the 1900s. And I'm doing the thing that I do, clicky-clacking away, and I get a message from Brian Halligan, who's my friend and co-founder of HubSpot. And Brian asked, "Desh, want to join me on a call?" And my immediate reaction is, "Wait, what?" Because as an introvert, I hate phone calls with the heat of a thousand suns.
And my friends and my family know that the absolute best time to call me is email. The second best time to call me, also email. Anyway, so back to the call. In this case, I said yes. And the reason I said yes was the call was with Sam Altman, the founder and CEO of OpenAI. And they had just gotten started and they were working on this new AI technology based on Google research called GPT. They didn't have like an application. There was no user interface. All they had was an application programming interface built for developers like me to embed AI into their own applications. So shortly after the call, late that night, I got early access to the GPT API and I coded a simple application just to test out the API and I had my first conversation, first real conversation with AI. It was love at first chat.
The fact I could have a natural language conversation with software was just game-changing. And I had attempted to do this for 20 years in prior attempts and this was the first time it actually felt real. And this was not even ChatGPT. This was two years before that. I was wholeheartedly humbled and I became a boy standing in front of a journey of pre-trained transformers, hoping he would love him. So over the ensuing weeks and months I spent many quiet, contemplative nights pondering what this all meant. What had we just unlocked? AI is possibly the most powerful tool that humanity has ever created.
All right, so now you're wondering, all right, that's all very highfalutin, but what does that mean to me? And that's why we're here. So, I'd like to try and answer three questions. One is, how does AI actually work? Because by understanding some of the basics of it, I think you can extract more from it and it will also reduce your anxiety if you're feeling some anxiety. What should you do with it? What have I learned about working with AI within the company and helping advise a bunch of startups and other people? And then finally, where do I think things are going from here? It's all about transforming you into the U that's powered by AI.
All right, so let's talk about how AI works. We're going to decompose the GPT that you've probably typed in a thousand times. It stands for generative pre-trained transformer. So just decompose it. The G stands for generative, and this is the technology that's used to create the large language models that power things like GPT. And the reason generative is so important is because that's what allows the AI to actually create things — to generate text, to write an article, to write a limerick. This is the first time we've seen software reasonably be able to do that. And that's why this age of AI — because AI and machine learning have been around for decades — is called the age of generative AI, because for the first time we can actually generate things. Now, some experts in the field who are brilliant have sort of dismissed large language models as being glorified autocomplete, which I will concede is the truth, but it's not the whole truth. There's much more to it than that.
All right, so let's dig in. So let's say we pass a large language model this sentence fragment: the horse jumped over the blank. What the large language model is programmed to do, designed to do, is predict the next token. The token is just an aspiring word. It's just a term geeks use. We can think predict the next word. And what it does is based on a neural network, based on all this AI software, it comes up with a probability list of here are the likely words that come next based on what you just told me. So here it's saying about a 45% chance that the word fence would fit in here. There's no perfect answer, but this one is the most likely it thinks to be correct.
Now, the cool thing is, so we can do that, but we can keep calling the LLM recursively. So we can just take the sentence it passed us and pass it back in, and it would generate the next word and the next word and the next word for as long as we want to go. And that's why the large language model, which still does one word at a time, can write a 1,200-word article on whatever topic you choose. It's just looping through that construct, predicting the next word, predicting the next word, predicting the next word.
Now, let's tackle the pre-trained transformer part. I'm going to focus on the pre-trained because transformers make my head hurt. Here's how it works. So, there's this process called pre-training. And it takes months and months, but I could not miss the opportunity for a good movie reference. It's the little things in life. So, imagine this made-up fictional machine. And the machine has a bunch of knobs on it. Like a bunch of knobs that you can turn up or down. Billions and billions and billions of these knobs, like a stereo from the 1980s. And the purpose of the machine is that it will take some text in and it will attempt to predict the next word as its output. That's what it sends out. That's what the machine does.
And in order for it to be able to do that, it goes through this pre-training process. And here's how that works. The AI companies collect all publicly available knowledge on the internet — every web page that ever was published, all of Wikipedia, all of Reddit, everything that it can find — and then it will take chunks of that, pass that text into the large language model, into the machine, and then say, did I get it right or not? So, if we pass in the horse jumped over the blank, and it doesn't guess correctly, it'll go back, and the system will say, I'm going to tweak those billions and billions of knobs until I get the right answer. So, it's optimizing for accuracy.
Now imagine it going through that process of putting an input in, seeing if it's right or wrong, tweaking knobs and dials, happens billions and billions of times over the course of many, many months, spending millions and millions of dollars. That's what results in the large language models that we use in products like ChatGPT. In theory, a large language model is an autocomplete, right? That's what it's doing. But it's like an autocomplete with a PhD in everything, right? It has built this world model trying to understand language and all the things that it has. In order for it to solve for that accuracy, to be able to predict the next word, it needs to know a fair amount in order to be able to do that. That's why it feels much more magical than a simple autocomplete.
Okay, so LLMs are awesome. Love them. But there are some problems. So LLMs are limited to whatever data they had at the time they were going through pre-training. So it's like hiring an intern that has a PhD in everything. Very, very well read. They show up on the first day of the job and they know nothing about your business. They don't know how any of your internal IT systems work. They don't know where the coffee room is. They know nothing because that was not part of their pre-training. That's not what they had studied. So that's problem number one.
Problem number two is that the data that's embedded inside the LLM is frozen in time. So in that hypothetical intern example, even if they had read your company's website, maybe they read it six months ago and things have changed, it's not going to know about any changes after that pre-training date. Problem number three is large language models sometimes hallucinate. And that's a fancy, highfalutin word for they make things up. Now, they're not trying to mislead you. They're like that friend that is so confident that they don't know they're wrong. We all have one of those friends. Some of us are one of those friends.
So, let's talk about what you should do with AI. So, I'm going to start with what you shouldn't do about AI, which is dismiss it, restrict it, ban it in your household, in your team, in your company. So, there was a time when people said, "Don't use spellcheck. Use a dictionary and you'll learn how to spell better." Then they said, "Well, don't use the internet. The internet has mistakes." Shocking. And now we will have people that say don't use AI because life is supposed to be hard.
I guess we're speaking of a hard life. So I'm originally from India. I was born in a tiny town in the state of Gujarat in India. Shout out to my fellow Gujjus out there if there are any. There are — I know there's like hundreds of millions of you. But in my house growing up we had no phone, no TV, no refrigerator. And so our milk was delivered daily. So it was like cow-to-table, right, like before it was fashionable to do those kinds of things. Now I'm going to contrast that to my son. So this is him when he was two years old beta testing the latest iOS, and he learned to swipe before he learned to wipe. Like, no AI, seriously, lol.
So my advice is to be careful but to stay curious. So, at HubSpot, we have 8,000-plus employees and we not only encourage them to use AI, we expect it. We invest in it. We help educate. When we're doing hiring, it's a signal that we look for. You don't have to be an AI expert, but you at least have to be curious and have an eagerness to learn it. So, one thing I've learned is that getting AI adoption isn't a walk in the park. It's a hike up a hill. There's going to be resistance. And the way to make progress is to dream big. You have these big, lofty ideas of what you can do with AI. But my advice is to iterate small, try small experiments, try little things, and move forward.
Let's close with what's going on right now. The first big advancement is now we can give AI access to tools. So, it can use a web browser. It can use your internal IT systems if you give it access. And it's going quickly from being this kind of system of interaction where you just type back and forth to a system of action. It can actually do things on your behalf. Now, GPT has been great for creating things for humans — text, audio, video — but where we've seen the steepest advance, the fastest progress, is AI generating things for computers, namely generating code. And this is a massive development because now if you have a problem — a business problem, a science problem, an academic problem — if you can kind of state your problem in terms of code, like I wish software existed to do X, and if you can just describe that, there is a good chance that AI is going to be able to generate that product in a thing called vibe coding your way through.
All right, so those are all exciting developments. What's the most exciting is all these things coming together in this new thing called AI agents. We're not going to spend a lot of time on agents. The simple definition is AI agents are software that does things that require multiple steps. It's just AI software. Now, here's a concrete example. I had to squeeze one visual joke in there. It's in my speaker's contract. Here's an AI agent example. We could ask for an AI that says, "Go look for new videos from my CEO and founders. Generate the transcript. See if it's relevant. Summarize and send me an email." So, the agent can go through multiple steps, work on your behalf behind the scenes.
So the thesis is that tomorrow's teams are going to be hybrid. It's going to consist of both humans and AI agents working together to accomplish whatever the goal of the organization is. Now, this is the most often quoted thing when people say, "Oh, is AI going to take my job?" And the answer is AI won't take your job. Someone using AI will. I think about it a little bit differently. I would assume that AI will take your job and give you one that's much better, with much less rote work, much more help from digital assistants, so you can focus on the things that matter most. And the thing to remember: as humans, we are more than the sum of tasks that we do. I get AI help on all sorts of things. Am I less valuable as a human than I was before? I don't think so. I think I have more impact. I think I'm more valuable. I think that applies to all of us.
Back to our original question. Is this an existential threat or an exponential opportunity? And I think this is not a case of you versus AI. This is a case of you to the power of AI. It's an exponential amplifier. Closing thought as you walk away, my advice to you would be: ask yourself anytime you do something, you're sitting at the computer about to start something, ask yourself, how might I use AI to help me with this? Put aside the skepticism, just type something into ChatGPT or your favorite tool of choice and see what happens. Just start learning by doing it and give it a shot at it and you'll be surprised how often it works.
And the thing to remember is that — and this is a really beautiful irony — is that the better our artificial tools get, the better AI gets, the more human it allows all of us to be. We're spending more time on the things that make us human, because human is not a bug. It is the ultimate feature that we all have. Thank you.