Projects & coding · Tutorial 05
A Practical AI Stack for a Small Online Business
Find one painful customer problem and deliver the offer manually. Add a landing page, payments, email, analytics, and automation as the work repeats.

0 of 1 complete
Reference guide · Read when needed · View the route
Sources checked and lesson updated: November 30, 2026
This is a planning exercise with documented integration checks, not a tested business launch. The agent brief and acceptance cases below are teaching suggestions.
A one-person online business starts before the software stack. You need a specific customer, a painful job, and an offer that produces a result. Deliver it manually once. Then add the landing page, payment, email, analytics, and automation needed to repeat it.
This lesson shows where AI helps and where it does not. See Hermes L02, L01, and L04 for the supporting tools and project path.
Deliver before you automate
Imagine you want to sell a weekly research brief to small teams in one industry. Do not begin with a subscription site and seven automations. Find one person who needs the decision, agree on the question and evidence standard, and deliver the brief manually.
That first delivery teaches you what the buyer values, which sources matter, what takes time, and which mistakes would make the work unusable. A repeated step can become a script. A judgment call stays with the operator. A feature nobody needed gets cut before it costs a month of work.
Name one routine step you perform more than once a week. Before automating it, write down the input, output, failure cases, and review rule. Some steps should remain manual.
The customer plus five operating layers
A small online business has a foundation and five operating layers. Each has a different automation profile.
Layer 0: Customer, problem, and offer. Name who has the problem, the result they need, what you will deliver, the price or commitment you want to test, and why they should trust the result. Automation potential is low because this layer comes from conversations and delivery evidence.
Layer 1: Landing. The page that captures an email. Start with one page on the site platform you already use. Check its current plan limits and form costs before committing. Automation potential: low: write the copy once, hook the form to your list.
Layer 2: Product. What you deliver. The directory, the newsletter, the app. Automation potential: medium: Claude Code can help implement a bounded change. The work lives in a repo and needs test verification (see L01).
Layer 3: Email. The list, welcome sequence, weekly digest. Use it to set delivery expectations and collect feedback. Automation potential: high for routine drafts: a welcome can follow a confirmed purchase; a digest can start as a scheduled draft. Keep promotional subscriptions separate from order messages.
Layer 4: Monetization. Payment links, subscriptions, or paid placements. Automation potential: medium. Webhooks can send receipts or update access, but refunds, disputes, tax, fraud, and exceptions need an owner.
Layer 5: Analytics. A small dashboard or scheduled report should answer the decision you need to make. Automate alerts only after you know which change deserves attention and how false alarms will be handled.
Measure the work before automating it
For two weeks, log each delivery step, minutes spent, tool cost, corrections, and whether the customer accepted the result. Automate only a repeated step with a clear success check. Keep discovery, sensitive decisions, customer conversations, exceptions, and final approval visible to a person.
Build the stack in customer order
Use this four-week sequence as a planning guide; move on when the evidence supports the next step.
Week 1: Customer and manual offer. Interview three people. Agree to deliver one small result for one of them. Use a document, email, or shared folder before building a product.
Week 2: Record delivery and demand evidence. Note the inputs, output, buyer feedback, delivery cost, corrections, and whether the buyer wants the result again. Ask for a small real commitment before expanding scope.
Week 3: Build the narrow repeatable path. Use Claude Code for a tested product step and Hermes only for a bounded automation with a log and approval point.
Week 4: Add the minimum operating stack. Create a truthful landing page, payment route, receipt, welcome email, support contact, refund process, privacy disclosure, and a small dashboard for the metric that decides whether to continue.
What you should NOT build first
Common distractions include a support chatbot before support volume exists, a custom CRM before the first repeat buyer, or an elaborate dashboard with no decision attached. Start with the repeated step that blocks delivery or creates a costly mistake.
| Layer | First version | Evidence before automating more |
|---|---|---|
| Landing | One page with a specific offer and contact route | Relevant visitors understand the result |
| Product | Manual delivery or a narrow tested workflow | The same steps repeat across accepted deliveries |
| Receipt, expectation, and one useful follow-up | Customers open, reply, or complete the intended action | |
| Payment | One supported payment route and refund process | A real buyer completes the transaction |
| Analytics | A delivery-cost and customer-response log | The metric changes a decision |
| Orchestration | One bounded job with a log and approval | It saves reviewed time without increasing failures |
Connect payment to delivery without losing the order
For the research-brief example, begin with a single purchase and a manually reviewed delivery. Stripe documents manual fulfillment as an option for low-volume experiments. When you automate, a successful redirect alone is insufficient: a customer can pay and close the browser before the return page loads. Its fulfillment guide requires a webhook-backed path for reliable automatic delivery, including delayed payment confirmation.
Keep a small order record with an order ID, payment-provider reference, payment state, delivery state, promised deadline, and last error. Store the customer contact only where delivery needs it. Do not put payment secrets or customer records into a coding prompt.
Treat payment and delivery as separate facts. A paid order can still have a failed delivery. A draft brief can exist before payment has cleared. For this exercise, use these delivery states: awaiting_payment, ready_for_review, approved, delivered, and needs_attention. They are your application labels, not Stripe API values.
Checks to give the coding agent
Ask Claude Code to implement the smallest order workflow in a development branch. Supply synthetic records and the acceptance cases below. Anthropic recommends giving the agent a runnable check and reviewing the result against a specification in its best-practices guide.
Build a local order-workflow prototype for a manually reviewed research brief.
Read the repository instructions and describe the existing payment boundaries.
Use synthetic records and a fake delivery adapter; do not send real messages.
Separate payment status from delivery status. Only confirmed, eligible payments
may enter ready_for_review. Delivery also requires explicit operator approval.
Make repeated and concurrent processing of the same order safe.
Keep failures visible with an order ID and reason, without logging secrets.
Add tests for the acceptance cases in this lesson. Run the relevant checks and
report changed files, commands, results, and anything not tested.
Do not deploy, connect live payment credentials, or change pricing.
A prompt defines the job; it does not enforce access restrictions. Use a disposable development environment without live credentials or outbound delivery access. Review the diff before connecting any real services.
| Acceptance case | Expected evidence |
|---|---|
| Payment remains pending | No delivery or access grant; order stays awaiting payment |
| Confirmed payment, browser never returns | Server-side processing still queues the order for review |
| Same paid order processed twice, including concurrently | One delivery job, enforced by durable order identity rather than an in-memory flag |
| Operator has not approved the draft | No customer delivery attempt |
| Delivery adapter fails | Payment stays recorded; delivery error remains visible for recovery |
| Delivery outcome is unknown after a timeout | Operator reconciles the provider record before retrying |
For a real Stripe integration, verify webhook signatures using the raw request body. Stripe also documents retries, duplicate events, and non-guaranteed event ordering in its webhook guide. Add integration checks for invalid signatures and out-of-order events before enabling it. Passing the fake-adapter tests does not prove the real payment or email integration works.
If a delivery fails, inspect that order and the delivery provider’s record first. Retry only the unfinished step after resolving whether a send already occurred. Do not replay the whole purchase workflow or charge the buyer again to repair an email failure.
Give Hermes one review report before a schedule
A useful first scheduled task is a report of paid orders still awaiting review or delivery. Keep it separate from payment processing. Hermes documents recurring jobs, manual triggering, pausing, and local-file output in its scheduled tasks guide.
Start with a manual run over a synthetic export containing only order IDs, states, and deadlines. Ask Hermes to write a local report listing overdue orders, missing fields, and the suggested next human action. Include a fixed reference time and timezone in the task so that “overdue” is checkable.
Verify three cases yourself: an overdue paid order appears; an already delivered order does not; a missing deadline is flagged as unknown rather than invented. Include an empty input and a malformed row. An empty file should produce “no records supplied,” not a claim that every customer has been served.
Only schedule the report after reviewing the manual output. Record the job ID, frequency, timezone, output destination, and how to pause it. If the report is wrong, pause the schedule, preserve the input and output, fix the case, and rerun manually before resuming. Keep refunds, customer messages, and access changes outside this report’s tool permissions.
Count the cost per accepted delivery
Use actual bills and your time log. For each accepted brief, record payment fees, model/API usage, research tools, delivery charges, correction time, and support time. Allocate recurring software costs across the deliveries you actually completed; do not divide by hoped-for customers.
Calculate cash contribution as collected revenue minus refunds, payment fees, direct delivery costs, and allocated software costs. Then subtract delivery and support hours multiplied by your chosen hourly value to see whether the work compensates your time. This is a planning calculation before taxes and other overhead, not an earnings forecast.
Run a 30-day offer test
The exercise
Run a 30-day offer test:
- Interview three potential customers about the last time they faced the problem.
- Write one fixed-scope offer with a deliverable, deadline, review standard, price or commitment, and exclusions.
- Deliver it manually to one person.
- Record direct costs, time, revisions, support, and whether the result was accepted.
- Ask whether they would buy it again or refer someone with the same problem.
- Automate one repeated step only after the second delivery shows the same pattern.
At the end, calculate gross revenue, direct cost, delivery time, and the cost of corrections. A working stack without a repeat buyer is still a useful learning project, not yet a business.
What’s next
To continue the AI Projects module:
- L01: Coding with Claude Code
- L02: Vibe Coding vs Real Coding
- L04: Niche Directory Sites
- Hermes L08: Automation: cron, kanban, sub-agents
- Hermes L01: What Is Hermes Agent?
Sources and review scope
Official sources checked November 30, 2026:
- Stripe: Fulfill orders: manual experiments, payment confirmation, and repeat-safe fulfillment.
- Stripe: Receive events in a webhook endpoint: signature verification, duplicate events, retries, and event ordering.
- Anthropic: Claude Code best practices: scoped tasks, runnable verification, and specification review.
- Nous Research: Hermes scheduled tasks: recurring work, local output, triggering, and pausing.
The timelines, order labels, task brief, and test cases are authored teaching suggestions. This refresh checked documentation; it did not run an agent session, take a payment, send customer email, or measure business results. Choose providers available to your business and verify their current terms and costs before connecting them.