Watch · Hands-On Guide, Exercise 9

Your Own SaaS

2:31 · Hands-On Guide

Made by AI agents — script drafted from the book, AI narration, animation written as code — and steered by the author, Rasmus Bornhøft Schlünsen.

Transcript

What the film says

Picture a link you can text to a friend. Behind it, a real product. People sign up, an A I does the work, and an upgrade button takes payments. Now build the whole thing, from an empty folder, in a day. That's exercise nine: your own product, with an agent as your co-founder.

Start with the idea. Ask the agent to brainstorm small products people would pay for, with an A I feature at the core. A resume reviewer, say. Some ideas will be terrible. That's fine. You are the filter. Then have it write a one page spec: what it does, who it's for, what's free, and what's paid.

This is a long job, so brief your crew like a colleague. An agents dot M D file holds the standing orders: secrets live only in the dot env file, and ask before adding any package. A permission file lets the agent run the tests on its own, but it can't read your secrets, and it can't push.

Then comes the rhythm for every big step. Plan mode first: the agent reads and proposes, but changes nothing. Read the plan. A mistake caught here costs one sentence. Save it to plan dot M D, clear the session, and implement it fresh. Then review the diff.

First, the brain of the product. The user's text goes to the model, and a structured review comes back. Treat that text as untrusted. And the key for the model? You type it into the dot env file yourself. Never paste a key into the chat.

Next, accounts, with every password hashed. Then payments, in Stripe's sandbox, where no real money moves. Only a signed webhook from Stripe can upgrade an account, never the success page. Free users get three reviews a day. Paying users, as many as they like.

Then prove it works. Tests for sign up, the A I endpoint, the limits and the webhook, with the model mocked. You push to GitHub yourself, and a pipeline runs the tests on every push. Deploy, type the keys into the server by hand, add a landing page, and walk the launch checklist.

The agent wrote every line of code. But you made every decision: the idea, the spec, the rules, every plan, the price. The agent was the builder. You were the architect. And the building is standing. Next up: exercise ten, captain's log.