# Notion's Agentic Evolution: Building the Software Factory

**Podcast:** Latent Space: The AI Engineer Podcast
**Published:** 2026-04-15

## Transcript

Broadly speaking, I'm really bullish on CLIs.
I'm still bullish on MCPs in a certain environment.
I think it's really great for when you want like a narrow lightweight agent.
I think there's definitely a lot of use cases where you don't want like a full coding engine with a compute runtime.
And also you want it to be like more tightly permissioned.
MCP inherently has a really strong permission model.
Like all you can do is call the tools.
MCP is just like the dumb simple thing that works and it but it's pretty good.
Notion is dedicated to being the best system of record for where people do their enterprise work.
So we will always support our MCP insofar as other people are using MCPs.
Regardless of our perspective, we've put a lot of effort into our MCP, and we have a fantastic team that we're building.
Hey everyone, welcome to the Laden Space Podcast.
This is Alessio Fundro.
And I'm joined by Swix, editor of Laden Space.
Hello, hello.
We're back in the beautiful studio that Alexio has set up for us with Simon and Sarah from Notion.
Welcome.
Thanks for having us.
Thanks for having us.
Yeah.
Congrats on the launcher.
So the custom agents finally gets here.
How's it feel?
We ship things slowly.
So it had been in alpha for a little bit.
And at the point at which is it's an alpha, there's a group of people that are making sure it's ready for prod.
And then there's a group of people working on the next thing.
So sometimes some of these launches are a bit delayed satisfaction, so it's quite nice to remind yourself all the work you did because we do have a habit of being two or three milestones ahead, just because you have to be, other you can't get complacent.
But it's been great that people understood how this is helpful.
And I think that's just easier in general building AI tools today than it was two, three years ago.
People get it.
And so that user education, there's just it was our most successful launch in terms of free trials and converting people and things like that.
It was really successful.
So yeah.
But there's a lot to build.
Making it free for three months helps.
Yeah.
It was it was definitely super exciting for me because it's probably the fourth or fifth time that we rebuilt that.
Yes.
And you've been building this since 2022.
Yeah, it was even right when we got access to GPG4 in late 2022.
Okay, let's make an agent.
We use the word assistant at the time.
There wasn't really the word agent yet.
But oh, we'll give it access to all the tools that Notion can do, and then it will run in the background, do work for us.
And then we just tried that many times, and it just was too early.
I need to force you to like double click on that.
What is too early?
What didn't work?
We were fine to like before function calling came out.
We were trying to fine-tune with the Frontier Labs and with Fireworks, like a function calling model on Notion functions.
This is right when I joined.
I joined because we needed a manager.
Simon was needed to be able to go on vacation.
That's around when I joined.
So you can speak much more to it.
Yeah, we did partnerships of both M4P and OpenAI at different times to try to it at the time.
The when we first tried, there wasn't even a concept of like tools yet.
We designed our own like tool calling framework.
And then we tried to fine-tune the models to to use it over multiple turns.
And because it didn't work well out of the box.
I think, yeah, the models are just too dumb and the context length was also way too short.
Yeah.
And yeah, we just banged our head against it for a long time.
Unfortunately, it was always like there was always like glimmers that it was working, but it never felt quite robust enough to be like a useful, delightful thing until I would say the big unlock was probably like Sonic 3.6 or 7 early last year.
And that's when we started working on our agent, which we shipped last year, and then a custom agent's kind of a similar capability.
And that one just took longer because we just wanted to get the reliability up a lot higher because it's actually running in the background.
And the product interface of like permissions and understanding this custom agent is shared in a Slack channel with X group of people and has access to documents that are serviced to Y group of people and the intersective X versus Y might not be whole.
And so how do you build the product around making sure administrators understand that permissioning took multiple swings?
Everything is hard back at the end of the day.
Yeah.
I'm curious like when the models are not working, how do you inform the product for the map of okay?
We should probably build expecting the models to be better at some reasonable pace, but at the same time, we need to you had a lot of customers in 2022.
It's not like you were a new company with no user base.
Yeah, I mean, I think there's always the balance of like you want to be AGI pilled and thinking ahead and building for where things are going, but also you want to be like shipping useful things, and so we always try to like keep a balance there.
We we try to take like a portfolio approach.
We're always working on multiple projects, and we're always trying to work on maintaining things where the already shipped, like shipping new things that are like eminently working well and make them really good.
And then we want to always have a few projects that are a little bit crazy.
Yeah, what are the AGI peeled projects that you have today?
I'm curious about uh the you don't have to share exactly what you're working on, but I'm curious what are things today that maybe in 18 months people would be like, Oh, obviously, this was gonna work.
18 months, yeah.
Yeah, 18 months is it's a long time, and yeah.
There's a number of things happening.
I think one thing that's becoming more clear is I think the coding agents are the kernel of AGI.
Everything is a coding agent.
I think that that's one one direction.
And then yeah, the exciting thing about that is your agent can bootstrap its own software and capabilities and actually debug and maintain them.
And so yeah, we're thinking a lot about that.
And then yeah, like another category of things other I'm really excited about is we call the software factory.
Also, people are using this this sort of word.
Basically, it just means can you create like a as automated as possible, a workflow for developing, debugging, merging, reviewing, and maintaining a code base and a service where there's a bunch of agents working together inside, and like how does that work?
If you think back to your initial question, like why did this take so long?
I think something notions I didn't say that, but yes, okay, go ahead.
Why what changed over the three and a half years of trying it?
Because most people always say it didn't work yet, then reasoning models came, then it worked.
I was like, okay, let's go a little further.
I mean, that's part of it, but I think the other part of it that I actually think is really what will set notion apart for every new capability is we have two skills that are crucial when it comes to frontier capabilities.
One is not letting yourself swim upstream.
So, like quickly realizing if you're just pressing against model capabilities versus not exposing the model to the right information, not having the right infrastructure set up.
That in and of itself is a skill of intuition.
And then the second is to see okay, you're not swimming upstream, which direction is the river flowing, and what is like how do we think ahead about the product and start building it even if it's not great yet, so that when it is there, we're ready for it.
And like those can sometimes feel like counterintuitive things.
Like we can be trying to fine-tune a tool calling model when they don't exist yet.
And the the trick is to not do that for too long, but realize that there was something there.
And we've had a lot of things which like we're just like not swimming in the right direction with the streams.
I think we had multiple versions of transcription before we got meeting notes, right?
Oh I gotta talk about that.
Yeah.
Yeah.
I I think that like we we really closely partner with the frontier labs on capabilities, and we also have to have strong conviction on as those capabilities move.
Notion is about being the best place for you to collaborate and do your work.
And how does that narrative change if the way that we work changes?
Yeah, yeah.
You told me you were a fan of the agent lab thesis.
And this is I show that thesis to so many candidates.
Like I have it as my Chrome autofill at this point.
Like it's one of my most visiting.
Is this the here's why you should work in Notion and not opening AI?
Here's what's different about it.
Yeah.
And here's why it's not just a wrapper.
I actually think more and more people understand it's not just a wrapper.
And by the way, like in the beginning, parts of what we build are wrappers on functionality that works well.
But that's not really the most I would say that's not the product that that drives revenue, and that's not necessarily always what users need.
Notion is the AWS wrapper, but like the wrapper is very beautiful and like very well polished.
So, like the analogy that I've been coming back to is data dog and AWS.
Yeah.
Data dog could not exist without cloud storage.
That it's fundamental that works.
And AWS has the cloud watch product, but data dog is an expert on understanding how people want observability on the products they launch, and we're experts on understanding how people want to collaborate.
And that's really where our expertise lies.
Totally.
Regardless of the tools that we use.
I'm curious how you think about implicit versus explicit expertise.
I feel like data dog is half and half implicit and explicit.
It's like they understand across markets and industries what engineering teams usually look for.
With Notion, it's almost like more of the expertise is at the edge because you as a platform, you're like so horizontal that the end user is not really the same.
But like the end user is always an engineering lead, a kind of like SRE related person.
With Notion, it can be anything.
So I'm curious how you put that expertise into a product versus obviously AWS cannot build Notion.
That's that doesn't quite work in this case, but it's a little bit differently shaped.
I think a classic vertical SaaS, like the data dog is kind of like that.
They understand their individual customer very deeply.
It's kind of a narrow slice.
Notion has always been super horizontal and our task has always been to balance these two somewhat opposing forces of we're listening to our customers and what they want us to build.
It's a broad slice.
And then also we're thinking about okay, how do we decompose what they want into the nice primitives that are really nice to use and will get us like as much bang for the buck as possible and then maintain the whole system, make it all like super clean and nice to use.
We still have user journeys.
We still focus on like core I I actually think the failure of our team is when we focus too much on what are cools that are what are tools that are cool tools.
I actually think that's when we make have the least velocity because you still need some sort of focus on a user journey.
So, like for instance, we'll all sit down every Friday and look at the P99 of the most token exhaustive custom agent transcript and just look at why it didn't do well and cut a bunch of tasks.
Like we still focus on this has like this should work.
Email triaging should work, right?
And similarly, like when we're talking about before building chatting before we started filming about okay, how can I do PDF export?
That's functionality that then merits maybe we should build a tool that has access to a computer sandbox and a file system and the ability to write code.
But it's because we're thinking about the fact that our users to do their daily work need to export PDF not because we're like, I think a computer tool could be cool.
Let's just see what happens.
Like we we have to focus on some user journeys, otherwise we just don't have enough strategy to to prioritize.
I think there's a lot of like really strong opinions that you've had.
Do you have like like a towel of Sarasaks?
Like what how do you run your team?
Like I feel like you just have accumulated all these strong opinions.
Obviously, part of this is your token town thing.
I think the tow of working with Sarah Z is you have to it depends if you ask.
I think it depends if you're on my team or a partner or a vendor.
Yeah.
There are people want to run their teams the way that you're you're you're like these things.
And then also similarly, no Simon, when you did the custom agents demo, you had we've been using custom agents, and here's the super long list of everything that we do.
No humans ever read it.
That's what you said.
I was like, Yeah.
So I think for me, something that I learned very quickly and became very comfortable with was that my job was not to be the ideas person or the technical expert.
My job was to make it so that everybody understood the objective, had a resource to help prioritize what they should work on and had an avenue to prioritize what they thought was important.
And I think that's true with all leadership, but I think especially on the AI team, almost all of our best ideas come from prototypes from people that have a cool idea because they saw a user problem.
And it's a huge disservice if all of those ideas have to pass like the sniff test of what me and a product partner or Simon and Ivan decided were the direction, right?
Because a lot of what we're doing is leaning into capabilities.
So I think that's the first thing is I don't really view like the role of engineering leadership as hierarchical, nor has it ever been, but especially now, like very willing to change direction based on like proof is in the pudding.
And I think we have rebuilt our harness three or four times.
And when you do that, then the second rule of engineering leadership is like you need to build a team that's comfortable deleting their own code and is very low ego and is driven by what's best for the company and doesn't write design docs because they think it's their promotion packet.
And that's a culture that Notion had long before I joined.
But like our willingness to just swarm on different problems and redo things that we've built before because something has changed.
There's a lot of friction that can happen at companies when you do that, and it doesn't happen at Notion.
And because it doesn't happen when new people join, like they don't want to be the ones that are saying we shouldn't do this.
I wrote that code.
So then it's you create a culture that everyone adopts.
And that culture comes directly, I think, from Simon and Ivan, though, because they're very open minded.
Anything you'd add?
I'm not a manager like Sarah's.
A lot of my role is really to try to think a little bit ahead, make sure that we're building on the right capabilities and then like prototyping stuff.
And yeah, it's really critical to always just be starting again.
Okay.
This is a new thing.
What does this mean?
What if we just rethoug everything throughout everything?
And I basically just doing that in a loop every six months.
Yeah.
Do you believe in internal hackathons for this stuff?
I think there's two different versions.
So one is we just have a solid bunch of senior engineers that come and go on what we call the Simon Vortex and productionizing what we've built, right?
Because when you're in the Simon Vortex, the velocity is super high, the direction changes daily, and it's meant to be like the equivalent of a Scuckworks lab.
We don't need to do hackathons for that.
We need to have senior engineers that we trust to come in and out of those projects.
For instance, like management boundaries are really loose.
Like you report to him, but you work for her right now.
Like that is something that when we hire managers, it's important they don't care about because we tend to form or structures.
Yeah, don't be too territorial.
We form org structures after we ship things, not before, just historically.
The second thing is we do have company-wide hackathons.
Actually, we just had our demos day for the hackathon we had last week this morning.
That's more for people that aren't directly working on the project, feeling like they have the time to pause and learn how to make themselves more productive or how they would use Notion Custom Agents to build something, or part of the hackathon was actually encouraging everyone across the company to build their own agentic tool loop, calling from scratch, following like in every blog post on how to do it, I think.
Because we want to get the compound engineering one.
Yeah.
We want everyone to use cloud code in the company or whatever the coding agent they please and understand that fundamental.
So we set aside a day and a half.
We're all leadership encourage everyone on their teams across the company to do it.
So we have hackathons like that.
I would say, like, facetiously, like everything we build is a little bit like a hackathon until it graduates and puts on big boy pants and as a product ops roll out later and has like assigned data scientists and stuff like that.
But security review, enterprise stuff.
Actually, security review is one of the things that we bring in first because it just slows us down way more and causes a lot of tension, and they build better product if they're involved early.
That is probably the first person to get involved in something.
The right PR approved answer.
No, but it's not just PR approved, it's like star tissue.
Yeah.
Because my background's also, I worked at Robin Hood for a number of years.
So compliance and things like that are a little bit more you learn the hard way when it doesn't come naturally.
Yeah, I think the the hackathon is really important for uplifting the general population.
But if that's the only way you can build new things, your toast, it has to be like the daily processes building these new things.
And it has to be about, I think I think in the AI era, a lot more leverage accumulates to the most curious and excited people.
And so it's like we're all about just like activating that energy.
If someone's prototyping something on the weekend that they're excited about, and it's important, that should be the main thing that we're doing.
Yeah, it's not a hackathon that we're scheduledule once a quarter, it's just a daily process.
That's how we shipped image generation and notion now.
It was always this thing that would be nice to have, but it wasn't really clear where that was necessarily aligned in product priorities, it'd be a lot of work.
And we had someone on the database collections team, Jimmy, who was like, I really want to do image generation for cover photos and inside Notion.
And we're like, if you want to build it, like it's do it, please.
Like we encourage you.
We gave them all the resources of working directly with Gemini and being able to track the token usage and it goes working through our endpoints.
We gave them email support, everything, and then it became a full project.
Yeah.
That's why you can't have like ego as a leader.
That's how we work.
What's the size of the team today, both engineering and overall?
I manage the team that's what we'll call like Corey capabilities and infrastructure.
That's about 50 people.
But then we have I partnered teams that do packaging.
So how it shows up in the corner chat versus custom agents versus meeting notes, that's another 30, 40 people.
And then every team that has a product service at Notion that a user can interface with owns the tool that the agent interfaces with.
The editor team.
The team that did CRDT for offline mode is the same team that handles how two agents edit competing blocks.
It's the same problem.
The team that built the underlying SQL engine is the same team that owns how the agent asks it to run a SQL query and it does it performantly.
And so from that regard, anyone working on product engineering is tasked with making them work for customers that are humans and agents.
Because over time, a majority of our traffic will be coming from agents using our interface, not humans.
And our objective is to make it so that the whole product org is building for agents.
Yeah.
How does it changed internally?
The activation bar is lowered a lot.
Like anybody can create a prototype very somewhat easily, especially if you're like an existing code base.
Have you raised the bar on what type of prototype people need to bring forward to gonna be taken?
Not like seriously, but I think the bar is lowered in many ways.
Like one thing of our team build that is really cool, is our our design team made a whole separate GitHub repo called the design playground.
And it's basically just they create a bunch of like helper components and you for quickly throwing together UIs, and it's become like actually quite sophisticated, like it has Asian in there, and that's pretty fun.
So we pretty much they don't do mocks, they just make like full prototypes.
Here it is, it works.
They give you a like a URL, and they're like, okay, so we have to make their like the real production version of that.
And then for engineers, a prototype looks like just making it a feature flag that actually works.
That's a bar.
Something to understand that's really unique about Notion.
One of the reasons I joined we're super lucky is no one uses Notion in their job as much as people that work at Notion.
Of course.
So I think there's very few companies.
Maybe if you worked on Chrome, I guess, but like everything that we ship internally first and get a lot of really quick feedback, and also sometimes our dev instance is totally bored, and you have to change a bunch of flags to get things done, and that's but everyone.
So people that do it ticketing, people that do supply chain procurement, recruiting, everyone is using the same instance of Notion with a lot of flags on for these prototypes people build.
I mean, so we have this Brian Levin, one of the designers on our team, I think evangelized this concept of demos over memos.
Oh which has been very good for building demos, and I think it's put a big pressure point on us to have really strong product conviction.
Because if anything can be demoed, you really need a strong filter of making sure that if you're doing X amount of work, you're making the you're focusing on one tower.
You're not just building a really flat hill.
That's actually where I think there has to be more conviction from our PMs and our designers, the company really to have conviction of what journey we're going on.
But overall, I feel like it works pretty well.
Like people almost all the engineers have good enough taste to realize that this prototype doesn't actually make sense in the product or it does.
So it's not that common that I would see a prototype, it's like, oh, this makes no sense.
It's like people are doing reasonable things, and then it's just a matter of which things we build first, and then often just figure out how to turn it on and off.
There's like art in the in our like experimental chat UI, there's this there's probably like a hundred checkboxes in there.
But I think that okay, so that is true, Simon.
But like being the person that manages the evals team, like there is a level of intensity that it adds to the platform team.
But if we're gonna do image generation in Notion, all is that in the way that we do attachments and the way that we our LLM completion, like Cortex talks and expects tokens back, and now it's getting images back.
There's a lot of platform work that we do need to solidify a little bit.
So sometimes it'll be in dev for a couple weeks before it makes it to prod, just because we still have to like make it robust, make it HIPAA compliant, ZDR compliant, figure out the right contracting with the vendor, whatever it is.
And we need to eval it because we want the team to still maintain what they build.
That's the one thing.
Is if we have invested a bunch of people in an eval and model behavior understanding teams that we call it agent dev velocity.
So your dev velocity building agents can't just be like a small group of people that then maintain whatever in prototypes.
And so we have a whole org dedicated to agent platform velocity so that you can build your own eval and then maintain it once you ship it.
So if a new model release comes out and we're every team maintains their own eval, we maintain the eval framework.
Every team owns their own evals, and a lot of them we've integrated to opt into CI, or we run them nightly, and we have a team, a custom agent that triggers to a team to look at the major failures.
That's really critical because if we have all these different services, now a lot of it's on the same agent harness, so it's easier to maintain.
It's just packaging of different agent harnesses, but new functionality of the agent.
Let's say that like we want to update, like they deprecated Sonnet 4 or whatever it is.
And we need to auto-up.
That's so good.
It wasn't that long ago.
They were just 3.5.
3.5 is 3.7 just got deprecated.
No, it's not 5.25.
Yeah, because no.
Yeah, yeah.
5.4 is 40% more expensive than 5.2.
So if they deprecated 5.2, you would hear you would hear from me about that one.
But another conversation to have.
I have a cheeky eval's question for you.
Have you noticed any secret degradation from any of the major model providers?
Secret degradation during the web day, when it's high traffic, it suddenly gets too much.
Yeah, not just between the we definitely notice flakiness.
We've definitely noticed, particularly for some providers, that things are slower during working hours.
And that's a latency argument, not a quality argument.
No, I think the quality difference that's interesting is even though companies that say they're selling the same, it's really into like quantize quantization, but like companies that say they're selling the same model through different vendors, whether it be through first party or bedrock, Ashgra, et cetera, would you see different qualities sometimes?
And that's not necessarily what's advertised.
Yeah, QNE went to the point of if you we they shipped like this like eval across all the providers, and it was like very obvious who was secretly quantizing, and it was we hire subprocessors to figure that out for us.
So we just want to understand where it's regressing or where it's optimized.
And sometimes we're okay with regressions that optimize latency if they're the appropriate regressions.
Our job is to make sure we have the evals to understand the changes that are important to us.
And even like when we're partnering with labs on pre-releases of models, they'll send us multiple snapshots.
And this is less about quantization, but more just regressions.
Like they have shipped models that were not the snapshots that we wanted, and they have changed the snapshots that they shipped based on the feedback that we give because our feedback tends to be more enterprise work focused and not coding agent focused.
And definitely those can be bummers.
We know that this wasn't the version you wanted, but we'll help you make it work.
We always make it work, but that definitely happens.
Yeah.
Do you have failing evals that you're just hoping that we'll have success eventually when a good model comes out?
Yeah.
So I think I could talk about this for 60 minutes, so I will limit myself.
I think it's a real issue when people say evals.
And it's just like that's quality.
That's like a unit.
It's like saying testing, it's not just unit tests.
So we have the equivalent of unit test, regression tests, those live in CI, those have to pass a certain percent within set some stochastic error rate.
Then we have, as you're building a product, evals of these aren't passing right now, and this is launch quality.
So we have a report card, and we need to on these categories be at 80 or 90% of all of these user journeys to launch.
And then what we have, what we call frontier or headroom evals, where we actively want to be at 30% pass rate.
And that's actually been an effort that we took in partnership with Enthropic and OpenAI in the past maybe two or three months because we actually hit a point where our evals were saturated and we weren't able to really give insightful feedback other than it wasn't worse.
And not only is that not helpful for our partners, it's not helpful for us to understand where the stream is going, going back to that analogy.
And so we spent a lot of time thinking about what Notions Last Exam looks like, right?
Not just humanities last exam.
Notions last exam.
And there's a lot of dreams about what that would look like.
I know we've talked a lot about benchmarking Swix, but yeah, Notion's Last Exam is a big thing inside the company, and we have people full-time staff to it exclusively.
We have a data scientist, a model behavior engineer, and an full-time evals engineer just dedicated to the evals that we pass 30% of the time.
What you're hiring for, MBEs.
I am hiring.
What is an MBE?
A model behavior engineer.
Model behavior engineers started with a titled data specialist before I joined when they were working with Simon on Google Sheets.
And Simon just needed someone to look through Google Sheets and say, yes, no, this looks bad.
This looks good.
And so we hired people with diverse linguistics background.
We had a linguistics PhD dropout and a Stanford compilate new grad.
And they're amazing.
And they formed a new function, basically.
And over time we've built a whole team with a manager who's now reinventing what that role is with coding agents.
So they used to be manually inspecting code.
Now they're primarily building agents that can write evals for themselves or LLM judges.
There's a really funny day.
I can send you the picture where Simon about a year and a half ago was teaching them how to use GitHub and they're on the whiteboard and it was like, okay, I think we'd be so much faster if our data specialists learned how to use GitHub and learned how to commit these things into code.
And that was then, and now I think coding has been a lot more accessible.
But moving forward, it's this mix of like data science test, PM, and prompt engineer, because there's craft in understanding like even what models can and can't do things.
How do we define like that headroom?
How do we define like what a good journey is?
Is this model better or not?
Why is this failing?
There's some qualitative work, but then there's also like a lot of instinct and taste to it.
And that's not necessarily software engineering.
And so we have like very firm conviction, and we have had for a number of years now that is its own career path.
And we have always welcomed the misfits, so to speak.
So we really firmly believe that you don't need an engineering background to be the best at this job.
And that's what's quite unique about this particular role.
Yeah, this is something that I've been pretty excited about recently is we made an effort basically to treat the eval system as like an agent harness.
So if you think about it, you should be able to have an agent end-to-end download a data set, run an eval, iterate on a failure, debug and then implement a fix.
And ultimately you should be able to drive the full antenna process with a human sort of observing the the outer system.
So yeah, we went pretty hard on that.
That's worked extremely well so far.
It's like basically just to turn it into a coding agent problem.
You're a coding agent or just whatever harness agent to ask.
It should be totally general.
Yeah, I think it's it would be a mistake to fix it on any particular coding agent.
At the end of the day it's just like CLI tools.
It's like the same way that you would have a coding agent write the unit test, you should have a coding agent write the eval.
Yeah.
But there's a lot of supervision in that still.
We just don't believe that supervision has to come from software engineers because a lot of it is UXRE and whatever.
And these are the people that also triage failures and tell us where we should be investing next.
Yeah.
I'm gonna go ahead and ask a spicy question.
Is there data no software engineers at Notion?
What does it mean to be a software engineer?
Exactly.
I think the way things are going is like we're on some continuum where if you look back three years ago, humans were typing all the code, and then we had autocomplete you're typing lists of the code.
Then we had like filling agents filling lines, and now we're getting into like agents doing longer range tasks where you can debug and implement a fix and then verify it works and get your PR even like merged and deployed.
I think we're just moving up the abstraction ladder, and then the human role becomes more about observing and maintaining the outer system.
There's a string of agents flowing through merging PRs.
What's going off the rails?
What do I need to approve?
Is there like a learning or memory mechanism that works?
So it's a hard engineering problem.
There's a there's a lot to do there.
I think we're just c moving up the stack.
The same transition machine learning engineers have made.
Like I haven't looked at a PR curve in a while.
Yeah, you used to do this stuff and now auto research can do it.
Right.
Like I think it depends on what you define as a software engineer.
Yes.
That's changing for sure.
I think every software engineer at Notion this summer went through like this sheer, one of our engineering leads of the company called it.
Like every software engineer is going through the identity crisis that every manager goes through, where all of a sudden they realize their ability to write code is less important than their ability to delegate and context switch.
And I think that is a transition out of being a software engineer.
But there's a critical difference to being a manager, which is that it is actually very deeply technical.
The problem of humans are very like fuzzy, and you you can't treat a team of humans like a rigorous system where PRs flow through and can be in like a block status, and then what happens when they're blocked with a set of agents, you actually can do that.
I think it's actually that there's a lot of interesting technical rigor that goes into that.
It's like it's a technical design problem ultimately.
What is the design of the software factory that you're building?
Yeah, I think we're trying a lot of different things.
Ultimately, you want to design a system that requires as little human intervention as possible, but like still maintaining the invariance that you care about.
So yeah, we're exploring a lot of different ideas there.
I think I can talk about a few things I think are important there.
One thing I think is really important is having some kind of like specification layer.
You can just commit markdown files.
That works pretty well.
But it's nice to be notion, man.
I'm just saying like the spec, like yeah, the natural home for specs is notion.
Yeah, it can be a database of pages.
Yeah, it needs to be something that is human readable and imbuable.
And I think that's pretty key.
Another really key component is like the self-verification loop.
Yes, you need a really good testing layers basically.
And that's a really deep problem, but we're getting that and then it's kind of like the workflow of what happens when there's a bug.
How does it flow into the system?
Is it like a subagent working on it?
How does it make a PR?
And how does it get reviewed and merge?
And then so there's like the flow of process.
Yeah, cool.
One thing we didn't work out before you guys came in was this demo or this agents.
Agent demo so uh every time we do an episode, we tried a product, right?
I don't think there's ever been an episode that I haven't tried.
Try is a big word since day one, latent space has been on Notion.
But this is the next this is the menu thing.
Yes.
So this is for kernel labs, which is the space we're in.
So next week we're opening applications for tenants.
So there's a web form.
Let me we have this form done here.
Before the word for it would be I get an email, then I look at the person and it's like I should have spent time talking to this person.
Then I respond, they respond back.
So I build this.
So the name it came up for on its own.
Can you maybe how do how does it come up with its own name?
Yeah.
That's a pretty app name.
It's it's just a random, it's a random uh name generator.
Oh, okay.
That's fun.
It just came.
The fact that it picked that is is hilarious.
I'm pretty sure it's just determined.
Resilient collector, I think I've never looked at the code for that.
I've never second guessed it.
I think it's like a mad lib situation.
Yeah, it's right.
Yeah, it's totally uh a deterministic.
Yeah, uh, I thought it was great.
Although when the if you use the AI to set itself up, it can update its own name.
Okay.
How did you create?
Did you just do plus?
Okay.
I did, yeah.
I'll say just check my inbox for applications for a co-working space, keep with it with all people.
So we created the database for me, which I have here, and I guess database is like a notion table because everything is notion, and then whenever an email comes in, like here, it just creates a new role for the person, and then it uses web search to enrich the the profile.
So it like searches the web and it's this is who this person is.
This is when does it want to move in and updates everything else?
This is it's not a GI, but to me, I don't want to do this work.
So it feels it took me maybe like 15 minutes to set up the whole thing, and I really like that.
Most of the information should live here, it's not like some other tool asking me, yeah, to bring my stuff there.
It's like I would have probably already created an ocean thing.
So most of our biggest use cases and gains are from that extra layer of human involvement in the process to make it into like one of our biggest use cases is bug triaging.
So if someone posts something and it's like, can you just have a custom agent that lives there that has its own routing constitution of what team this belongs to, creates a task in your task database and then posts in that Slack channel.
That's one of the first things that we built internally, I think.
And it's completely changed the way that Notion functions as a company.
Nothing falls through most things don't fall through the crack.
We don't know what we don't know.
But it's not replacing people, it's replacing processes.
Yeah.
And I'm curious how you think about composability of these things.
So the other one I was working on is like a piece filler.
So whenever somebody signs up as a tenant, pills out the lease for them.
There should probably be some agent that is like office manager agent that can handle the request, make the lease, and then give them a vercata access to the office and all of that.
How do you think about that feature?
Yeah.
So there's two ways you can compose.
One way is by using like the data primitives.
So you can you you could give you have one agent be writing to the database and there's another agent that's watching the database.
So that's one way that big and corner.
That's like a little bit more decoupled and works really well.
Or you can couple them.
So I think it's actually not really start releasing it like next week.
Is in the settings for an agent, you can give it access to an invoke any other agent.
So you can have them just talk directly.
That's what you was there a limit on number of recursions, or it's just probably like you can just get an infinite loop.
Some kind of yeah, I think it's 50.
There is actually a number somewhere, I believe.
I'm just like you're someone's gonna screw it up.
You shouldn't just try it and see.
Yeah, everything's gonna be paper clips.
Yeah, yeah.
But uh but that's really useful.
Yeah, so wait, like I just I helped someone internally the other day.
They had built like over 30 custom agents for for our go-to market team doing all kinds of different things.
For example, like researching, like filling information about about a customer or like triaging customer feedback or something like that.
Literally over 30 of them, and then you can make a database of all the agents, and then it's okay, and now I'm getting 70 over 70 notifications per day, which just the agents are blocked on various things.
And then I was like, Oh, okay, cool.
The obvious thing to do there is to make a manager agent right that's gonna be another abstraction layer in between your 30 agents.
So, yeah, we set them up with a manager agent and then has access to invoke all the other agents, and it's like watching and observing them, and then it's yeah, just creates a layer of abstraction.
So instead of 70 notifications per day, it's like five, and then the manager agent can help debug and fix any any problems with the does there's a concept with the inbox or something like this.
You're basically saying that they can message each other.
Well, like use a system of record, which is notions.
Yeah, so we actually yeah, we didn't make any special concepts at all.
They're interested to the motion notifications that I would have got.
They can just write a task to a database that the other agents task to listening to, or they can actually call a web up to the agent, like they can just add the agent.
Okay, yeah.
This is something that that we're still working on.
I I think we like generally the way we do these things is you first make it possible and maybe like a sort of janky way.
So I think the way I set them up is when we created like a new database that was like issues that the custom agents were were experiencing, and then gave them all access to file and issue, and then the manager has access to to read the issues, and that works pretty well.
Essentially, it'll give it its own like internal issue tracker just for the agents, and then if that becomes a concept that seems useful generally, maybe we'll think about how to package it in.
But generally we try to just keep it to composing the primitives if we can.
Another example of this is we have no built-in memory concept.
Memory is just pages and databases.
And so if you want to give it memory, just give it a page and give it access to that page.
And a human can edit it, agent can edit it.
Yeah, and so that works that pattern works extremely well.
And depending on these case, you can have it be just a page or it could be an entire database with or you're not gonna have sub pages.
It's pretty on this way you can do with it.
So when I was setting this up, I connected my inbox and it was like, do you want to use Gmail or Notion Mail?
And I'm like, I don't want to use heater, I just want you to do it.
I'm curious how you think about Notion Mail, Notion Calendar, all of these kind of UI UX in full steps.
Yeah, when like at the same time you have the agents abstracting them away from you in a way.
How do you spend like the product calories, so to speak?
Yeah, I think it's pretty important that you don't have to use Notion Mail to get out to the mail capability, so we can just connect to Gmail or whatever you want to use.
And we're thinking of the mail service as being really great to the extent that it's really agent-pilled.
So maybe the mail app is just pre-packaged agent that helps you automate your inbox.
Yeah, the auto-labeling is great.
I think the when we integrate with Gmail, for instance, we have a series of tools available that are available via MCP or API to Gmail.
When we integrate with Notion Mail, we have the Notion Mail engineering team to build us the exact right tools that optimize latency, optimize performance and quality.
They own that quality.
There's product leads there to their directly thinking about the user problems that happen to mail.
So it tends to be when we build integrations and connections, we build natively first and then think about extending them generally, just because it's also easier to build natively first.
So that tends to be how we phase things out.
Talking about integrations, you prompted me, so I gotta ask MCP, C O I, what's going on?
What's the opinion?
I think I'm definitely bullish and excited about CLIs.
I think there's a few really cool things about CLI.
So one really cool thing is is that it's in the terminal environment.
So it gets a bunch of extra power.
So it could, for example, I can like like paginate and cursor through like long outputs and it has uh progressive disclosure inherently.
You don't see all the tools at once.
It's just you see the CLI wrapper and you can use the help commands and root files.
And then I think the most important thing that's super cool is that there it's also inherently uh bootstrapped.
So if there's an issue, the agent can debug and fix itself within the same environment that it uses the tool.
Right?
I think I saw a tweet this morning, someone said my agent didn't didn't have a browser, so I asked it to make its own browser tool.
And within 100 lines of code, it gave us a little browser, like wrapping the Chromium API.
That's pretty incredible.
And then if there was a bug, it would just immediately try to fix it.
On the other hand, if you use an if you use like the the Chrome DevTools MCP, I've had this issue where like sometimes the transport gets like messed up.
If it gets messed up, the agent has no way to fix itself.
It no longer has a browser.
It's not broken.
I think that's pretty fundamental.
But I would say like a lot of the bad things about it can be fixed.
So I think like uh the progressive disclosure that can be fixed with Red Harness, like it obviously doesn't make sense to show it all the tools all the time.
That's not really inherent to the MCP protocol.
It's just like how you wrap it and use it.
There's many poorly implemented MCPs because we didn't know.
Yeah, I mean it was just early.
Like the obvious thing is to start with is to just show it all the tools.
And it's okay.
Now we have a hundred tools.
Yeah, and tool calling actually works.
So let's give it a way to like filter to search the tools.
Yeah.
I would say, like, broadly speaking, I'm really bullish on CLIs.
I'm still bullish on MCPs in in a certain environment.
I think in particular, MCP is really great after when you want like a narrow lightweight agent.
I think there's definitely a lot of use cases where you don't want like a full coding agent with a compute runtime.
And also you want it to be like more tightly permissioned.
MCP inherently has a really strong permission model.
Like all you can do is call the tools.
A CLI is a little bit murkier.
It's can it access the API token?
Are you like properly like re-encrypting the token so it can like exfiltrate it?
It introduces a lot of like new issues which are real and hard to solve.
And MCP is just like the dumb simple thing that works and it is pretty good.
I'll add two more perspectives, not from it working well for Notion, but how Notion like commits to both platforms.
Notion is dedicated to being the best system of record for where people do their enterprise work.
So we will always support our MCP insofar as other people are using MCPs, right?
So regardless of our perspective, we've put a lot of effort into our MCP, and we have a fantastic team that we're building to do more there.
And the second thing I'll say, I think we all think a lot, but lately I've been thinking a lot about making sure there's a value alignment and pricing with capability.
Literally on the expression.
And needing language to execute deterministic tasks feels wasteful.
And requiring on a language model to interface with third-party providers seems wasteful for tasks that don't require it.
And particularly because our custom agents are using usage-based pricing, we think of pricing as like the barrier of entry for use of our product.
And we're quite committed to making sure that it's not wasteful.
Not just because it's a bad deal for our customers, but it's also bad business.
We want to have as many buyers.
Like there's a there's an elasticity of demand.
And so if we can have our agents properly execute code that calls on CLI deterministically, it's a one-time cost, right?
Versus constantly having a language model integrate with an MCP over and over and paying those like repeated token fees.
And it's happening outside the cash window, then you're paying for it over and over.
And it's just unnecessary and less deterministic when it doesn't have to be.
Yeah, the open-endedness, I think the main thing is if I could write code to just call an API, I would never use an MCP.
But then you need an NCP sometimes when you know what to call, but you don't want it to restart.
Versus I think the it built a browser from scratch is like it's great when you're doing it on your own, but if your customers were having your AI write a browser from scratch every time and you had to pay the token cost of that, you'd be like, No, oh no, the Chrome DevTools MCP is actually pretty great.
Just use that.
I'm curious, how do you make that decision?
Should it be just straight API call, very narrow?
Should it be an MCP?
Should it be super open-ended?
Do you mean for when we ship Notion capabilities or when we add capabilities to Notion AI?
You might have a capability that the only way to do it is an open-ended agent, like an agent with a coding sandbox.
Yeah, in notion AI, though.
Not explicitly, like we also ship an MCP.
Yeah, yeah, yeah.
Yeah.
Internally, is that ever a discussion?
We're not gonna ship it because we're not able to tiny it down, or are you happy to just no, there are a lot of things where we choose not to use MCP because we want to add more high touch to quality.
I think search and agent to find is like the largest instance of that, where we have Slack and Linear and Jira search and Notion that is not using necessarily the search MCP functionality that is provided by those companies.
And that's because it's quite critical, we think, to how our agent trajectories work is for us to have a little bit more control on the functionality of the search journey.
And so it usually comes from quality, and there's a long tail of things, and that's why we built an MCP client or an MCP server, excuse me, so that people can connect whatever they want.
There is that long tail, right?
But we for search particularly, I would say that's like the primary entry point, but there are other connections as well that it's a little bit of secret sauce about when we are okay with the mcp functionality and user-driven off, and when we actually want to want to carry along more ourselves.
I think that there's not much really a conflict here.
There's just like different layers of the stack and different abstractions.
If we were to like map it out, you've got MCPs, give you a way to it's a protocol for gaining access to tools.
It's an open protocol, so you can easily get like a long tail many things.
So if you open up our like in the tool settings, oh that's not the trigger.
That's something that MCP can't do.
So if you scroll down and you and yeah the tools and access so you're now a connection yeah mcp is a really great way to gain access to tools it works really well.
But you just looked at the trigger UI for example there's no trigger protocol and so those are things we had to build ourselves.
And then there's some integrations the where we use MCP.
So for example I think the the linear and the GitHub use MCP but the Slack mail and calendar those are actually ones they built in house and we spent a lot of time really fine-tuning all the tools just make the list really good and also like building out the triggers so it's just like different layers of the stack.
Some things make sense sometimes and then we just have to like like harness the right tool at the right time.
I don't think there's an inherent strong conflict between these things.
Do you have a canonical representation on these tools internally where like you wrap these things together the MCP plus the custom built yeah yeah we have like internal abstractions for what is a tool what is an agent what is a completion call.
Yeah.
We even have internal abstractions for what is a chat archetype whether it be from Teams or Slack.
Yeah.
It's like the only way to build with AI because everything's moving so quickly you would have to abstract it so that you can swap things up.
Yeah, there's always a dance.
We we probably rebuilt our framework like like I said five different times.
It's always a dance of okay how does this new thing work?
What should the abstraction be?
Like what is OpenAI giving us?
What is that through giving us like we're trying to wrap over it.
I think I think we've been pretty successful with that.
It's just a matter of like staying nimble and making sure that you always have the simplest dumbest abstraction you can that the maps over different things.
Yeah.
So we have a tool integration abstraction for example and then MCP is like a type of integration.
Yeah.
That's one of them.
This might be a big ask, but I'm gonna try which is you said you've said multiple times you rebuild a few times like five times I don't know if the what the right number is is there like a brief history of what was the each rebuild doing and yeah I know it's I can try to do that.
Yeah there's anything you need to rag over archaeology.
The first version that we started building in like late 2022 oh my gosh there have been many versions actually okay I hate the highlights the first version we built was actually a coding agent.
Yeah so we're like oh instead of building tools let's make everything be JavaScript and then we'll just give it JavaScript APIs and it'll just write code and that's how it speaks the tools but at the time it just sucked at writing code it wasn't that good.
So then we moved to more of a tool calling abstraction a tool calling didn't exist yet so we we created this whole XML representation and a big learning in that version is we were catering way too much to what made sense for notion and notions data model versus what the model wants.
So as an example, we created this whole XML format that can losslessly map to notion blocks.
And the transformation between them is super easy to do.
And then we created this sort of like mutation operations to to edit pages.
But it sucked because the model didn't know the XML format.
And also the prompt it in and yeah we have to prompt it in the and the tool just more inconvenient.
And so yeah we're like okay it has to be markdown.
The models no markdown but we did a whole project around basically creating a notion flavored markdown where the whole goal is like it has to be just simple markdown at the core and then we can add some enhancements and it doesn't have to be a full lossless conversion.
That was a big one.
We did it and then we did a whole similar learning to the database layer.
So to query a database in the notion API the way you query a database is there's a crazy JSON format and it's limiting but it maps nicely to like how we represent things internally.
We scrapped all that and we're like okay let's just make it SQLite.
Everything's a SQLite database you can query it just like a SQLite query and the models are super good at that.
So give the models what they want.
That was another one yeah yeah you models what they want that was I would say that was a big learning is just really to be savvy and really careful thinking about what the model wants in terms of what's environment and cater around that and really try so hard not to expose it to any complexity about your system that that's unnecessary.
Notion's underlying database is Postgres not yeah.
So I don't know if there's any mismatch there.
That one was a fortuitous thing because we actually already had a big project going where so we have this when you query a notion database, it's actually querying this like cluster of SQLite databases.
That's something that we'd already been working on even before the agents came around.
Yeah, you guys had a fantastic bog post about it.
And like it's it's actually a really good database engineering knowledge to have that from you guys because where else will we get it?
Yeah, yeah it's a it's a crazy engineering problem when you want to have like millions and billions of tiny databases, or where some of them are tiny, but some of them are very large and you want to have everything move very fast.
Yeah.
And also not that hierarchical sometimes.
Yeah, so somewhat of a graph.
I do like that history because I think that shows the evolution that you guys went through and the work that went into it.
He just emptied you a year and a half ago.
Oh, okay, okay.
Oh, I need to hit continuously.
If you're curious, we can keep going.
I'm just saying, like that's really another one.
Yeah.
I mean, no, because there was tool calling, and then there was research mode, which wasn't a fully agentic tool calling.
Then we moved away from few shot prompting entirely to tool definitions, and now we're thinking about agent 2.0.
So no few shot prompts ever.
Okay, no, no, no.
I don't know if never, but yeah, that kind of went away.
It's an interesting thing.
Right?
Yeah.
These just instruction follow really well.
I would say there's been like a general arc where it's like you gradually strip away everything, and it it looks more AGI.
And it it started out as it's a one-shot, one prompt.
There's a few shot examples, and it became okay, actually let's give it, let's give it tools, but it'll still have few shot examples.
And then it became actually let's just give it a whole bunch of tools.
One big shift that uh that we I've been working on recently at that's about to ship is uh what happens when you have a lot of tools.
Yeah.
So then search.
Yeah, so then uh progressive disclosure becomes really important.
We were we'd hit a bottleneck where our agent worked really well.
We hit a bottleneck where it it became pretty hard to add new tools, and we became worried about it like breaking the model.
It's okay, someone wouldn't.
No, I just heard it was like saying hello was like thousands and thousands.
Yeah, tokens.
It was really slow.
I can see you're the efficiency person here.
Yeah, it's yeah, it was too many tokens, uh, but also it's a quality issue because it meant that any engineer could introduce this new tool for some like niche feature, and it would nerf the overall model by causing it to call the tool too much and stuff like that.
And it yeah, so we uh we had an effort basically to to make our harness implement progressive disclosure in a nice way.
That's a big shift.
You said earlier, like everyone says reasoning models was the big shift.
Like, what's more there?
When we went away from few shots to describing the goal of the tool in like goal-driven basically moving from a DAG to like a true system with feedback, that's when we could distribute tool ownership to the teams much better because when it was all few shots, it was everyone truly editing one string and things would open would compete in like the order.
There were all this all these papers about oh, not all context is created equal.
The higher up it is in your examples, like the more the model listens, and we're trying really hard to fight against the order and the selection of the few shot, and that really had to be a center of excellence.
And it didn't scale with the number of people for the need the company had.
It was really just five or six people that were allowed to even touch that or had to approve it rather in our code base.
And then now we can actually with the right eval setup distribute so that everyone owns their tool and their tool definition.
And sometimes we have crazy things where like we write two tools that have the same title and the agent crashes and stuff like that.
So there are issues.
Actually, believe it or not, Anthropic couldn't take it.
Sonic couldn't handle two tools with the same name in OpenAI, GPT 5.2 was like I can figure this out.
So that was an interesting one that we learned by accident through SF.
I mean, then the underlying representation is that's a dict, right?
Exactly, exactly.
But so that was like a big shift for the company in velocity, not immediate, because the AI team that was the center of excellence team that owned that one file of FewShop prompts had to become a platform team overnight, and that wasn't natural.
Yeah.
But I would say that in terms of like the velocity of how we contribute to the agent, beyond coding tools, obviously being a big velocity lever, being able to distribute tools and not have to all collaborate on one very select string of system prompt is truly, I would say the biggest lever in how we've scaled.
We're just fighting to keep the prompt as short as possible now.
And then it's in the latest version of the agent.
I it's not in custom agents yet, but it will be like next week, a week after a so there's now like over a hundred tools just for all the crazy notion stuff.
So we're able to really go deep in.
Would you list those tools publicly?
Is this like IP or no?
It's totally public.
Uh you can ask we can find just ask.
You can just ask the agent and it will tell you.
So I find it.
And if we're gonna post a bench like you have post bench, we don't think our system prompt is our secret sauce.
Yeah, great.
We don't try to hide the tools at all.
I think it's I think it's kind of important actually as an operator, yeah.
As a power user, I wouldn't be like, oh, I can do this.
Good.
Yeah, yeah.
One thing that one phrase we say internally in the law is to teach to the top of the class.
Or you want to build like the customation is like a power tool.
We try to make it as easy as possible to set up, but we want it to be pretty deep and sophisticated.
And I think a huge part of that is the operator needs to be able to interrogate the way the system works.
And a big part of that is what are the tools?
How do they work?
Like, how should I prompt it to use the tools in the right way?
I'd actually say we don't try and make it as easy as possible to use.
Because the more we do that, the more we abstract away that interpretability that Simon's talking about that basically nerfs the model or nerfs the agent from being super capable.
So a huge, I would say, turning point.
I can think about the week and a half that we all came together on this as we were building custom agents was that alignment that we're not trying to build for everyone here.
We're not trying to build the model that or build the user experience that anyone can figure out how to use.
Because the more we do that, the more we just diminish its capabilities.
And that was a big everyone in a couple Slack messages aligned on that actually made us all work faster again because we all were like more centralized on who we were building for.
What does the meta prompt generator look like?
So I looked in the system prompt that it generates, for example, uses emojis.
That's not an obvious thing to be doing.
Did you just ask it what's your system prompt?
Oh, this is how to generate prompts.
The prompts are generated prompts.
Yeah, so this is actually just the agent.
So one thing we did that that I really like with the custom agents is it can set itself up.
So we not only gave it access to use the tools that it has access to, send your emails or whatever, but it has more tools to set itself up and to debug itself.
And so when you ask it to write a system prompt, it's just your agent itself is doing that.
So this is just the model preference.
You're not really injecting into the model too much.
And things like that.
And then and it's really nice too because if it fails, you can ask it why did it fail?
And then say, okay, update your instructions so it doesn't fail again.
Obviously, we should build product of self-healing.
That's next on our roadmap, but it actually it creates a nice system.
Yeah.
We do essentially give it like a development guide.
Here's here's how to make a custom agent.
Here's how to like help the user test it end to end so to help them gain confidence that it works, stuff like that.
Yeah, the fixing thing worked.
It wasn't automatic, but I miss set something up and then the work like a fixed button and then just yeah, yeah.
One thing where this agent and it's a little bit more the it's actually it's an interesting sort of permission problem.
So the thing about custom agents that is that by default it has no permission to do anything.
And then you have to explicitly grant it all the permissions, and that's what lets you trust it can work in the background.
Like you can know, oh, it it can read my email but not send email.
Okay, I can trust that.
If you let it fix itself, you're breaking that perversion barrier.
It's it's it's not allowed to edit its own permissions.
But uh in the current product, you can click a button to fix, but now you're entering sort of an admin mode where you're in a synchronous chat and you can see what it's doing.
Yeah, and it and it confirms before it changes.
The thing that we like that most people don't do is the editing chat is the same thing as the using chat.
Like you can message the agent to both edit it and use it versus a lot of other products that like I think that's really key.
I think a lot of designers will feel so happy you said that because we spent we called this flippy.
What is this?
What do you mean?
Yeah, so if you if you close that in like open settings, you can see, yeah, this is we we call it a flippy because we started with the settings where the sort of the main page, and then you can test the agent.
The AGI pill way to think about it is oh, it's just the agent.
Everything's the agent, right?
It can set itself up, it can test itself, and they can run the workflow that you they want to run.
So we flipped it.
So the main view I was looking at is the chat, and then the settings is more just like a side panel that's previewing the changes that it's making so you can introspect on them, or you can also make changes manually if you'd like.
But we want to design the experience from a get go so you don't have to ever any of the settings manually.
You can just talk to it.
And the inside baseball is like how this works was probably the launch blocking part of this, especially because we had a lot of early adopters that were used to the old way, and that's like the benefit of adopting in public, but then changing how people think about setting up custom agents when they already had this flow in and of itself was difficult.
That's really fun because the we we ended up painfully delaying the launch by a few weeks, yeah, definitely like a month or so.
But the whole team was super enthusiastic about it though, because it was just so much better.
It was like, oh yeah, obviously you get the chat with to set itself up, and everyone was super bullish on that.
So it was like like painful for a second, but then everyone was like and like back to organization design, which I probably care about more than Simon.
But the people that built this are three engineers from three different teams because we're like, we need to launch this and we need to fix this.
And then we've just built a company where then we just put people on it and no one complains.
The manager doesn't complain, and we were able to unblock and just ship it.
Yeah, but being in a failure chat and asking it to just fix yourself is amazing.
Versus I gotta copy this and put in the settings chat.
Do it.
Yeah, so we're interested in like uh trade-off in there that we're trying to explore, which is we want to be like a business enterprise safe agent where you can delegate something and trust that it's gonna work, but also we want to get some of that sort of bootstrapping power that that you feel like when you're coding it is making a browser like for itself, right?
There's something there.
I think that's really important.
So it's we're trying to navigate that that trade off and trying to get you both.
Now it's free.
It's amazing.
I'm worried about when I have to start paying.
How do you think about it?
So you have notion credits as a payment for this, which is like separate from the usual tokens that the model generates.
How do you design pricing, value-based pricing based on the task and things like that?
So they are the credits and payment structures associated with the token usage.
The reason that we had to make it not just throughput of tokens is that it's not always priced that way.
Like our fine-tuned and open source models are served on GPUs, web search is priced differently.
If we were to host sandboxes, those are priced differently.
We had to think of an abstraction above tokens, and it's also not just tokens, it's the token model and serving tier trade-off, right?
Because we can have priority tier processing, we can have asynchronous processing.
The cash rate could be different depending on who uses it when, right?
And so we wanted to from the get-go commit to making sure that customers were getting the fair deal.
Not necessarily that we were making a ton of money off of it, but that customers were paying for what was reasonable.
That's the fundamental of where we started.
And also, we're selling enterprise SaaS.
So if we sell credit packs and you get discounts, if you're an enterprise and you buy a certain amount of credit packs and things like that.
So it also just helped the sales motion work a little bit easier.
So that's the answer on the abstraction of credits to dollars.
Now, was the question how we decide how to price it?
Or yeah, I think there's all tokens are not made equal, but we obviously get charge mostly equal.
Like you can ask Codex to create you a DOM tool for I created one for our StarCraft 2 LAN for people to find the game, but then people create it to build features in like billion dollar companies, but the token price is the same.
Yeah.
Like for you, I can ask this to update my favorite recipes doc and it'll do it.
But I could ask it to respond to an email from an investor.
And the value is like very different.
And you could charge more, but you're not necessarily doing it.
So I'm curious if there was any discussion.
I think that that's not where the market is right now.
Number one.
The second reason that we're not doing that is it ended up being complicated to figure out what was complicated or not.
So we at first were like, let's just charge on agent runs.
And you know what you went through all the different versions that ultimately just brought you back to a lot of complexity that mapped directly to token throughput.
And so it it's also just simpler.
It's quite difficult to build those pricing systems.
And I actually think that one of the biggest reasons we want had usage-based pricing for this capability is we've had our core agent for a while with a model picker, and there were certain models or certain functionality that we had margins to maintain.
And if we wanted to ship this functionality, you we couldn't afford it.
It would bankrupt the company.
If we let, for instance, like autofill or the database autofill feature will soon be agentic.
That will be associated with usage-based pricing because if every single autofill action was an agent running on OBIS on every single database cell, it would be billions of dollars, right?
And so we had to find a way for the customers that wanted to do more and wanted to give us their money and pay more to find the outlet for them to do it that we didn't have to apply to the lower end of the curve.
And also not all knowledge work is equal.
There's different points.
A lot of the agent workflows here really saturate model capabilities.
Like you don't need a complicated model for it.
And so charging based on token usage, it we couldn't just decide for you that you wanted your email client to be dumb or not.
We want you to decide.
If you want to have Opus auto-triage all of your emails, we will actually give you nudges in the product to rethink if that's the right choice.
Because also not every user you'd be surprised in user interviews.
People be like, oh, I didn't know that.
So now we actually have a little hover that tells you like if it's expensive or not.
Yeah, it's also slower.
So the thing that's interesting is like people don't care about speed and custom agents.
And so the incentive of haiku being faster, people don't care when it's asynchronous.
And so we want to only provide the service of extra benefit that people want.
And the best way to do that is to incentivize them because it's their own money.
Must be confusing for people that are not familiar.
It's like, why is there no 5.3?
You open this thing.
And it's like is there something missing?
Not their fault.
Yeah, I think that's just the world we live in now.
I mean that's it's just randomly jumps point two is like Cloud had that.
Auto is heavily, I think what's actually been hard for us is to tell convince people that auto is not just our cheapest dumbest model, but actually the model that's best for the task that you want to do.
I mean exactly auto nice.
And a lot of our job is actually figuring out auto because it's This is the agent lab.
Every agent lab has an auto.
Yeah, and that's the job.
Exactly.
Because if you think about it, like I said, I come from Robin Hood, like you could spend a lot of time keeping up with the markets, or you could have a auto investing, right?
And you can have an index fund.
Or you can have RoboAdvisor.
And so like at a certain point, we also can be robo advisors and like we have a lot of people figuring out what model is best for the right task.
And right now we're not using auto as a margin maker.
We're just using it to reduce stress.
It's not OPUS, that's for sure, because a majority of the tasks people are doing aren't Opus level intelligence.
The other thing I would say is the unlike a lab, we aren't fully incentivized just for you to use as as many tokens as possible.
We're actually really interested in getting you the right tool for the job.
A lot of the time the right tool for the job is actually just writing code and not even using agent at all.
So that's something that we're messing in a lot.
I imagine your agent can actually automate itself out of a job.
Uh we would love if that were true.
I feel very strongly about this because I don't necessarily feel like that's the SKUs that Frontier Labs give you.
I feel like they are just getting more and more capable and more and more expensive, which is fantastic for the use cases of when people want to do really complicated things on Notion.
What's difficult is like that market that I think right now is no man's land of where reasoning models were six months ago, that the nano haikus, et cetera, haven't caught up to because now we're just paying more for those for like extra capability that we didn't necessarily need, and so are our customers.
And labs aren't necessarily incentivized right now with how few players they are to be meeting the market everywhere.
They just need to be the cheapest.
They don't need to be at value that the customer wants.
If no one's cheaper than them, then they're the cheapest, and that's good enough.
And so we're doing a lot to make sure that we have the right optionality to switch between models and also invest in open source because the open source models actually are getting to be the place where reasoning models were three, four months ago.
And that's what's filling that gap right now.
So you'll see we offer many Macs and we're collaborating a lot with different open source labs to think about Notion's last exam and how they can do better on these types of tasks so that we can offer them for that intelligence to price to latency trade-off because in that triangle of intelligence price, intelligence price and latency, excuse me, users get to choose where they are.
But right now, there's not the whole triangle isn't filled with models, right?
And the more that different models fill that triangle, everyone's clustered in capability or everyone's clustered.
Haiku's not that much cheaper.
No one's really in the middle.
Like people really tend to cluster around too.
This is really capable and it's really fast, but it's really expensive or whatever.
And so we just want to make sure that triangle is filled.
And we want to offer the models that fill it, and we want to get guide users to understand when they need it.
Yeah.
Not which one.
All I'm hearing is that someday you're gonna change your model.
You have lots of tokens.
I don't know if what do you mean by train your model money to train a foundation you go raise it.
Yeah you can raise it.
That's your job Simon.
No, I don't think that needs to be our core competency.
This is usually the thought process that leads to no one else is doing it will take a crack.
Yeah I feel like to the extent that we do anything like training and the other area I'm actually most excited about is less of one big model for all the users but as it becomes more possible to do to make specific fine tuning that's like really knows your context of your company the people that work your company what's going on I think that's pretty interesting because if you had a model that really knows your company I think that would be like a huge quality uplift.
We actually have some enterprise vendors that kind of ask about this along with bring our own key if I have a model that really understands like my enterprise that we're training for all these reasons.
These tend to be like quite large institutions thinking about how to let people bring their own models but those models have to function with like right understanding how to call our tools and that's where again having more public system prompt is like beneficial to notion, right?
We want all models to plug into notion as as well as they can.
That being said, like of course there are certain aspects of notion where we do fine-tune and do reinforce and fine-tuning on our own capabilities.
But that's not necessarily trained on user data.
You don't need that that much data in the first place.
And that's where when we have like a data scientist and a model behavior engineer really understand where the capability gap is.
That's when we invest there.
I personally burned a lot of time trying to train models.
And it's tempting, right?
It's so tempting to be a good thing.
Retraining every day.
I was doing crazy amounts.
Yeah, I was doing a lot of different things.
And it's like I was the budget person that came in.
And I showed up and I heard that was happening.
Five miles.
A funny thing that's the sort of an arc that like looped on itself is back when I was doing tons of training stuff.
It takes a long time to do it any kind of training run.
And you end up operating like 24-7 around the clock.
Like it becomes very important that before you go to sleep, like everything is the experiments are started.
And then as I stopped training, that kind of went away.
But now the coding agents have totally brought this back.
So now every night before I go to bed, I'm like, okay, did I start enough agents to get them done?
I get everything done.
So it's sort of yeah, it's a different thing.
This is an interesting argument of like, yeah, you have to try polyphasic sleep so you can wake up every two or three days.
Yeah, we yeah, I have not gone there yet.
But my goal these days is just to before I go to bed, the agents are running, and I'm confident that they won't be done by the time I wake up.
Really?
Eight hours.
There is a I won't say which coding Frontier Lab, but there is a point where he had outlived like the thread length and context length that that coding agent provided.
And I DM you DM'd them being like, hey, I need more and our account rep DM me directly.
And they're like, is Simon trying to prove string theory?
What is he doing?
Yeah, I I had a single coding agent thread going for I think it was like 17 days.
Pretty much continuously.
Don't they just compress?
Yeah, yes.
It it was actually just a bug.
It was a harness bug.
Yeah, it had done compaction like a hundred times probably.
Yeah.
Or more.
The other thing that reminded me about fine-tuning that I think you and I have aligned on is that our tools change really frequently.
And right now we spend a lot of time rethinking and building tools for capability.
And fine-tuning a model to understand your tool, like we don't have legal expertise or coding expertise.
So if we were to fine-tune a model, it would either be expertise about the enterprise, and we have ZDR, no data retention offerings for those enterprises.
So we'd have to really rethink how we structure if an enterprise wanted to opt into that.
Or it would be fine-tuning and better capability on navigating our tools.
That doesn't match with the velocity with which we create new tools.
And so it would actually really slow us down to have a model that was fine-tuned on our tools because we'd have to retrain it and cut a new model every time we did that.
And that's not how we're set up right now, particularly with the way that we're changing our I guess we could fine-tune a model to like search for tools.
It's just the amount of time it takes to do that, ship it, have the right system.
You're basically making a bet against a frontier capability not serving that and the time it takes you to build it.
And that time lag hasn't happened for us yet.
Yeah, it's just the wrong trade-off.
I think it's just like you want, yeah, we literally change our tools every single day.
And if we notice an issue, we'll we'll fix the problem.
I think a good way to think about it, I think it's pretty fruitful, is don't focus too much on training.
I think of that as that's an implementation detail.
Like, what's the outer loop, right?
Like the outer loop is you have a model and then some harness or system where it's interacting with the system, that needs to work.
And if it's a problem, the way to solve the problem isn't necessarily to train a model.
It's oh, maybe there's just a bug in one of the tools.
And actually, 99% of the time it's a bug in one of the tools.
Right.
And so just fix the bug.
And then the outer loop thing that's really fruitful to think about is like how can you improve your velocity and robustness and making really good tools, making a good harness, like verifying it works.
The one place that we do invest more in model training now, necessarily though, is actually in retrieval.
Because we're at a point right now in our business and enterprise or AI enabled plans where the search load and the search traffic, a majority of it's coming from agents, not humans.
And so for every query that's hitting our Elasticsearch or vector indices, they're not coming from humans.
And the queries are structured differently, and what's returned has a different or requirement.
Positional ranking matters less, but top care retrieval mode matters more.
Isn't top key a form of position?
Of course it is.
But when you're training on like click-through rate, it's really yeah, it's a good thing.
Number one through number six is very different.
Yeah, then it needs to be in the top 100.
Like the slope is just higher.
It's a different optimization function for retrieval model.
Similarly, what snippet you include matters more or less.
So we are rethinking a lot of that functionality to work with how the agents like to write queries and how they want to receive information.
So we are doing like another kind of reinvestment into rethinking not only search for how do agents do searches versus how humans do searches, but we're also investing in like indexing different things now because how are you how do you index the setup generator for Notion Agent?
It breaks our block model entirely, where all blocks are nested in each other.
Same with meeting notes.
And so we do we so we're hiring ranking engineers and model training engineers, but it's primarily on ranking.
Yeah.
Does ranking map to Rexis for you?
Does recommendation system?
Yeah, yes.
Okay.
I'm trying to promote Rexis more in general because I is weirdly unpopular.
I don't know why.
But the other thing is that I was just talking about this with a peer.
Like how much is ranking important versus being able to do parallel exhaustive queries?
So important.
They're both important, but they're both two tools to the same user outcome or the same agent outcome.
Right.
And that that's something that we're also rethinking a lot.
Even on we just did an experiment on Notion Ranking at this point.
For notion retrieval, vector embeddings are less and less.
Did you see that?
Yeah.
Notion just uh response over to night mode.
So long it became dark mode.
We're working the night shift video, right?
Look for you not seeing any bugs.
I worked on this like parallel search thing where you fan out to eight different queries, right?
And so you actually need to use the model to work on query diversity so that you get the most space.
And so, like the people that are working on ranking and retrieval are the same people working on what query generation is.
It's all one journey.
We call it agentic find.
And we're actually realizing, for instance, that it's less about a selection.
Like we don't spend a lot of time trying to optimize what vector embedding we use anymore.
That was a period of time, but that's just not the right level of optimization.
Okay, we've gone long.
I have to talk about meet notion meeting minutes, and then we'll we can call it there.
Do you use you just have a lot of comments?
Is I don't know where you want to start.
Is it the audio side?
Is it the meeting notes?
Summarization?
Yeah.
What makes it work?
No, just anything interesting technically.
Like I think you had some book points.
I always call these like checkmarks along the way when a guest says something that we'll they want to return to later.
I just check mark it.
I'm like, okay, we'll come back to it.
Meeting notes was one of those things where at first we were nervous that we'd have to teach people a different way to work.
And we were nervous that was a lot of user friction.
I think one of the reasons why I mean they're one of our biggest growth levers.
I think they're one of the most like in terms of virality of adoption and retention, quite strong.
And so we've invested more and more as we did that.
I think what's really powerful about it is again, notion is the system of record of where and how you work.
The way that I use meeting notes is every one-on-one meeting I have is meeting notes.
When I do my performance review for myself, my self-review, I say, primarily look at all my conversations with my manager and write up what I did this year.
Right.
Because if I didn't talk about it in my one-on-one with my manager, it probably wasn't relevant for my performance review.
So it also just adds a ton of signal on prioritization that's really helpful for a good system of record that's really helpful for like our agent.
It's also caused a lot of scaling for search and for the agent.
And it's just an explosion of content when you have transcripts like that.
How we do compaction, a lot of that was triggered by meeting notes passed into context, things like that.
So it's been a good impetus for us to think about longer form content when you think of it as like a priority primitive.
But it's been one of the most powerful signals for our agent because it's unsurprising, right?
Like you're capturing a whole new thing.
So it's like our own data, like we want users are they're creating their own data flywheel, right?
Like it serves me to prefer Notion to put all my stuff because it has my other stuff.
Totally.
The way that like our teams run right now is there's a custom agent that does a pre-read before stand-up, it looks through all of Slack and GitHub and just says it it creates a summary and it creates a meeting note and it says everyone do this pre-read.
Then we just press play, we have the meeting, we talk through the pre-read, we talk about what needs to happen next, and then we have a custom agent integrated with our calendar and triggers that then files tasks for tomorrow or today based on what we spoke about and sends off Slack messages that we decided in the meeting needed to be follow-ups.
Like our meetings are hands-off keyboard and we're focused on the root of the problem, not the bookkeeping around the problem.
One thing that the meeting has team out of recently that was that been blowing my mind is they we they made it so it actually when it makes a summary will actually at mention the people that were referenced in it.
So I now get notifications whenever someone talks about me in the meeting.
It's like, oh, Simon is working on this.
Okay, I'm gonna it's actually amazing how that I'm like, oh, okay, cool.
I'm gonna go talk to them about that.
What if they're two assignments?
No, wait, so wait, it's powered by the agent, so it's doing agentic.
So if you look at it thinking, I don't know if this is shipped yet.
It will be.
When you look at it thinking when it's doing the summarization, it's saying figuring out who Simon is.
Most probable Simon.
Um, and we also have uh people to people similarity cache and stuff like that in the attendees.
Like, we also generate a profile for each person and and use that.
Of course, I can get it wrong, but the goal is for it not to get it wrong.
Meeting notes is just like the agent primitive packaged on top of a transcription primitive.
Yeah, yeah.
And then a vertical team.
It's probably one of the only teams at Notion that's completely a vertical team around quality and product like UX design because it's still a tiger team with a fantastic manager Zach that joined recently from Embra.
But Zach Titar, yeah.
Yeah.
I chatted with him when he was talking about his working on Embra.
Yeah.
So he's managing that team now and thinking about it as data capture.
That's what MIDI notes is data capture, right?
Kind of reframing where MIDI notes are valuable as a data capture problem.
And then working inside like the summarization used to not be agentic.
Yeah.
Now it is because it does all the things like figure out who the right Simon is.
And one day you can have a custom agent directly integrated in it that knows like what task database the meeting is referring to.
And as you're having the meeting, perhaps update the tasks and things like that.
There's a lot of that experience of where we do our work in meetings that we want to invest in making more seamless.
Yeah.
OpenEI is doing hardware.
Would you ever ship one of these?
Yeah, probably not.
But this is meeting notes in person.
Yeah, yeah.
I'd be excited about I'm excited about the product category in general for sure.
Yeah.
I think it's it's a mechanism, and it it one of those needs to work really well with Notion.
We would partner with whoever is building one of those.
I think it'd be they would bob Amazon.
I don't know.
I can't refer you.
And there's there's some wild companies doing like really cool things that come to our partnerships team that I like to sit in on the demos of wearables.
I always like to sit in on the demos because I think they're pretty cool.
And all of them want to make sure, not just Notion, but like you can imagine the ones that talk to you being able to do search and build context.
So if you're entering like a conference, being able to do look at your CRM and do things like that, then you can utilize the Notion Agent to do that.
So we are in like the very beginnings of those partnerships.
I think what's unique about that particular technology is it goes against what I talked about with custom agents right now, which is the more simple it is, the harder it is to have like advanced controls over its capabilities.
And so that would be a great investment for data capture, but not necessarily like our agent's workflows.
It's a little bit of a different slice of the problem.
That's going to be deeply personal.
Like your company's not going to force you to wear a wrist wristband.
It's good to hear that from me from you.
Yeah.
The CEO's gonna force everyone to wear a wristband.
I think the slice of the problem that we care about is can the company have all the context of what everyone said at every single meeting and then use that to drive value for themselves.
It kind of reminds me.
I remember once you very strongly reminded me our job is to not make the best harness for a gentic work.
Our job is to be the best place where people collaborate.
It's like our job isn't to build the best wearable to capture meeting notes.
Our job is to build the best place where meeting notes live.
Yeah.
So it basically you're saying everyone else can just pipe to you and it's fine, right?
Yeah, that's a reasonable thing.
All I will say is that people there's people walking around with notion tattoos on them.
They will learn notion anything.
So just I don't know, do a limited run.
We have such understated swag that the idea, like our swag has so few Notion lay logos on it.
The idea that people have Notion tattoos is pretty antithesis to our design principles.
So that's pretty funny.
Do you have one?
No, no, they're not.
I do not have a notion tattoo.
I've seen them, yeah.
Cool.
Thank you so much.
This is such a great deep dive.
Actually, the chemistry between you two is amazing.
I mean, I can't believe like we work together a lot.
Different jobs work closely.
Yeah.
That's it.
Yeah.
Thank you.
Thank you.
Thank you.
