Build commerce and events with agents
The Studio skills (see Building with AI for installing them) teach a coding agent the commerce and events model: what a store, an offering, a variant and an order are, how tickets are claimed, what the storefront contract is, and which traps cost a day. With them, an agent adapts a template or builds a storefront in the shapes this documentation describes.
The skills for this area
| Skill | Load it when |
|---|---|
studio-commerce | Stores, catalog, variants, prices, VAT, stock, quotes, payments, orders; the storefront reference and the B2B portal reference (reference/b2b-portal.md) |
studio-ticketing | Ticket categories, holds and capacity, seated categories, passes, waiting lists, check-in, the buyer storefront for tickets |
studio-membership | Membership offers, member prices, benefits, class packs, renewals, member-only access |
studio-partners | Partner programs, tiers, global and per-event partners, rendering a partner wall |
studio-classes-site | A classes, courses or childcare site from template-classes |
studio-automations | Reminders, follow-ups and other automations around events and orders |
studio-stripe-payments | Connecting card payments |
The Luat package’s README (@maravilla/studio) is the reference for storefront blocks, recurring dates, partners and unsubscribe pages in a Luat site.
Prompting well
Start from a template and say what is different. Name the store, the event and the languages; say what must be true rather than how to code it.
Adapt the conference template
Use the studio-commerce and studio-ticketing skills. Copy
templates/template-conference-eventtosites/summit. The store is/stores/summit, the event/summit-2027, languages en and de. Keep the storefront blocks and the default renderers, but replace the Product grid renderer with a two-column card layout in our brand. Wording stays in Studio. Verify by adding a ticket and a product to one basket and reaching the payment step.
Build a B2B portal
Use studio-commerce and its reference/b2b-portal.md. Start from
templates/template-b2b-portalfor a facade-cleaning company, languages de and fr. Customers in the customer group “Property managers” see the price list “Property managers 2027”. Enquiries go to the store/stores/facades. Do not invoke functions to read data; reads are SQL as the buyer.
A course school
Use studio-classes-site. Start from
templates/template-classesfor a swimming school with three courses on weekday afternoons, terms from January to March, a sibling discount of 10 % from two children on the same date, and a 10-lesson pack. Seed it, then walk the booking of a whole term for two children.
A partner wall
Use studio-partners. On the event pages of our Luat site, render the event’s partners with the default renderer, grouped by tier in drag order, honoring the event’s All / Selected / None choice.
What to expect from a good result
- Reads are queries; nothing calls a server function to read a price or a list.
- Money, VAT, stock and consents are never computed in the site; the site displays what
hydrateattached. - Visible text lives in Studio (inline-editable and translatable), not in the template.
- The result works on the running site: a basket, a checkout step, a page in each language.
Tips
- Ask the agent to name the skill it loaded; a missing skill is the most common cause of a hand-rolled checkout.
- Keep each prompt to one outcome. “Add the waitlist page” and “restyle the shop” are two sessions.
- Studio’s own agent, Builder, creates automations and app overlays inside Studio; see Studio Builder.
Pilot documentation. Studio is in a partner pilot. Screens and YAML shown here are current as of the version noted on each page; tell your Maravilla contact when something does not match what you see.