Lesson 5 · Module 6: From Build to Business: AI Agency and Micro-SaaS
Subscriptions and payments: charging customers every month
- What recurring revenue is and how to measure it
- How to set up subscriptions with a no-code billing tool
- How to connect payments to your agents automatically
Why this matters
Many new AI agency owners finish a build and then spend every month chasing invoices by hand, with income that rises and falls with their memory. Recurring billing turns a one-off project into predictable income, and connecting payments to the agent means a client who pays gets switched on automatically and a client who stops paying is paused before costs pile up.
Key ideas
- Monthly recurring revenue (MRR). MRR is the total of all repeating subscription charges in one month. Setup fees are one-time, so they stay out of it. For example, three clients on monthly plans at 299, 149 and 149 dollars give an MRR of 597 dollars, while their 500 and 300 dollar setup fees are not counted.
- Billing tool. A billing tool such as Stripe Billing, Paddle or Lemon Squeezy stores cards, creates invoices on schedule, retries failed charges and emails receipts, so you never write payment code yourself.
- Webhook. A webhook is an automatic message that a service such as Stripe sends to an address you choose whenever an event happens, like a payment succeeding. It is how payments reach your workflow.
- Subscription states. A subscription moves from checkout to active, and a failed payment sends it into retries and reminders. Only repeated failures lead to cancellation.
- Status gate. Your agent should check a subscription status column, updated only by webhooks, before it does any work. If the status is not active, the workflow stops, so you do not pay model costs for a client who has left.
Try it before you watch
A client pays 149 dollars a month and also paid a one-time 300 dollar setup fee. What does this client add to MRR?
Show answerHide answer
149 dollars. MRR counts only the repeating monthly charge, so the 300 dollar setup fee is left out. This shows why MRR is a better guide to next month's income than total revenue.
Words to know
- MRR: monthly recurring revenue, the sum of all repeating subscription charges in a month.
- Invoice: a bill sent to a client listing what they owe for a period.
- Webhook: an automatic message sent by one service to another address when an event happens.
- Dunning: the process of retrying and reminding a customer after a failed payment.
- Metered usage: a charge based on how much a client used, such as extra messages above an included amount.
- Seller of record: the company legally selling to the customer, which also handles sales tax in some tools such as Paddle.
What to watch for
- Watch how the three kinds of pricing (setup fee, retainer and usage) turn into prices on one monthly invoice.
- Notice how a failed payment leads to retries and reminders before any cancellation.
- Follow the single payment path from the payment link through the webhook to the sheet and the agent switching on.
Learn it with your tutor on the live board
Key points from the video
The month-end chase
- You built a booking agent for three clients
- Every month you send invoices by hand
- One client pays late, one forgets entirely
- Your income depends on your memory
events:
- {date: 2026-10-30, label: Invoices by hand}
- {date: 2026-11-08, label: Salon pays late}
- {date: 2026-11-28, label: Gym forgets}
periods:
- {from: 2026-10-01, to: 2026-11-30, label: One month}
steps:
- at: "Picture this"
show: [One month]
note: "The same routine, every month"
- at: "You built a booking agent"
note: "A dental clinic, a salon, a gym"
- at: "The agents work beautifully"
note: "The agents run well"
- at: "write three invoices by hand"
show: [Invoices by hand]
- at: "The salon pays late"
show: [Salon pays late]
- at: "The gym forgets entirely"
show: [Gym forgets]
- at: "Meanwhile their agents keep running"
note: "Costs keep coming in"
- at: "depends on your memory"
show: all What you will learn
- What recurring revenue is and how to measure it
- How to set up subscriptions with a no-code billing tool
- How to connect payments to your agents automatically
tree:
Today: [Recurring revenue, Billing tool, Your agents]
steps:
- at: "Here's the plan for today"
note: "Three things to learn"
- at: "First, you'll learn what recurring revenue"
show: Recurring revenue
- at: "Second, you'll see how to set up"
show: Billing tool
- at: "Third, and this is the part"
show: Your agents
- at: "a client who pays gets their agent switched on"
note: "Paid, so the agent switches on"
- at: "a coin on the first of every month"
note: "A coin on the first of the month"
- at: "a robot that watches it for you"
highlight: [Recurring revenue, Billing tool, Your agents] Monthly recurring revenue
- MRR: what your subscriptions bring in each month
- Only repeating charges count
- One-time setup fees stay out
cells:
A1: Client
B1: Plan
C1: Monthly fee
D1: Setup fee
A2: Bright Smile Dental
B2: Growth
C2: 299
D2: 500
A3: Glow Salon
B3: Starter
C3: 149
D3: 300
A4: Peak Fitness
B4: Starter
C4: 149
D4: 300
A5: MRR
format: {C: currency:0, D: currency:0}
steps:
- at: "short for monthly recurring revenue"
note: "MRR = monthly recurring revenue"
- at: "bring in every month"
note: "Money in each month"
- at: "Only repeating charges count"
select: C2:C4
note: "Repeating charges only"
- at: "three clients on monthly plans"
select: C2:C4
- at: "five hundred and ninety-seven"
type: {C5: "=SUM(C2:C4)"}
highlight: C5
- at: "setup fees sit outside"
select: D2:D4
- at: "They're real income"
note: "Real income, but only once"
- at: "MRR does"
select: C5
- at: "grows each month"
highlight: C5
note: "Grows each month" Turning your pricing into plans
- Setup fee: a one-time charge at signup
- Retainer: a fixed monthly subscription
- Usage: a metered charge for extra volume
- Billing tools support all three together
layout: full
parts:
setup: {chip: Setup fee, sub: "One time"}
retainer: {chip: Monthly retainer, sub: "Every month"}
usage: {chip: Usage counted, sub: "Extra volume"}
bill: {box: One invoice, holds: [setup, retainer, usage]}
steps:
- at: "priced your work with setup fees"
note: "Setup fees, retainers, usage"
- at: "becomes something a billing tool understands"
note: "Each one becomes a price"
- at: "The setup fee is a one-time charge"
highlight: setup
- at: "The retainer becomes a subscription price"
highlight: retainer
- at: "Usage becomes a metered price"
highlight: usage
- at: "Usage is billed after the month"
note: "Billed the month after use"
- at: "puts all three on the same monthly invoice"
zoom_out: bill
highlight: none
- at: "one clear bill instead of three"
note: "One bill, not three" A billing tool does the hard parts
- Stripe Billing: plans, invoices, retries, receipts
- Payment link and Checkout: no code needed
- Customer portal: clients update cards themselves
- Paddle or Lemon Squeezy: seller of record, handle sales tax
tree:
Billing tool: [Invoices, Payment links, Customer portal, Paddle or Lemon]
steps:
- at: "A billing tool does the hard parts"
note: "The hard parts, done for you"
- at: "creates the invoices on the right day"
show: Invoices
- at: "retries failed charges"
note: "Retries and receipts run themselves"
- at: "You create a product"
note: "Product, monthly price, payment link"
- at: "gives you a payment link"
show: Payment links
- at: "Clients also get a customer portal"
show: Customer portal
- at: "Selling to clients in many countries"
note: "Many countries?"
- at: "Then look at Paddle or Lemon Squeezy"
show: Paddle or Lemon
- at: "handle sales tax for you"
highlight: Paddle or Lemon
note: "Sales tax handled for you" The life of a subscription
- Every subscription moves through a few states
- Paid invoices keep it active
- Failed payments trigger retries and reminders
- Too many failures end in cancellation
layout: full
parts:
checkout: {chip: Checkout, sub: "Client enters a card"}
active: {chip: Active, sub: "Invoices paid"}
failed: {chip: Payment failed, sub: "Card problem"}
retry: {chip: Retry and remind, sub: "Reminder sent"}
canceled: {chip: Canceled, sub: "Too many failures"}
cycle: {box: Billing cycle, holds: [active, failed, retry]}
sub: {box: Subscription, holds: [checkout, cycle, canceled]}
steps:
- at: "Every subscription follows the same life"
note: "Same life for every subscription"
- at: "It starts at checkout"
highlight: checkout
- at: "Then it becomes active"
highlight: active
- at: "Each month an invoice is created"
note: "A new invoice each month"
- at: "when it's paid"
note: "Paid keeps it active"
- at: "the payment fails"
highlight: failed
- at: "doesn't give up straight away"
note: "Not an instant cancel"
- at: "retries over several days"
highlight: retry
- at: "a process called dunning"
note: "Dunning: chasing late payments"
- at: "the subscription is active again"
highlight: active
- at: "end in cancellation"
highlight: canceled
- at: "react to each of these states"
highlight: none
note: "React to each state" Connecting payments to your agents
- Stripe sends a webhook on every event
- Your workflow receives the webhook
- Update the client sheet, email, switch the agent
layout: wide
direction: LR
components:
client: {kind: user, label: Glow Salon}
checkout: {kind: client, label: Payment link}
stripe: {kind: external, label: Stripe}
flow: {kind: worker, label: n8n workflow}
sheet: {kind: database, label: Client sheet}
mail: {kind: email, label: Welcome email}
agent: {kind: llm, label: Booking agent}
links: [client->checkout, checkout->stripe, stripe->flow, flow->sheet, flow->mail, flow->agent]
steps:
- at: "Here's where billing becomes automation"
note: "Billing starts the automation"
- at: "the salon owner clicks"
show: [client, checkout, stripe]
- at: "an automatic message"
show: all
- at: "Your n8n or Make workflow listens"
highlight: [flow]
- at: "Let's follow one payment"
note: "One payment, end to end"
- at: "The client pays"
flow: ["client>checkout: pays", "checkout>stripe"]
- at: "Stripe rings the webhook"
flow: ["stripe>flow: webhook"]
- at: "marks the salon as active"
flow: ["flow>sheet: active"]
- at: "sends a welcome email"
flow: ["flow>mail: welcome"]
- at: "switches on their booking agent"
flow: ["flow>agent: switch on"]
- at: "Nobody touched a keyboard"
highlight: [agent]
- at: "live within seconds"
note: "Live within seconds" Worked example: usage charges
plans = {"Starter": (149, 500), "Growth": (299, 2000)}
rate = 0.04 # dollars per extra message
usage = {"Glow Salon": ("Starter", 820),
"Bright Smile": ("Growth", 1500)}
for client, (plan, used) in usage.items():
fee, included = plans[plan]
extra = max(0, used - included)
total = fee + extra * rate
print(f"{client}: {extra} extra -> ${total:.2f}") Handling failed payments kindly
- Let the tool retry over about two weeks
- Send friendly reminders with a card update link
- Pause the agent only after the final failure
- Log every change in the client sheet
events:
- {date: 2026-11-01, label: Card fails}
- {date: 2026-11-03, label: Reminder sent}
- {date: 2026-11-08, label: Smart retries}
- {date: 2026-11-15, label: Final retry}
- {date: 2026-11-16, label: Agent paused}
periods:
- {from: 2026-11-01, to: 2026-11-15, label: About two weeks}
steps:
- at: "Failed payments happen to every business"
show: [Card fails]
- at: "So handle them kindly"
highlight: Card fails
- at: "smart retries try the card"
show: [About two weeks, Smart retries]
- at: "Each failure fires an event"
note: "Each failure fires an event"
- at: "sends a friendly reminder"
show: [Reminder sent]
- at: "update the card in one minute"
note: "Card updated in one minute"
- at: "Only when the final retry fails"
show: [Final retry]
- at: "pause the agent"
show: [Agent paused]
- at: "log every step in the client sheet"
note: "Logged in the client sheet"
- at: "Done this way, most clients fix it themselves"
note: "Most clients fix it themselves"
- at: "never have that awkward phone call"
note: "No awkward phone call" Common mistake: access without a check
- Agent keeps running after a client cancels
- Model and messaging costs land on you
- Fix: agent checks subscription status first
- Status comes from Stripe's events, not from memory
layout: side
inputs: {Message: 1, Active: 1}
gates:
reply: AND Message Active
outputs: {Reply: reply}
steps:
- at: "Here's the mistake that quietly drains"
note: "Status must gate the agent"
- at: "nothing connects it to the agent"
note: "Billing is not wired in"
- at: "A client cancels in the portal"
toggle: Active
- at: "keeps answering messages for months"
highlight: [reply]
note: "Reply stops when status is off"
- at: "Every model call"
note: "Model calls cost you"
- at: "The fix is simple"
note: "The fix"
- at: "client sheet"
note: "Status column from webhooks"
- at: "check it"
table: all
- at: "If the status isn't active"
expr: Reply
- at: "Status should come from Stripe's events"
highlight: none
note: "From Stripe, not from memory" Recap
- MRR tracks repeating income; setup fees stay out
- A billing tool handles plans, invoices, retries and tax
- Webhooks connect payments to your agents and records
layout: full
parts:
mrr: {chip: MRR, sub: "Repeating income"}
tool: {chip: Billing tool, sub: "Plans and retries"}
hook: {chip: Webhooks, sub: "Payments to agents"}
jar: {box: Steady income, holds: [mrr, tool, hook]}
steps:
- at: "Let's pull it together"
note: "Three ideas to keep"
- at: "First, MRR, your monthly recurring revenue"
highlight: mrr
- at: "One-time setup fees are welcome"
note: "Setup fees stay out"
- at: "Second, a billing tool like Stripe"
highlight: tool
- at: "so you never write payment code"
note: "No payment code to write"
- at: "Third, webhooks tie it all together"
highlight: hook
- at: "payments switch agents on"
note: "Payments switch agents on"
- at: "Picture the owner sipping coffee"
zoom_out: jar
highlight: none
- at: "owning a calm, steady business"
note: "A calm, steady business" Your exercise
- Create a test product with a monthly price in Stripe test mode
- Make a payment link and pay it with a test card
- Catch the webhook in n8n or Make
- Write the client as active in a Google Sheet
layout: side
objects:
fake: {text: "Fake money", pos: top}
price: {text: "149 dollars a month", pos: top}
calc: {tex: '149 \times 12 = 1788', pos: center}
card: {text: "Test card 4242 4242 4242 4242", pos: top}
hook: {text: "Webhook", pos: top}
event: {text: "Checkout completed", pos: top}
sheet: {text: "Status: active", pos: top}
done: {text: "Self-running billing loop", pos: center}
steps:
- at: "Open Stripe in test mode"
show: fake
- at: "monthly price"
show: price
hide: [fake]
- at: "times twelve"
show: calc
hide: [price]
- at: "Pay it yourself"
show: card
hide: [calc]
- at: "catch the webhook"
show: hook
hide: [card]
- at: "checkout session completed"
show: event
hide: [hook]
- at: "Google Sheet"
show: sheet
hide: [event]
- at: "billing loop"
show: done
hide: [sheet] Transcript
The month-end chase. Picture this. You built a booking agent for three clients: a dental clinic, a hair salon and a gym. The agents work beautifully. But at the end of every month you open your laptop, write three invoices by hand, email them, and then wait. The salon pays late. The gym forgets entirely, and you feel awkward reminding them. Meanwhile their agents keep running, and your model costs keep coming in. Your income depends on your memory, and that is a fragile way to run a business. This lesson is about replacing that whole routine with subscriptions that charge, remind and update access on their own.
What you will learn. Here's the plan for today. First, you'll learn what recurring revenue means and how to measure it with one simple number. Second, you'll see how to set up monthly subscriptions in a billing tool without writing payment code yourself. Third, and this is the part most agency builders skip, you'll connect those payments to your agents automatically, so a client who pays gets their agent switched on, and a client who stops paying gets a polite reminder before anything is turned off. Think of the calendar with a coin on the first of every month, and a robot that watches it for you.
Monthly recurring revenue. The number every subscription business watches is MRR, short for monthly recurring revenue. It's simply the money your subscriptions bring in every month, like a salary you pay yourself from many small employers. Only repeating charges count toward it. Here are three clients on monthly plans. To get MRR, add up the monthly fees, and you get five hundred and ninety-seven dollars. Notice the setup fees sit outside that total. They're real income, but they happen once, so they don't tell you what next month looks like. MRR does. If it grows each month, your business is growing, even before you count new setup work.
Turning your pricing into plans. In the last lesson you priced your work with setup fees, retainers and usage. Now each one becomes something a billing tool understands. The setup fee is a one-time charge on the first invoice. The retainer becomes a subscription price, say one hundred and forty-nine dollars a month. Usage becomes a metered price: the tool counts something, like messages your agent answered, and charges for each unit above an included amount. Usage is billed after the month it was used, so it shows up on the next month's bill. The nice part is that a billing tool puts all three on the same monthly invoice, so your client sees one clear bill instead of three confusing ones.
A billing tool does the hard parts. A billing tool does the hard parts, so you don't build payments yourself. Stripe Billing stores the card, creates the invoices on the right day, retries failed charges and emails receipts. You create a product, add a monthly price, and Stripe gives you a payment link you can drop on your landing page, or a hosted Checkout page it builds for you. Clients also get a customer portal where they change their card or cancel without messaging you. Selling to clients in many countries? Then look at Paddle or Lemon Squeezy, which act as the seller on paper and handle sales tax for you, for a slightly higher fee.
The life of a subscription. Every subscription follows the same life. It starts at checkout, where the client enters a card. Then it becomes active. Each month an invoice is created, and when it's paid, the subscription stays active. Sometimes a card expires or has no funds, so the payment fails. The tool doesn't give up straight away. It retries over several days and emails the client a reminder, a process called dunning, which is just a polite word for chasing a late payment. If the client updates the card and a retry works, the subscription is active again. Only when too many failures pile up does it end in cancellation. Your automations should react to each of these states.
Connecting payments to your agents. Here's where billing becomes automation. Say the salon owner clicks your payment link and pays. Stripe records it and then sends a webhook, which is an automatic message to an address you choose, like a doorbell that rings in your workflow. Your n8n or Make workflow listens for that doorbell. Let's follow one payment. The client pays, Stripe rings the webhook, and the workflow marks the salon as active in your client sheet, sends a welcome email, and switches on their booking agent. Nobody touched a keyboard, and the client was live within seconds.
Worked example: usage charges. Let's check a usage bill so you understand what the billing tool computes for you. Starter costs one hundred and forty-nine dollars and includes five hundred answered messages. Growth costs two hundred and ninety-nine and includes two thousand. Every extra message costs four cents. Glow Salon is on Starter and its agent answered eight hundred and twenty messages, so that's three hundred and twenty extra, which adds twelve dollars and eighty cents. So its bill is one hundred and forty-nine plus twelve dollars eighty, one hundred and sixty-one dollars and eighty cents. Bright Smile used fifteen hundred, under its limit, so it pays just the plan price, two hundred and ninety-nine dollars. In practice your workflow reports the message count to Stripe, and Stripe does this sum on the invoice.
Handling failed payments kindly. Failed payments happen to every business, usually because a card expired, not because the client wants to leave. So handle them kindly. Let Stripe's smart retries try the card over roughly two weeks. Each failure fires an event, and your workflow sends a friendly reminder with a link to the customer portal, where they update the card in one minute. Only when the final retry fails do you pause the agent, and you log every step in the client sheet. Done this way, most clients fix it themselves, and you never have that awkward phone call.
Common mistake: access without a check. Here's the mistake that quietly drains new agency owners. You set up billing, but nothing connects it to the agent. A client cancels in the portal, the notice lies unread, and their robot keeps answering messages for months. Every model call and every text message is now paid by you. The fix is simple. Keep a status column in your client sheet that only webhooks update, and make the very first step of each agent workflow check it. If the status isn't active, the workflow stops. Status should come from Stripe's events, never from memory.
Recap. Let's pull it together. First, MRR, your monthly recurring revenue, is the sum of repeating charges, and it's the number that shows whether your business is growing. One-time setup fees are welcome, but they stay out of it. Second, a billing tool like Stripe, Paddle or Lemon Squeezy handles plans, invoices, retries, receipts and, in some cases, tax, so you never write payment code. Third, webhooks tie it all together: payments switch agents on, failures trigger kind reminders, and cancellations pause the work. Picture the owner sipping coffee while coins drop into the jar every month. That's the difference between chasing invoices and owning a calm, steady business.
Your exercise. Now it's your turn. Open Stripe in test mode, which uses fake money, so nothing is charged. Create a product called Booking Agent Starter with a monthly price of one hundred and forty-nine dollars, then create a payment link for it. That's one hundred and forty-nine times twelve, one thousand seven hundred and eighty-eight dollars a year. Pay it yourself with Stripe's test card number, four two four two repeated four times. In n8n or Make, catch the webhook with a trigger, and register its public address in Stripe, because Stripe cannot reach a copy running only on your own computer. When the checkout session completed event arrives, write a new row to a Google Sheet with the client's email and the status active. Once that row appears on its own, you've built your first self-running billing loop.
Explore the animations
The animations from the video, exact and live: play them, pause, drag the slider or jump to a step at your own pace.
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Answer every question, then check. 70% passes; you can retry as often as you like.
Lesson summary
- Reading
- Video watched
- Quiz passed (70%)
- MRR tracks repeating income; setup fees stay out
- A billing tool handles plans, invoices, retries and tax
- Webhooks connect payments to your agents and records