AI Engineer World's Fair 2026
How to avoid disaster when vibe-coding a billing engine — Andrew Garvin, Stripe
Read the talk
Building a billing sandbox with agents—and keeping control of the money
Andrew Garvin demonstrates how Stripe Projects and Metronome turn a natural-language pricing request into a test customer, usage and a draft invoice, then explains why that acceleration still needs human judgment.
From a talk by Andrew Garvin
At a glance
Ideas worth remembering
A short billing prompt depends on substantial supporting context: portable skills files guide API use, and clear errors help agents recover from unsuccessful operations.
Billing tests need consumption as well as configuration. The demonstration sends usage through a test customer, draws down credit and exposes the result in a draft invoice.
Agent-assisted setup should reach a sandbox that humans can test and refine. The demonstrated configuration is not evidence of production readiness or deployment.
Agent products create metered costs, agent buyers need discoverable services, and agent users can concentrate substantial work in one account. These are distinct reasons to rethink pricing and integration.
Credits carry business rules. Scoped usage, recharge, overage and enterprise commitments require more than a counter of API calls.
Provisioning a business through the CLI
Andrew Garvin, a co-founder of Metronome, introduces a joint project with Stripe following Stripe’s acquisition of the usage-billing company. The demonstration combines Stripe Projects with a Metronome billing agent: one system orchestrates setup, while the other configures the billing environment.
Stripe Projects provisions a Stripe account and the backend services an application needs through the CLI. That makes infrastructure setup accessible to coding agents as part of building an application. Garvin reports that Stripe CLI use increased exponentially over the preceding five or six months, an observation that motivates treating agents as consequential users of developer tools.
Billing makes this convenience a difficult engineering problem. Garvin describes Metronome as a deep, complicated product that customers increasingly expect to operate through coding agents. The developer-experience challenge is to help those agents configure it correctly, rather than merely make its API callable.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Billing reaches beyond counting API calls
Garvin starts with metering: he says Metronome has processed API-call usage for OpenAI and Anthropic since before those companies had revenue. But measured consumption is only one part of a bill. A usage-based business can also have credits, commitments, sales-led discounts and offers. The system must account for those commercial arrangements as well as the underlying activity.
Agents increase the consequence of mistakes because they can keep spending. Garvin describes work toward controls that Metronome’s customers could expose to their own customers, including an agent wallet from which the agent is allowed to spend. The wallet would provide a place to constrain spending. He presents this as a direction for controls, without specifying enforcement rules or demonstrating a spending limit.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Requesting a familiar pricing model
The live demonstration begins by initializing Stripe Projects and selecting Claude. Setup initially stalls: another participant points out that the project has not initialized, helps resolve the problem, and Garvin proceeds once the project is ready. Even this short provisioning path requires an intervention before the billing request can begin.
Garvin then asks in natural language for a demo billing engine in Metronome that mimics Lovable’s pricing model. He chooses this example because companies often want to adopt an existing business model to get started quickly. The feature he highlights at this point is prepaid credit with auto recharge, which he describes as common in self-service businesses. The request supplies a commercial reference for the agent to implement, rather than a detailed sequence of API operations.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Give the agent context, feedback and a sandbox
While the agent works, Garvin explains the guidance behind the short prompt. Metronome has invested in an extensible set of portable skills files that supply context for implementing the product and using its API. These files are meant to reduce setup friction and guide the agent around mistakes in a complicated system. They can also be installed for use outside this demonstration.
Errors provide a second form of guidance. When an error appears during the run, Garvin argues for more verbose, clearer messages so that an agent can correct itself. Skills files provide context before an operation; useful errors give feedback after an unsuccessful attempt. His team is looking for additional failure cases, particularly during initialization and setup. No particular error message or recovery sequence is explained in detail.
The intended destination is a test environment. Garvin explicitly rejects operating the entire billing system without a human in the loop because it is business-critical and contains deep business logic. The coding agent should accelerate the work required to reach a sandbox where people can evaluate the result. This demonstration does not push the configuration into production.
A useful billing sandbox must contain activity. Seeing a provisioned customer or a contract does not show how the configuration behaves when usage arrives. The skills files therefore direct the agent to send usage into Metronome, making the test customer resemble an active customer. This turns setup into something a person can inspect through its billing behavior.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Separate the agent product from the agent buyer
Garvin broadens the provisioning example: the Stripe CLI is engaging with Metronome as a service provider, and the same approach could request other applications through natural language. The immediate benefit is less work to establish a test application or environment. He connects this to Stripe’s work on agentic commerce and reports growing business formation and use of Stripe and Metronome through coding agents.
Building for agents can mean several different things. First, the agent can be the product a company sells. Its operation can accumulate a token bill, which gives the company a reason to meter consumption and use a usage-based pricing model. Here the billing problem follows from the cost of delivering the agent’s work.
Second, an agent can be the buyer. In the Stripe Projects example, it procures the initial Stripe instance and additional backend services. This role makes discoverability important: a service must be findable by an agent building an application or working on the web. Garvin distinguishes the consumer-commerce context from Metronome’s business-to-business context, while treating both as cases of agents acquiring services.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
When the user is an agent, seats lose their meaning
The third role is the agent as a user of existing software. Garvin describes HubSpot as moving toward a credit-based business model, starting in EMEA with lower seat prices and added credits. His explanation is that an agent may operate the entire system: access for an individual seat then becomes a weaker measure of the work performed through the product.
He connects this to headlessness: software can remain useful while an agent operates it instead of people working through its interface. At a demo day the previous week, he says, all five presenting companies showed agents intended to operate platforms such as SAP or invoicing systems. His pricing concern is that substantial value could flow through one user—the agent. Usage-based pricing offers a way to charge for activity when the number of users no longer reflects how much work the platform supports.
Credit pricing also expands beyond a self-service auto-recharge offer. Garvin points to enterprise coding-agent businesses, including Cognition, Cursor, OpenAI and Anthropic, adopting commitment structures resembling those used by cloud service providers. He names prepaid commitments, postpaid commitments and offers tailored to particular customers. A billing implementation therefore needs to represent the commercial agreement as well as the consumption it measures; a single generic credit model may not express every enterprise offer.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Inspecting the customer, credits and draft invoice
After opening Metronome and working through login, Garvin skips the usual human onboarding wizard because the agent has already configured the environment. He opens the test customer, whose displayed lifetime spend was populated for the demonstration, and then a draft invoice. These are the concrete results of the setup: an inspectable customer and billing output, rather than only an agent’s completion message.
Garvin describes the replicated model as credit-only pricing with monthly auto recharge, multiple credit types scoped to different kinds of usage, and an invoice at the end of the period if the customer overspends. Scope matters because a credit belongs to a particular category of consumption. The billing configuration must distinguish which usage can draw against which credit, then account for spending beyond the available credits.
Metronome represents a credit as a first-class object. In the test period Garvin inspects, a credit was created and usage drew down its entire balance. He returns to the customer view to show the inserted usage, explaining that production would receive actual customer activity. The purpose of this populated example is to reveal what adopting the pricing model would look like once consumption begins.
The draft invoice exposes separate components for build credits, plan mode credits, cloud credits and AI gateway credits. Garvin emphasizes that his request was simply to replicate Lovable’s pricing in natural language. The result demonstrates the creation of these billing components and test activity; he does not walk through exact rates, recharge thresholds or exhaustive validation of the model.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Use the working example as the beginning of testing
Garvin closes by tracing the completed sequence: create a Stripe instance, create a Metronome instance through Stripe Projects, and guide the agent to configure a demo around an existing pricing model. The next step is to test and adjust that configuration before bringing it into production. His reference to a model already used in production describes the model being copied; it does not establish deployment of the demonstration environment.
He argues that the same development approach has uses beyond billing. Teams should distinguish agents as buyers, products and users, because each role has different implications, and provide guidance that helps agents operate effectively in difficult environments. The aim is to make complicated business systems easier to get started with while preserving the opportunity to examine and refine their behavior.
The final invitation is to try Stripe Projects and explore its providers. Garvin names Vercel and Hugging Face as examples of companies working in that environment to make their products discoverable to agents operating through Stripe. This extends the demonstration’s significance: agent-accessible provisioning becomes a way for service providers to reach the software that selects and assembles an application’s dependencies.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Read the complete timestamped transcript
- 0:01
[music]
- 0:12
Hi everyone. My name is Andrew Garvin.
- 0:15
I'm one of the co-founders of Metronome.
- 0:17
Metronome, if you're not familiar, is
- 0:19
the top platform for usage billing,
- 0:21
which as you might imagine is taking off
- 0:22
right now. Um, so much so that earlier
- 0:24
this year we were acquired by Stripe in
- 0:26
the largest deal that Stripe has ever
- 0:28
done. Um, and what I'm going to show you
- 0:30
today is a fun project that we've been
- 0:31
cooking on with the Stripe team. Um,
- 0:34
that is a demonstration of some of the
- 0:35
things that we could work on together.
- 0:38
Um, this is going to combine two very
- 0:40
different uh products within Stripe. Um,
- 0:44
if you haven't seen it already, I
- 0:45
recommend looking at Stripe Projects.
- 0:46
Just open up open that up on your phone
- 0:49
while I'm going through this. Um, this
- 0:51
is something that actually was launched
- 0:52
literally the week that Metronome was
- 0:53
acquired. And so, as you might imagine,
- 0:55
the velocity of development at Stripe
- 0:57
and at Metronome is pretty high.
- 0:59
Basically, what Stripe Projects is is
- 1:00
it's an orchestrator to allow you to
- 1:03
operate and build your business as fast
- 1:05
as possible. Um, and so in essence, what
- 1:08
it does is it provisions a Stripe
- 1:09
account for you as well as backend
- 1:12
services that you may need, think like
- 1:13
Versel, Postgress, and in this case, a
- 1:16
metronome billing agent in order to
- 1:18
launch a product quickly or an
- 1:19
application quickly all through the CLI.
- 1:22
Um, so the demonstration that we're
- 1:23
going to do today is a very simple
- 1:25
demonstration of how to get set up
- 1:27
through Stripe projects, but you can
- 1:28
imagine all the sorts of things that
- 1:29
people are building on Stripe today. Um,
- 1:32
one of the really cool aspects of being
- 1:33
inside Stripe is their scale and data.
- 1:36
Um, and one of the things that we've
- 1:38
observed inside of Stripe is that the
- 1:40
use of Stripe's CLI has exponentially
- 1:43
increased over the course of the past
- 1:44
five six months. We're thinking about
- 1:46
all of the implications of the coding
- 1:48
agents operating systems which we'll get
- 1:50
into uh a greater topic on later in this
- 1:53
demonstration. Um so the beginning part
- 1:56
was sort of the thesis for this is how
- 1:58
to avoid dis disaster when vibe coding a
- 2:00
billing engine. Uh as you might imagine
- 2:02
being in the billing space for multiple
- 2:03
years now we've seen all sorts of crazy
- 2:05
things happen and it's even getting
- 2:06
crazier now that people are expecting to
- 2:09
operate metronome a very complicated and
- 2:11
deep product with a coding agent. Um,
- 2:14
and so as a result, we are working from
- 2:16
a developer experience standpoint to
- 2:18
make this a more seamless experience for
- 2:20
people and to have them avoid disaster.
- 2:23
Um, and so we're going to see in a
- 2:26
second what that de a demonstration of
- 2:27
what that might look like and how we're
- 2:29
guiding things. Um, but just to frame it
- 2:31
the what's happening today in with
- 2:33
launching agent products can go crazy
- 2:36
and it can go sideways in all sorts of
- 2:37
ways. So as just a couple of the types
- 2:39
of problems that metronome helps solve
- 2:41
for folks. Uh first we are for example
- 2:44
and have for many years now taken in all
- 2:46
of the API calls to OpenAI and Enthropic
- 2:49
and metered that for those companies.
- 2:50
We've worked with those companies since
- 2:52
before they had any revenue. Uh and so
- 2:54
obviously we've operated at global scale
- 2:55
operating a metering service with a
- 2:57
number of different data impacts. In
- 2:59
addition to that we also operate credit
- 3:01
models. Obviously today with usage based
- 3:03
pricing it's not just about having a pay
- 3:05
go uh metered business model but also
- 3:07
all sorts of different forms of credits
- 3:09
commits salesled uh discounts and
- 3:12
offers. And then finally now in in the
- 3:14
last 6 months especially the impact of
- 3:17
failures here is growing in importance
- 3:21
in particular because agents can run
- 3:22
away with spend and so we're thinking
- 3:24
about how to give more controls to our
- 3:27
customers that they can offer to theirs.
- 3:29
So think like for example having agents
- 3:32
have a wallet um that they only they can
- 3:34
spend from and having controls at that
- 3:36
level. Okay. So that's what we're going
- 3:38
to go into today. Let's actually get
- 3:40
into doing this demonstration. You're
- 3:42
going to see how simple it is. Um so I'm
- 3:44
going to initialize Stripe projects
- 3:46
right now.
- 3:51
[sighs]
- 3:52
Oops.
- 3:54
And this is in fact a live demo. So you
- 3:56
should expect all sorts of different
- 3:57
things to happen here. So what this is
- 4:00
doing is again initializing stripe
- 4:02
projects. Um we are going to I think
- 4:04
this should work.
- 4:07
Um so we've selected that we're going to
- 4:09
use claude here and we have a very
- 4:11
simple thing. What I I go around the
- 4:13
world basically talking with companies
- 4:14
about their business model.
- 4:15
>> It's not initialized.
- 4:17
>> Aha. I see.
- 4:21
All right. Come on up.
- 4:25
Cool.
- 4:35
[snorts]
- 4:37
I got it.
- 4:38
>> All right. Thanks.
- 4:44
[snorts]
- 4:46
>> All right. Sweet. Um, yes. Let's
- 4:49
proceed.
- 4:52
Cool.
- 4:56
All right. So, our product, our project
- 4:58
is in fact ready now.
- 5:01
And so, I go around the world talking
- 5:03
with companies about how to set up their
- 5:04
businesses. One of the things that's
- 5:05
really top of mind right now is um
- 5:08
replicating certain business models.
- 5:10
People want to get off the ground
- 5:11
without having to think about it too
- 5:12
deeply. One of the key topics right now
- 5:14
is replicating Lovable's pricing model.
- 5:17
And so I'm going to enter a prompt in
- 5:21
natural language that allows us to guide
- 5:23
the metronome billing agent and Stripe
- 5:26
to set up a demo account that has that
- 5:28
um that has that element to it and
- 5:31
create a demo billing engine
- 5:35
uh in Metronome mimicking
- 5:40
the lovable pricing model. Oops. Just
- 5:42
make sure I don't misspell that.
- 5:45
Um, and so if you want to on the side
- 5:47
you can see you can open up Levable's
- 5:49
pricing and you can see all the
- 5:50
different elements to it. But in
- 5:51
particular they have a prepaid credit
- 5:53
auto recharge model which is very common
- 5:55
in um in sort of a self-s served motion
- 5:58
today. Um so let's get this going. Um so
- 6:02
while this is going I want you to pay
- 6:03
attention to a couple of things that
- 6:05
will happen. Um and in particular if you
- 6:07
look at the obviously the slide on the
- 6:09
left there's a couple different points
- 6:10
that I want to hit on. So first um again
- 6:13
metronome is a very complicated and deep
- 6:15
product and uh there's a lot of
- 6:17
different ways to hit foot guns etc uh
- 6:20
if you're not guided and so what we've
- 6:22
invested in is building an extensible
- 6:23
set of skills files that can provide
- 6:25
context to the agent that's implementing
- 6:27
metronome and working with our API. Um
- 6:30
these skills files are also portable and
- 6:31
easy to install so you can use them on
- 6:33
your own side. Um and what it does is it
- 6:35
allows us to essentially remove the
- 6:37
friction associated with getting
- 6:39
started. Um and so here uh that and
- 6:42
that's very important because you want
- 6:44
to be able to test and work with the
- 6:46
product and evolve over time. You're
- 6:47
seeing here in error code um from a
- 6:49
developer experience standpoint. You
- 6:51
know this is nothing new but our our
- 6:53
perspective is to have much more verbose
- 6:56
and clear errors so that the agent can
- 6:59
self-correct. Um and uh and so again our
- 7:03
developer experience teams are working
- 7:05
on finding more failure cases like that
- 7:08
um and being able to help guide
- 7:09
especially in the initialization and
- 7:11
setup. Um one thing that's that's
- 7:13
important here I think keying off of the
- 7:16
last talk that was in this room. Um the
- 7:19
goal that we have from a product
- 7:20
development standpoint is not to have a
- 7:22
customer operate the entire system
- 7:25
without a human in the loop. This is a
- 7:27
type of system that is both business
- 7:29
critical, has deep business logic behind
- 7:31
it. And so instead, what we are
- 7:33
recommending and building toward is to
- 7:35
use the use your coding agent as a way
- 7:38
to accelerate your work and get into a
- 7:41
test mode and test environment. Um, and
- 7:43
so again, what we're doing here, we're
- 7:45
not expecting to ship into production.
- 7:46
We're not pushing it into production. In
- 7:48
fact, when we go into the metronome
- 7:49
environment, you'll see that basically
- 7:51
what we've done is built a sandbox
- 7:52
experience. Um and in the metronome
- 7:55
context there's what it means to sort of
- 7:57
test your initial setup is not just that
- 7:58
you can see uh a contract or something
- 8:01
like that or see a customer provision
- 8:03
but also you need to see usage and so in
- 8:06
in on the back end here our skills files
- 8:08
are directing um the agent to actually
- 8:11
flow usage into the metronome platform
- 8:13
so that you can see what a live uh in
- 8:16
what a live customer would look like. Um
- 8:19
I'm going to do one more beat on stripe
- 8:21
projects here. I think in this case
- 8:23
what's happening is that stripe projects
- 8:25
so so using the stripe CLI it's it's
- 8:27
engaging with metronome which is an
- 8:29
external vendor here you could also
- 8:30
imagine also provisioning a bunch of
- 8:32
other applications uh and using natural
- 8:34
language to call for those as well um
- 8:36
and so what again what's nice about this
- 8:38
is that it basically removes the
- 8:40
friction associated with setting up a
- 8:42
test application or a test environment
- 8:44
um and we again have seen a ton of uh of
- 8:48
usage of this form um and we expect to
- 8:51
see even more. Um, this is sort of like
- 8:54
from our perspective coming into Stripe,
- 8:56
this is one of the things that's been
- 8:57
really amazing is that Stripe is on the
- 8:59
forefront of thinking about agentic
- 9:00
commerce and preparing primitives for
- 9:03
the moment that we're in right now where
- 9:04
in fact this is exactly what's
- 9:06
happening. Companies that are launching
- 9:08
new um new applications and new
- 9:10
businesses that we've seen an
- 9:11
exponential increase in new business
- 9:13
formation at Stripe. Um and then in
- 9:15
addition to that an exponential increase
- 9:17
in customers that are using Stripe and
- 9:20
using Metronome through the coding
- 9:21
agents themselves.
- 9:24
Okay. Um
- 9:27
we are almost done here I believe.
- 9:30
Um, while this is going, I I like
- 9:33
another sort of like thing to sit back
- 9:35
and think about when I go around to
- 9:37
product teams today. They're obviously
- 9:38
thinking about building for agents, but
- 9:40
I think one of the things that's
- 9:41
important to do is to de decode what
- 9:43
exactly does that mean? And so I what I
- 9:45
like about this sort of framework for
- 9:48
thinking about the coding agents today
- 9:50
is thinking about the different roles
- 9:52
that they play. So obviously companies
- 9:54
are launching agents as a product and
- 9:56
therefore that's one of the reasons why
- 9:58
they need to have a usage based pricing
- 9:59
model because if the agent can be the
- 10:01
product and run up token a token bill
- 10:03
it's important for you to be able to
- 10:05
meter on that. Um what we're talking
- 10:07
about here with the Stripe project CLI
- 10:09
is the agent as a buyer. So literally
- 10:12
procuring their initial Stripe instance
- 10:14
as well as additional backend services.
- 10:17
That's important to basically make your
- 10:19
services discoverable to agents that may
- 10:21
be building an application or working in
- 10:24
the open web. Um, on the Stripe side,
- 10:26
that means both in a B2C environment, so
- 10:28
they're working on a gentommerce, but
- 10:29
then in the metronome environment, we're
- 10:30
talking about in a B2B context. Um, and
- 10:33
uh, and so there's sort of like multiple
- 10:34
different levels to play out there. And
- 10:36
then finally, one of the reasons why
- 10:38
Metronome is really taking off right now
- 10:39
is because of the agents as a user. Um,
- 10:42
and so for example, we've been working
- 10:44
with HubSpot for the past couple of
- 10:45
years. They are currently on a path to
- 10:47
transform their entire business from a
- 10:49
seatbased model to a creditspbased
- 10:50
model. Um, if you've seen some things in
- 10:52
the news, that's starting in in EMIA
- 10:55
where they have dramatically lowered
- 10:56
their seats based price and added on a
- 10:58
creditspbased model. The fundamental
- 11:00
reason behind that is because what they
- 11:01
need to be concerned about is a world in
- 11:04
which an agent can operate their entire
- 11:05
system. Um, and in that world
- 11:08
essentially paying for a seat level
- 11:10
access to the product to perform your
- 11:11
work is no longer important in some
- 11:13
sense. Um, we've been talking about this
- 11:16
in uh as sort of headlessness. You know,
- 11:18
Salesforce, various others have have
- 11:20
talked about this. This is what
- 11:21
Metronome is literally seeing today. Um,
- 11:23
and so as like one example, last week I
- 11:25
was at a uh I was at Andre's demo day
- 11:29
where all five of the demoing companies
- 11:31
were salesled agents meant to operate
- 11:34
platforms like SAP or operate um operate
- 11:38
invoicing platforms, etc., etc. Um, and
- 11:41
again in that world, it's important for
- 11:43
you to have a usagebased pricing model
- 11:45
because you have the possibility of
- 11:46
essentially all of the value acrewing to
- 11:48
essentially one user of your platform,
- 11:51
which in this case would be an agent.
- 11:54
If you guys are thinking about pricing
- 11:56
models, so not just developing in the
- 11:58
agentic space, I'm a good person to talk
- 11:59
to. I'll be out here in a second. Some
- 12:01
of the things that we're um thinking
- 12:03
about here are basically um not only
- 12:06
having a creditsbased model which has
- 12:08
been uh dominant on the market since
- 12:10
openai launched their prepaid credit
- 12:12
auto recharge model a couple of years
- 12:13
ago through metronome but in addition to
- 12:16
that offering more and like more and
- 12:18
extended offers including in a salesled
- 12:20
in an enterprise environment um and so
- 12:22
for example what's happening with all
- 12:24
the coding agency in the enterprise
- 12:25
think like cognition or cursor or openAI
- 12:28
anthropic themselves is that they are
- 12:30
starting to adopt more um uh commit
- 12:34
structures like the CSPs have done for
- 12:36
the past 10 years. Think having prepaid
- 12:38
commitments, postpaid commitments, and
- 12:40
specific types of offers for specific
- 12:42
types of customers.
- 12:44
Okay, I think that we should be good to
- 12:46
go now. And let's see what it looks like
- 12:48
when we open up Metronome.
- 13:01
Okay.
- 13:11
What's up?
- 13:15
Uhhuh.
- 13:17
We've done multiple different versions
- 13:18
of this, as you might imagine.
- 13:28
Okay. So, as we open this up, uh,
- 13:33
pull this.
- 13:45
It's fun. I love all these demos where
- 13:46
you're just looking at people logging
- 13:47
in. Um, so as we open this up, so the
- 13:50
general pain that Metronome has is an
- 13:51
onboarding wizard meant for a human that
- 13:53
needs to set up their environment. We've
- 13:56
we don't need this now because we had an
- 13:58
agent set up this environment. And as I
- 14:00
come in, you're going to see some of the
- 14:01
core metronome primitives here. Let's
- 14:03
start by looking at the customer that
- 14:04
was set up. Again, this is for testing
- 14:06
purposes. Um, up at the top, you're
- 14:08
seeing the customer with a certain
- 14:10
lifetime spend. This was auto again
- 14:12
populated by um by the agent for the
- 14:15
demo environment. Um I'm immediately
- 14:17
going to go into their invoice and we'll
- 14:20
come back to this in a second. Um and so
- 14:22
what you what you see here is a draft
- 14:24
invoice that was created associated with
- 14:27
um sort of replicating the lovable
- 14:29
pricing model again. Um so if you have
- 14:31
this on the side you can see all the
- 14:32
different elements of that. But the core
- 14:33
aspect of lovable's pricing model is a
- 14:35
creditonly pricing model where you
- 14:37
autorecharge on a monthly basis. Um and
- 14:40
then in add in addition to that they
- 14:41
have multiple different types of credits
- 14:43
that are scoped to different types of
- 14:44
usage beyond the the use of those
- 14:47
credits. Then if you go over and if you
- 14:49
overspend then you have an invoice at
- 14:51
the end of the period. Um so a couple of
- 14:53
the different like concepts there that
- 14:55
are relatively complicated to administer
- 14:57
is the credit itself. And so Metronome
- 14:59
has a first class uh credit object here.
- 15:01
What you're seeing is that there was a
- 15:02
credit credit created for the initial
- 15:04
period that we're testing for. we had
- 15:06
usage that that draw that drew down from
- 15:08
that entire credit balance. And then
- 15:10
finally, if we go back to the customer
- 15:12
pane,
- 15:14
um in addition to that, you can see the
- 15:16
usage that we that we plopped in. All
- 15:18
obviously in a production environment,
- 15:19
you would be seeing this in against real
- 15:22
usage that you have. The core reason
- 15:24
again to show it in this manner is to
- 15:26
just see what it would look like if you
- 15:29
adopted the pricing model and then had
- 15:30
real usage against it. Again, I'm going
- 15:32
to come back to the invoice. And so here
- 15:34
you can click into each of these
- 15:35
different components. Um, build credits,
- 15:37
plan mode credits, cloud credits, AI
- 15:38
gateway credits. This is exactly what
- 15:40
the lovable pricing model looks like.
- 15:41
And again, the way that we coached the
- 15:43
agent to be able to do to to build this
- 15:46
was just describing a natural language
- 15:47
to replicate lovable pricing model. It
- 15:49
was nothing more difficult than that.
- 15:51
Um, so without going into Metronome's
- 15:53
platform to too great an extent, um, the
- 15:56
what we just did here was we initialized
- 16:00
uh and created a stripe instance. We
- 16:02
then in through Stripe projects uh we
- 16:05
also created a metronome instance. Then
- 16:08
we coached the agent to be able to uh
- 16:11
build a demo instance of metronome that
- 16:14
had a real pricing model live in
- 16:16
production. And so you could imagine
- 16:17
basically testing then from there the
- 16:20
exact testing and tweaking from there
- 16:21
exactly what you wanted before bringing
- 16:23
that into production. Um this sort of
- 16:25
framework for thinking about development
- 16:27
both applies to Stripe where we are
- 16:30
working very very hard to make it easier
- 16:32
to uh run a complicated business model
- 16:35
and get off the ground but also I think
- 16:36
it bears lessons for how we might pursue
- 16:39
agentic development more generally
- 16:40
outside of Stripe. So again, think about
- 16:42
some of the primitives that we talked
- 16:44
about here today. Agent as a buyer,
- 16:46
agent as your product, agent as your
- 16:47
user and disambiguating what the
- 16:49
different the different um modes and uh
- 16:52
and like implications of those are. And
- 16:54
then in addition to that um having
- 16:56
having ways in which we coach the agent
- 16:58
to operate more effectively in including
- 17:01
in a in a in a difficult environment.
- 17:03
You can try this for yourself now. So uh
- 17:05
the easiest way to get started is with
- 17:07
the commands that are that are listed
- 17:09
here and you can see everything that is
- 17:11
available through Stripe Projects
- 17:12
through Stripe Projects online. Um as
- 17:14
there are a number of different
- 17:16
providers that are onboarding every day.
- 17:18
Um so companies like Versell um like
- 17:21
hugging face etc are basically like
- 17:24
working in Stripe projects environment
- 17:26
to be able to make their own products
- 17:28
more discoverable to agents that are
- 17:30
operating Stripe system.
- 17:46
>> [music]