AI Engineer World's Fair 2026
How to avoid disaster when vibe-coding a billing engine — Andrew Garvin, Stripe
Read the talk
How to avoid disaster when vibe-coding a billing engine
Andrew Garvin demonstrates how Stripe Projects and Metronome turn a request to copy Lovable’s pricing into a billing sandbox—and why useful automation must include domain guidance, simulated usage, and human judgment before production.
From a talk by Andrew Garvin
At a glance
Ideas worth remembering
Billing combines metering with commercial rules for credits, commitments, discounts, and offers. Agent-driven spending makes controls increasingly consequential.
Portable skills provide API expertise before an agent acts; clear, verbose errors provide feedback when an attempt fails.
A billing sandbox needs usage as well as configuration. The demonstration follows test usage into credit drawdown and an inspectable draft invoice, while retaining human involvement before production.
Separate agents as products, buyers, and users. An agent consuming software through one identity can weaken the connection between seat count and the work a platform performs.
A billing engine has more to do than count API calls
A coding agent can operate a billing API while misunderstanding the business model behind it. That is the problem Andrew Garvin, Metronome co-founder, brings to this demonstration with Stripe: getting a complicated billing system running quickly without turning setup mistakes into financial mistakes. The two products have different jobs. Stripe Projects provisions a Stripe account and supporting services through the CLI; Metronome supplies the usage-billing system the agent will configure.
Usage billing combines several kinds of work, each with its own consequences:
- Metering: API activity must enter the billing system as usage. Garvin describes Metronome’s experience metering calls for OpenAI and Anthropic, including work with both companies before they had revenue.
- Commercial rules: The same usage can interact with pay-as-you-go charges, credits, commitments, discounts, and sales-led offers. Counting activity supplies an input; the pricing arrangement determines what the customer owes.
- Spend controls: An agent can keep working and keep spending. Garvin proposes agent-specific wallets as one way to give customers controls over funds an individual agent can spend. This is a direction under consideration, rather than a wallet mechanism demonstrated here.
The risk grows when customers expect a coding agent to operate a deep product without learning its details. Metronome’s response is to improve the developer experience around that agent: supply guidance for the API, make failures easier to correct, and produce an environment in which the financial behavior can be inspected before real customers depend on it.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Provision the environment, then describe the pricing model
The live demonstration begins with Stripe Projects initialization and selection of Claude. Initialization does not immediately succeed; there is a short intervention before the project becomes ready. This distinction matters to the workflow: the natural-language billing request comes after the environment is initialized, rather than replacing that prerequisite.
The request is deliberately small: create a demo billing engine in Metronome that mimics Lovable’s pricing model. Garvin encounters this desire repeatedly in conversations with companies: use an existing business model to get started without first designing every pricing detail. Here, the recognizable starting point is prepaid credits with auto-recharge, a model suited to customers signing up and buying service themselves.
That short prompt sets a target for a much larger configuration task. The agent must translate the pricing idea into Metronome objects and create a demo account around them. The eventual result will need to show how usage changes a customer’s credits and invoice, rather than merely prove that an account exists.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Skills guide setup; clear errors help the agent recover
Metronome’s portable, extensible skills files carry context for agents implementing the product and calling its API. Their purpose is practical: help an agent avoid setup mistakes and get a customer into a test environment with less friction. The one-sentence prompt works within that supplied expertise; it does not explain all of Metronome’s billing concepts by itself. 6:05
An error appears while the agent works. Garvin uses it to explain a second mechanism: deliberately verbose, clear errors give an agent information it can use to correct its actions. Skills provide guidance before a call; errors provide feedback after a call fails. The developer-experience team is looking for additional failure cases, especially during initialization and setup, where better feedback can guide recovery.
How do guidance and feedback fit together? The diagram separates the context that shapes an API attempt from the error information that can shape its correction. Making both available reduces the amount the agent must infer, although it does not transfer responsibility for the business rules to the agent.
The stopping point is explicit: this demonstration creates a sandbox and does not push it into production. Billing is business-critical and carries deep business logic, so Garvin recommends using coding agents to accelerate work into test mode while keeping a human involved. The tradeoff is deliberate. Faster setup is useful; unattended operation of the entire billing system is outside the intended workflow. 7:35
A useful billing sandbox also needs activity. The skills direct the agent to flow usage into Metronome so the resulting customer looks like one actually using a product. A provisioned customer or contract alone leaves the central behavior unexercised: what happens to charges and balances when usage arrives? Stripe Projects supplies the surrounding orchestration, using the CLI to engage Metronome and potentially other backend services through natural-language requests.
Portable files provide implementation and API context.
Skills supply API context. Clear error messages give the agent information for a corrective attempt; human involvement remains part of the billing workflow.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Product, buyer, and user create different pricing problems
While configuration continues, the discussion turns to what “building for agents” actually means. Three roles create different requirements:
- Agent as product: A company sells an agent whose operation can run up a token bill. Metering helps the company account for that consumption in its pricing model.
- Agent as buyer: The Stripe Projects workflow has an agent procure an initial Stripe instance and additional backend services. Providers need their services to be discoverable and usable by an agent assembling an application. This includes business-to-business procurement as well as consumer-facing agentic commerce.
- Agent as user: An agent operates an existing software platform. This changes the relationship between the number of users accessing the platform and the amount of work the platform performs.
The third role puts pressure on seat pricing. If one agent operates an entire system, substantial value can pass through a single user identity. Charging for that identity may then capture little of the work being done. Garvin calls this “headlessness”: software remains useful even as an agent performs work that previously required people interacting with it directly.
HubSpot supplies the concrete commercial example. Garvin describes its move toward credits, beginning in EMEA with lower seat prices and an added credits model, as preparation for agents operating the system. This is his account of an ongoing transition, rather than a demonstrated result for every HubSpot customer. He also recalls an Andreessen demo day where all five presenting companies built sales-led agents to operate systems such as SAP and invoicing platforms—the kind of usage that can concentrate many workflows behind one platform user. 10:34
Credits do not settle every commercial question. The discussion moves from self-service prepaid credits and auto-recharge to enterprise offers: prepaid commitments, postpaid commitments, and arrangements for particular customers. Garvin describes coding-agent companies adopting commitment structures familiar from cloud service providers. That brings the billing problem back to its opening complexity: usage is one input to a negotiated commercial arrangement, and the engine must administer the arrangement as well as the usage.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Follow the demo customer from usage to a draft invoice
Opening Metronome takes a little stage time: “I love all these demos where you’re just looking at people logging in.” Once inside, the human onboarding wizard is unnecessary because the agent has already configured the environment. The customer view contains a demo customer with populated lifetime spend. These values belong to the test environment, not to a real customer’s purchases.
The first inspection is the customer’s draft invoice. The pricing model reproduced here combines monthly auto-recharge with credits scoped to different kinds of usage. In Garvin’s explanation of this model, spending beyond those credits produces an invoice at the end of the period. That requires the engine to keep track of which credits can pay for which activity, as well as what remains chargeable after credits are used.
Follow the same customer through the visible change. The agent created a credit for the initial test period, then supplied usage that drew down the entire credit balance. Returning to the customer view reveals that inserted usage; returning to the draft invoice reveals the billing components associated with the model. Metronome makes the credit a first-class object, so the credit and its consumption can be inspected rather than being hidden inside an undifferentiated invoice total. 14:45
What relationship should a reviewer trace between usage, credits, and the invoice? The diagram follows the demonstrated drawdown and separates it from the stated rule for spending beyond credits. The observable result is a consumed test balance and an inspectable draft invoice; the recording does not establish the exact rates, recharge thresholds, or credit-expiration behavior needed to validate a complete production reproduction.
The invoice exposes four distinct components:
- Build credits: The credit component for build usage.
- Plan mode credits: A separate component for plan mode usage.
- Cloud credits: A component for cloud usage.
- AI gateway credits: A component for AI gateway usage.
Their separation is the useful detail. A reviewer can inspect the model’s different usage scopes instead of treating every credit as interchangeable. The original natural-language request named the model; the resulting sandbox makes its component structure available for examination.
Activity inserted into the demo customer’s environment.
The demo shows usage drawing down the initial test-period credit balance. Garvin separately describes end-of-period invoicing for spending beyond credits.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Use the working sandbox to make the next decision
The completed sequence is concrete: initialize a Stripe instance, create a Metronome instance through Stripe Projects, and ask the agent to configure a demo around an existing pricing model. From there, the work becomes testing and tweaking the model before bringing it into production. The agent has accelerated the path to something a human can examine: a customer, usage, credits, and a draft invoice with separate components.
The ending extends this pattern beyond billing. First determine whether an agent is the product, the buyer, or the user, because those roles create different pricing and integration requirements. Then give the agent enough procedural guidance to work effectively in a difficult environment. The combination matters: understanding the commercial role tells you what to build, while skills and useful feedback help the agent build a testable version.
Stripe Projects also becomes a place where providers can make their products discoverable to agents operating through Stripe’s system. Garvin closes with Vercel and Hugging Face as examples of providers working in that environment. Procurement, setup, and product-specific guidance meet in the same development workflow. For billing, its useful destination is a populated sandbox from which a person can decide what should happen when real usage and real money arrive.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Resources
Related talks
- Don't Build Agents, Build Skills Instead
Develops the reusable procedural-knowledge approach behind Metronome’s portable skills files.
- Mastering AI Pricing — Mayank Pant, Stripe
A next talk for exploring the pricing decisions that a billing engine must implement.
- Give the Agent a Budget, Not a Token — Sachin Malhotra, Anthropic
Continues the question raised by runaway agent spending and agent-specific financial controls.
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]