Documentation Index
Fetch the complete documentation index at: https://avocadostudioai.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Pages, Blocks, and Props
Avocado Studio manages website content as structured data, not raw HTML.- Page (
PageDoc) — A single page on your website (e.g.,/about,/pricing). Contains metadata (title, slug) and an ordered list of blocks. - Block (
BlockInstance) — A content section on a page. Each block has a type (e.g.,Hero,CTA,FAQAccordion) and props — the structured data that controls what it renders. - Props — The fields that make up a block’s content. A Hero block has
heading,subheading,imageUrl,imageAlt,ctaText, andctaHref(plus a few optional fields). Every prop is defined by a Zod schema, so the system knows exactly what values are valid.
Operations
An operation is a structured, schema-validated edit action. When a user says “change the hero heading to Welcome”, the AI doesn’t modify HTML — it generates an operation like:| Operation | What it does |
|---|---|
add_block | Insert a new block at a specific position |
update_props | Change one or more props on an existing block |
remove_block | Delete a block from the page |
move_block | Reorder a block within the page |
duplicate_block | Copy a block within or across pages |
add_item | Add an item to a list field (e.g. a new testimonial) |
update_item | Update a list item by index |
remove_item | Delete a list item by index |
move_item | Reorder a list item |
create_page | Create a new page |
duplicate_page | Copy an existing page |
rename_page | Change a page’s slug and/or title |
remove_page | Delete a page |
move_page | Reorder a page in the site nav |
update_page_meta | Update SEO meta fields (title, description, ogImage) |
update_site_config | Update global site settings (name, logo, nav) |
heading to a number), it’s rejected automatically.
Plans and Approval
When a user sends a chat message, the AI generates an edit plan — a list of one or more operations. The plan is presented to the user for review before it’s applied.Draft Mode
Draft mode is how the Content Studio shows unpublished changes on your live site. When the Content Studio is active, the site switches into draft mode — it fetches the latest draft content from the orchestrator instead of the published content.- Published content — What your visitors see. Stored in your CMS, database, or static files.
- Draft content — What you see in the Content Studio. Stored in the orchestrator’s session state. Not visible to site visitors.
- Publishing — Promoting draft content to published. Triggered by the user after reviewing changes.
The Three Services
Avocado Studio runs as three services that communicate via HTTP and postMessage:| Service | Role | Tech |
|---|---|---|
| Orchestrator | The brain. Handles AI planning, operation validation, session state, undo/redo, and publishing. | Fastify API |
| Content Studio | The UI. Chat interface, model picker, plan review, and settings. Embeds the site in an iframe. | Vite + React |
| Site | Your website. Renders pages from block data. In draft mode, fetches content from the orchestrator. | Next.js |
postMessage to the Content Studio identifying which block was selected. When an operation is applied, the orchestrator notifies the site to re-fetch and re-render.
Block Manifest
When the Content Studio connects to your site, it fetches the block manifest from/api/editor/blocks. This tells the Content Studio what block types are available and what props each one accepts.
Multi-Model AI
The orchestrator supports three AI providers:- Anthropic — Claude Haiku (fast), Sonnet (balanced), Opus (complex reasoning). Most battle-tested.
- OpenAI — GPT-4o-mini (fast), GPT-4o (balanced), o1/o3 (reasoning).
- Google Gemini — Gemini Flash (fast), Gemini Pro (reasoning).