Documentation Index
Fetch the complete documentation index at: https://docs.avocadostudio.dev/llms.txt
Use this file to discover all available pages before exploring further.
Avocado Stories Transformation Runbook
Audience: product stakeholdersStyle: transformation narrative
Site:
avocado-storiesPurpose: brand awareness + education
Promise
Transform a generic starter site into a visually polished, audience-aware avocado education experience in one live session — with AI-generated copy and imagery, visible reversibility, multi-provider model choice, and publish proof.Setup
- Start services:
pnpm dev:start
- Verify services are healthy:
- Site:
http://localhost:3000 - Content Studio:
http://localhost:4100 - Orchestrator:
http://localhost:4200/health
- Site:
- Confirm at least one provider key is set in
.env:ANTHROPIC_API_KEY(recommended — Onboarding agent requires it)OPENAI_API_KEYGOOGLE_GENERATIVE_AI_API_KEY(required for image generation via Gemini)
- Optional automated check:
pnpm demo:avocado:check
Opening narrative (before state)
- Open
http://localhost:4100/sites. - Open the editor for
Avocado Stories. - Show the current weak baseline (
/and/pricing, generic hero text, placeholder imagery).
We're starting from a plain baseline so the business impact is obvious as we go.
High-impact live flow
1. Route control + preview sync
Action:- Use the route dropdown to switch between
/and/pricing.
Route context is explicit, so every AI edit is scoped and predictable.
Pass criteria:
- Preview switches route immediately.
2. Model tier selection
Action:- Open the Settings (gear icon) and point out the model picker.
- Show tiers: Fast, Balanced, Reasoning.
- Leave on Fast (default) for the rest of the demo.
Teams pick the provider and tier that fit the task — fast models for routine copy tweaks, reasoning models for complex restructuring — without changing code.
Pass criteria:
- Tier selector visible with Anthropic / OpenAI / Gemini options.
3. Hero value proposition rewrite (streaming)
Prompt:Rewrite the hero headline and subheading for premium avocado products in an educational, modern tone.
Speaker line:
Watch the plan stream in — changes apply as the model produces them, not after a spinner. The team sees progress, not a wall at the end.
Pass criteria:
- Hero heading/subheading visibly change while the response streams.
- Assistant response reports applied changes.
On /, rewrite only the hero headline and subheading for premium avocado products in an educational, modern tone.
4. AI-generated hero image (Gemini)
Action:- In the preview, click the hero image.
- In the asset picker, switch to the Generate tab.
- Prompt:
A sun-dappled close-up of a perfectly ripe Hass avocado halved on a linen cloth, soft morning light, premium food editorial style. - Apply the generated image to the hero.
One brand voice, one visual system — generated in the same flow, not outsourced to a separate tool.
Pass criteria:
- Generated image appears in the asset picker preview.
- Applying it updates the hero image in the live preview without a reload.
- If Gemini is unavailable, switch to the Unsplash tab, search
ripe avocado, and apply a photo. Call out that the asset picker supports Unsplash, Google Drive, Contentful / Sanity / Strapi, upload, and URL paste out of the box.
5. Image edit with reference consistency
Action:- Click the hero image again and return to Generate.
- Prompt:
Same scene and lighting, but add a small ceramic pinch-pot of flaky salt next to the avocado. - Apply the edited result.
Reference-aware editing keeps the visual language consistent — not a new image every time, an evolution of the current one.
Pass criteria:
- The new image visibly retains the previous composition/lighting while adding the requested element.
6. Structural edit: testimonials below hero
Prompt:Add a testimonials section below the hero with 3 concise customer quotes.
Speaker line:
Now we move from copy and imagery to layout-level trust building.
Pass criteria:
- New testimonials block appears directly below the hero.
On /, insert a testimonials section immediately after the hero with 3 concise customer quotes.
7. New route generation with imagery
Prompt:Create /recipes with a hero and a featured recipes section containing exactly 3 cards, each with an AI-generated food photograph of the recipe.
Speaker line:
We're not just editing existing pages — we're creating net-new content paths with both copy *and* imagery produced inline.
Pass criteria:
/recipesappears in the route selector./recipesrenders with 3 recipe cards.- Each card has a generated image (not a placeholder).
Create /recipes with a hero plus a featured recipes section containing exactly 3 recipe cards. Generate an image for each card.
8. Audience-proof generation on /recipes
Prompt:For /recipes, generate 3 audience-targeted educational sections for beginner home cooks, nutrition-focused families, and premium food enthusiasts. Each section should include a practical takeaway and an educational CTA.
Speaker line:
One brand voice adapting to multiple audiences — without fragmenting the product story.
Pass criteria:
- Three distinct sections are present.
- Tone/wording differs by audience.
- CTAs remain educational (learn / explore / guide-oriented).
On /recipes, add one section per audience: beginner home cooks, nutrition-focused families, premium food enthusiasts. Keep each section educational and end with one practical CTA.
9. Inline edit in preview
Action:- Click an editable text region in the preview.
- Change one sentence and commit.
Direct manipulation keeps momentum high for marketing teams — no round-trip through chat for small tweaks.
Pass criteria:
- Text updates instantly.
- Edit persists after switching routes away and back.
10. Variations on a selected block
Action:- Select a recipe card block in the preview.
- Prompt:
Generate 3 variations of this block. - Apply one variation.
Teams explore alternatives quickly without losing control of what ships.
Pass criteria:
- Variation modal opens with 3 options.
- Applied option visibly updates the selected block.
11. Reversibility with Undo
Action:- Click Undo on the last undoable assistant message.
Experimentation is safe because every edit is reversible at the step level.
Pass criteria:
- The latest applied change reverts cleanly.
12. Language switch (optional)
Action:- In Settings, switch the UI language to Deutsch.
- Send a short prompt (e.g.
Ändere die Hero-Überschrift zu "Avocados neu entdecken").
The Content Studio UI and the assistant both speak the user's language — today English and German, more on the way.
Pass criteria:
- UI labels flip to German.
- Assistant responses (
summary,change log, suggestions) come back in German. - Applied edit is correct.
13. Publish confidence
Action:- Click Publish.
- Open the
Open live sitelink (andView deployif available).
We've moved from idea to publish-ready output — copy, imagery, structure, and routes — with a verifiable release step.
Pass criteria:
- Publish status is
triggeredorready. - Live site link opens successfully and reflects the session’s edits, including generated images.
Workflow behavior callouts to show live
- If a response is
plan_ready, click Approve plan to continue. - Confirm that newly created routes appear in the route selector after generation.
- Mention that variation generation requires an active block selection.
- Mention that image generation uses the Generate tab in the asset picker; Unsplash, Google Drive, CMS, Upload, and URL paste are peer tabs in the same picker.
Dry run scorecard (quick)
- Preflight: all 3 services healthy; at least one LLM key and a Gemini key present.
- Baseline: initial hero is generic and site looks plain.
- Copy edits: prompts 3, 6, 8 each produce visible applied changes while streaming.
- Imagery: hero image generated (step 4) and edited with reference (step 5);
/recipescards each have generated images (step 7). - Audience proof:
/recipeshas 3 differentiated audience sections. - Interactions: inline edit, variation apply, and undo all succeed.
- Locale: UI and assistant output switch to German cleanly (optional).
- Publish: success state and live link open with generated imagery intact.