Latest / The Product Engineering Podcast / When To Use AI In Product Engineering
Transcript
- 22:16There's a right way and a wrong way to
- 22:18use AI in product engineering.
- 22:20AI can obviously write code extremely
- 22:22quickly, but it's a mistake to use AI to
- 22:25just speed up a legacy delivery model
- 22:27when there are so many better
- 22:28opportunities and so many more effective
- 22:31ways you can use it inside
- 22:32of product engineering team.
- 22:42Hi, welcome back to the Product
- 22:44Engineering podcast and this yet again
- 22:46we're talking about AI.
- 22:47This is one of these topics that you
- 22:48really can't get away from, but I want to
- 22:50kind of take a step back from the whole
- 22:52revolution behind agentic coding and vibe
- 22:56coding and all that kind of stuff and
- 22:57talk about how you actually use AI inside
- 23:00a software delivery mechanism, especially
- 23:03when you're trying to align a team around
- 23:04a product outcome and not just trying to
- 23:07make your roadmap be
- 23:08delivered a little bit more quickly.
- 23:09AI is really really useful at speeding up
- 23:12certain tasks, in
- 23:13particular the task of writing code.
- 23:16So if you can give an AI system a really
- 23:18well detailed spec or a plan, then it's
- 23:20fairly trivial to have some model turn
- 23:23that plan into some code and it's also
- 23:25fairly trivial to kind of review that
- 23:26code and test it and
- 23:27ship it to production.
- 23:29What it can't necessarily do though is
- 23:31make sure that that plan is the right
- 23:33thing to be building inside your product.
- 23:35And so that's when AI should kind of work
- 23:37with human judgment.
- 23:39AI coding tools are not
- 23:40there to replace your judgment.
- 23:42They can absolutely educate you and they
- 23:44can help you learn about the feature
- 23:46you're trying to build and learn about
- 23:48the code base, but you still do need
- 23:50humans to decide whether this is the
- 23:52right thing to be building or not.
- 23:54Before AI coding tools, writing the
- 23:56actual code was one of the most expensive
- 23:58and time consuming
- 23:59parts of building software.
- 24:01So what we ended up doing as an industry
- 24:03is we built a process that tried to
- 24:05reduce the amount of risk that you were
- 24:07taking when you started
- 24:08actually writing code.
- 24:09So everything from like a product
- 24:10requirements document or kind of scope
- 24:13and an epic enduro and all that kind of
- 24:15stuff, all of that upfront planning is
- 24:17designed so that when you make that
- 24:19commitment to actually write some code
- 24:21and ship it to production, you're not
- 24:22going to be making the wrong decision.
- 24:24But AI actually kind of
- 24:26flips that on its head.
- 24:27It now makes it so that once you get to
- 24:29the point where you've got a really,
- 24:30really well defined piece of work that
- 24:32you want to do, then it's actually very,
- 24:33very quick to go from that to code.
- 24:36So what you really want to do is be
- 24:37focusing on are we
- 24:38actually building the right thing?
- 24:40So are we writing the correct
- 24:41spec for the API to work on?
- 24:43And that's where everybody, product
- 24:45managers, software engineers, leaders,
- 24:47managers, even like DevOps and SRE people
- 24:50need to start moving further up that
- 24:51pipeline and focus their human judgment
- 24:54on are we actually building the right
- 24:56changes inside our products that are
- 24:57going to drive the behaviors and our
- 24:59users that we want to drive.
- 25:01And products judgment is something that
- 25:03requires human beings.
- 25:04Despite all of these amazing fable mythos
- 25:07models, you still need human beings to
- 25:10decide what should be
- 25:11done inside a product.
- 25:12And that's for the simple reason that
- 25:14unlike code, when LLM can be trained on
- 25:17loads of code on the internet, if you're
- 25:19working on a software product, you
- 25:21probably know better than the training
- 25:23data that went into an LLM about the
- 25:25history of your product and about how
- 25:27your users have
- 25:27interacted with your product.
- 25:29Even like fable can't be trained on your
- 25:32customer calls and your
- 25:33interactions with your users.
- 25:35You know that as a human being that
- 25:37information still
- 25:37exists inside our heads.
- 25:39And it hasn't gone into
- 25:40the training data of models.
- 25:41It's not available on the internet, like
- 25:44a discovery process that you've done
- 25:46inside your organization that's helped
- 25:48you learn about what kinds of features
- 25:50you should be
- 25:50building inside your product.
- 25:52All of that learning still
- 25:53sits within your organization.
- 25:55You can absolutely have AI models that
- 25:57would go in and pull that
- 25:58information from documents.
- 26:00But often this is
- 26:01actually just a human experience.
- 26:03Often we just instinctively know based on
- 26:05the whole history of working on a
- 26:07product, what we should be doing and what
- 26:08we shouldn't be doing.
- 26:10And you still need the human beings to
- 26:11make those decisions.
- 26:13And so that goes for everybody on a
- 26:14product engineering team as well.
- 26:16Software engineers don't necessarily just
- 26:18know the history of the code base.
- 26:20They know the history of their
- 26:21interaction with product in the past.
- 26:24They remember like why
- 26:26products ask them to do things.
- 26:27They remember why they built things in a
- 26:29certain way in a way that is extremely
- 26:32difficult to explain to an agentic model.
- 26:34So even though AI can absolutely take
- 26:36some predefined requirements and ship it
- 26:38into code, it's really, really not very
- 26:41good at working out exactly what should
- 26:43be built because it just
- 26:44doesn't have that information.
- 26:46And you can spend days and days and weeks
- 26:48and months trying to teach in AI about
- 26:50your business and about your
- 26:51product and about your users.
- 26:53But ultimately the people that have lived
- 26:55that product day to day, your product
- 26:56managers and your engineers and your
- 26:58leaders, they're the
- 26:59people that really, really know.
- 27:00They're the people that
- 27:01really have all that context.
- 27:03And so having product managers and
- 27:04product engineers guide the AI in the
- 27:07right process is the
- 27:08correct way to use AI.
- 27:10Often in product engineering, we don't
- 27:12necessarily know the correct
- 27:14solution to a certain problem.
- 27:15We can research a problem.
- 27:17We can understand that it exists and we
- 27:18can speak to people
- 27:19that have that problem.
- 27:20And ultimately we can ask AI for a bunch
- 27:23of possible solutions, but ultimately we
- 27:25don't know at this point which of those
- 27:28solutions is correct.
- 27:29So the right way to use AI would be to
- 27:31explore more than one
- 27:32solution at the same time.
- 27:34Let's say you know about a problem that
- 27:35you know that there's a
- 27:36bunch of ways you can solve it.
- 27:38You can then go to AI
- 27:39and say, here's option A.
- 27:41Here's a brief spec for option A.
- 27:42Let's work together on trying to design
- 27:44this implementation.
- 27:45And then also here's option B.
- 27:48And then you can put both of those to
- 27:49maybe different sets of users.
- 27:50You could do split testing.
- 27:51You could do one and then
- 27:52you could do the other one.
- 27:53But because AI has written the code
- 27:55extremely quickly, you can then use AI to
- 27:58learn about your product.
- 27:59You can use AI to learn about which
- 28:01solutions are correct, which solutions
- 28:03are actually going to drive an outcome.
- 28:05And then ultimately at the end, you can
- 28:07still use AI to write the final code.
- 28:09But the right way to use AI is to use it
- 28:11as a learning tool to teach you about
- 28:13your products, to teach you about your
- 28:15users, and to explore possible
- 28:16interventions you can
- 28:17make in your product.
- 28:19The wrong way to use AI is to just try
- 28:21and collapse the product software
- 28:22development lifecycle
- 28:24into like a shorter time.
- 28:25Because if you do that, you're still
- 28:26going to have the legacy software
- 28:28development lifecycle where you've put
- 28:30all of that learning upfront into
- 28:32designing the perfect spec, and you're
- 28:34still just trying to design the perfect
- 28:36spec over and over again.
- 28:37So you actually need to use AI to help
- 28:39you adjust that spec as so let's say
- 28:42you're trying to improve the way that
- 28:45users flow through one
- 28:46part of your user interface.
- 28:47And there's three or
- 28:48four ways you could do that.
- 28:49Instead of trying to just put all of that
- 28:52into one spec and then use AI to very
- 28:53quickly write that, you can use AI to
- 28:56iterate on different approaches.
- 28:57You can use AI to mock up different
- 28:59versions, experiment with different
- 29:01designs and things like that, get
- 29:03feedback from users, and then ultimately
- 29:05integrate it into every part of that
- 29:07development lifecycle,
- 29:08not just the delivery stage.
- 29:10AI isn't just there to deliver some code
- 29:13to production, it's there to actually
- 29:14help you build that
- 29:15plan using actual software.
- 29:18So product managers have been doing this
- 29:20for a very long time,
- 29:21but usually without code.
- 29:22When a product manager has an idea for a
- 29:24solution, typically they would have
- 29:26worked with a designer to maybe draw up a
- 29:28wireframe or a mock-up, and they might
- 29:31have two or three different versions of
- 29:33the user interface
- 29:33that they've mocked up.
- 29:35And then they'll go to users and they
- 29:36would say, here's some ideas, here's a
- 29:38little thing we've built.
- 29:39You can give us some feedback and we'll
- 29:41make a decision about which of those UIs
- 29:44we're going to go with, and then we'll
- 29:45hand that to an engineering team.
- 29:47Now you can use AI to actually create a
- 29:50real version of those prototypes and put
- 29:53those real versions inside
- 29:54in front of users as well.
- 29:56So you can create thin
- 29:57production slices using AI.
- 29:59You can branch off your main code base or
- 30:01you could just use like lovable to create
- 30:03a separate version of your
- 30:04product that looks similar.
- 30:06And ultimately you're writing code that
- 30:07doesn't necessarily end in production,
- 30:09but you're writing code that helps you
- 30:11learn about the right thing
- 30:12that you should be building.
- 30:14And this is something that can be done
- 30:15both by product managers
- 30:16and by engineers as well.
- 30:18By putting engineers in front of your
- 30:20users, by moving them into a more product
- 30:22engineering role, then you can give
- 30:24engineers the ability to use AI to mock
- 30:27up prototypes and take them to users
- 30:29directly themselves.
- 30:30So instead of asking an engineer just to
- 30:32build a bunch of features and then give
- 30:34them to a product manager, engineers can
- 30:36build a bunch of features quickly with AI
- 30:38and they can take them to users and they
- 30:40can decide which of those
- 30:41ones are worth doubling down on.
- 30:43And then when they've got more context
- 30:44around that decision, maybe they can go
- 30:46to a product leader and ask them to
- 30:48decide, to help them decide which of
- 30:50those solutions they should be pursuing.
- 30:52And at the very end, you can still have
- 30:54the traditional software development
- 30:55lifecycle where AI is just
- 30:56speeding up to the delivery part.
- 30:59And another way to think about AI isn't
- 31:01we can write software more quickly, it's
- 31:03we can kill ideas more quickly.
- 31:06So people usually have a lot more ideas
- 31:08than they have time to implement.
- 31:10Let's say you recognize a problem inside
- 31:12your product and you've got like five
- 31:13different ideas of how
- 31:15you can solve that problem.
- 31:16If you can use AI to explore all five of
- 31:19those ideas at the start, then maybe AI
- 31:21can kill three of those ideas, it can
- 31:23find out that they're failures.
- 31:25In a legacy software development method,
- 31:28if you build the wrong feature three
- 31:30times or you build three of the wrong
- 31:31feature, that will generally be seen as a
- 31:34failure because you've wasted a lot of
- 31:35time going through the software
- 31:37development lifecycle and
- 31:38building those incorrect features.
- 31:39But in an AI powered product engineering
- 31:42model, if you can kill three ideas very,
- 31:44very quickly, then
- 31:45you've actually made progress.
- 31:47So you've actually tested out a bunch of
- 31:48stuff, you've learned what doesn't work
- 31:50and you can resolve around the ones that
- 31:53you are going to build in the file.
- 31:55So AI can be used to compress that
- 31:57feedback cycle between idea and evidence
- 32:00to support whether that
- 32:01idea is correct or not.
- 32:03You can use AI to explore a bunch of
- 32:05different possibilities and then make a
- 32:07much more informed decision about which
- 32:09of those possibilities you should go for
- 32:10in a way that really wasn't
- 32:12feasible before AI existed.
- 32:14When you had to have a team of engineers
- 32:16writing everything by hand, you had to
- 32:18make the right decision from the start.
- 32:20But now with AI, you can
- 32:21make the wrong decision.
- 32:22You can build things that are not
- 32:24necessarily the correct feature.
- 32:25You can do a lot more exploring, you can
- 32:27prototype a lot more ideas.
- 32:29And that's absolutely
- 32:30the right way to use AI.
- 32:32AI should be there to allow you to try
- 32:34out as many different options as possible
- 32:36and then make a much
- 32:37more informed decision.
- 32:38It's not just there to write the code
- 32:40more quickly, it's there to allow you to
- 32:42learn about your product.
- 32:44One interesting thing that you can do to
- 32:46diagnose how effective you're using AI is
- 32:49to inside your organization, try and work
- 32:51out how much of the code that's being
- 32:52written actually
- 32:53makes it into production.
- 32:55Because in the old pre-AI world, you
- 32:58probably find that the vast majority of
- 32:59your code does end up
- 33:01in your final product.
- 33:02And that's because code
- 33:02is very expensive to write.
- 33:04But now that you've got AI, it's actually
- 33:06not a bad thing to have a huge portion of
- 33:08your code not end up
- 33:10in the final product.
- 33:11That's actually a good thing.
- 33:12Because all of those different
- 33:13prototypes, all of those pull requests
- 33:15that ended up getting rejected, they are
- 33:17still teaching you something.
- 33:19You can create branches off of your main
- 33:21code base, do a load of development with
- 33:23AI and use that branch to try and learn
- 33:25something about your product and then
- 33:26ultimately throw that away
- 33:28if it was the wrong decision.
- 33:29So if you're finding that 100% of the
- 33:31code that your AI is writing is still end
- 33:33up in production, then it could be a sign
- 33:35that you're not doing enough exploration
- 33:38and you're not using AI in the most
- 33:39effective way possible.
- 33:41The most effective way to use AI is to
- 33:43try out a bunch of different things and
- 33:46then yeah, maybe only a percentage of
- 33:48those things that you try, maybe only a
- 33:49percentage of that code that you write
- 33:51actually ends up in the final product.
- 33:53That's generally a good thing because it
- 33:55was very, very cheap to write
- 33:56that code in the first place.
- 33:58So there's a little bit
- 33:58of an exercise for you.
- 33:59Have a look at your code base, work out
- 34:01how many pull requests are being rejected
- 34:03because we tried something out and we
- 34:04learned that it wasn't going to work.
- 34:06And then generally see that as like a
- 34:08success because of how quick it was to
- 34:10build those things in the first place.
- 34:12So have a look at your code base, work
- 34:13out whether you're actually using AI to
- 34:15drive learning and not just trying to use
- 34:18it to write more
- 34:18production code more quickly.
- 34:20And then you'll be able to get a sense of
- 34:22where you can use AI that you're not
- 34:23currently using it today.