How to Structure Website Content for AI Agents: Pages, Sections and Data Items
AI agents edit well when your content has clear shapes and names. How to model pages, sections and data items, name fields for meaning, leave notes for agents and keep review in the loop.
Aditya Kadam
Garchi CMS
Ask an AI agent to "update the website" and watch what it does. If your content sits in one long rich-text field per page, the agent has to guess which paragraph is the offer, which one is a testimonial and which sentence carries a legal caveat. It might change the right thing. It might rewrite the lot.
Agents work well with structure. Give them named fields and they turn a vague instruction into a precise one: change this hero headline, add one FAQ, update one article summary. Give them a blob and they edit blobs.
This guide covers how to shape your website content so people and agents can both work on it safely. The examples use Garchi CMS terms, since that's what we build, but the ideas apply to any structured CMS.
Three content shapes cover most websites
Almost everything on a marketing site or app fits one of three shapes.
| Shape | What it represents | Examples |
|---|---|---|
| Page | A designed screen at a URL | Home, Pricing, About, a campaign page |
| Section | One component on a page, filled with values | Hero, feature grid, testimonial strip, call to action |
| Data item | One record in a collection of similar records | Blog post, case study, team member, FAQ, product |
Your frontend decides how each one looks. The CMS stores the values. That split lets a designer change the hero's layout without touching the words, and lets a marketer change the words without touching the layout.
A simple rule for choosing: if you'll have many of something and they share fields, it's a data item. If it's a one-off screen assembled from components, it's a page made of sections.
Name fields for meaning, not position
In Garchi, a section template defines a component's fields, called props. A Hero template might have eyebrow, heading, supporting_text, button_label, button_url and image. Each section on a page fills those props for that page.
Compare two versions of the same template:
Weak: text_1, text_2, text_4, link, img
Strong: heading, supporting_text, button_label, button_url, image
An agent reading the first list has to infer what text_4 does. A person reviewing a change to it has the same problem. The second list explains itself. Name each prop after the meaning of its value, and match the prop names to the props on your frontend component so the code and the content line up.
Choose prop types with the same care. A button style picked from primary, secondary and ghost should be a select with those allowed values. An agent can't type "bright orange" into it, and neither can a tired editor.
Give recurring records a fixed shape
Collections drift. One blog post has author, the next has writer, a third has published instead of published_date. Your frontend reads keys by name, so drifted posts render with gaps.
Two habits stop this. First, settle the keys once and write them down. Second, if a kind of record has a stable set of fields, such as events with starts_on and venue, define it as an item type. Garchi then gives editors a form for those fields, and agents can read which fields every item of that type should carry.
Write notes for the agent, in the content model
Agents read descriptions. Garchi lets you add an agent_description to spaces, pages, section templates, data items and assets. Use it for the context a new team member would need:
- On a template: "Use CTASection at the end of marketing pages. button_url must be an internal path."
- On a page: "Pricing page. Prices change only after finance confirms. Check the Plans items first."
- On a space: "Client: a dental group in Leeds. British spelling. Never claim treatment outcomes."
Descriptions guide behaviour. They don't grant or remove permissions, so never rely on a note to stop an agent from doing something risky. That job belongs to the draft and publish workflow, covered below.
Keep one vocabulary, and make agents check it
Keep a short field dictionary for each site. Five lines is often enough:
Blog posts: category Blog, keys author, published_date
Case studies: category Case Studies, keys client, industry, result_summary
Marketing pages: Hero, FeatureGrid, Testimonial, CTASection
Slugs: lowercase, hyphenated, no dates
External links: descriptive label, never "click here"
Then build one habit into your prompts: ask the agent to list existing templates, categories and metadata keys before it creates anything new. Without that step, near-duplicates such as Hero, HeroSection and Hero2 pile up as a site grows through repeated AI requests. A listing step costs one tool call and prevents them.
Model reuse on purpose
If a price appears on the pricing page, the homepage and a comparison table, decide which one is the source of truth. Store the price once, as a data item for each plan, and have all three places render it. Change it once and all three update.
Don't take this too far. Not every sentence needs to be its own object. If a testimonial only ever appears on one page, a prop in that page's section is fine. Choose structure by how your business edits the site, not by how elegant the diagram looks.
Put review into the model
Structure tells an agent what it can change. Your workflow decides whether that change reaches visitors. In Garchi, content an agent writes over MCP saves as a draft, and the API serves published content only. A person publishes, or, if the space owner allows it, asks the agent to publish after reviewing exactly what will change. Changes to pages, templates and items leave restore points for 30 days.
That separation lets you model freely. An agent proposing a bad edit to a well-named field costs you a minute of review. An agent rewriting a live blob costs you an afternoon. Read more on that boundary in how to let AI agents edit your website without giving them publishing control.
A five-minute modelling test
Take a real request from your last month, such as "update the homepage value proposition and add an FAQ about refunds". Then answer three questions:
- Can you point to the exact page, section and prop, and the exact collection, involved?
- Could an agent find them by listing your content, without guessing?
- Could a reviewer approve the FAQ while holding back the homepage change?
If any answer is no, simplify or rename before you generate more content. A model that a busy person understands after two weeks away will also work for an agent.
Want to try this on your own site? Start with one page template and one collection. The landing page guide walks through the page side, and building a blog covers the collection side.
Enjoyed this article?
Get the next one in your inbox, with new Garchi features and practical ideas for running content operations with your team and AI agents. No spam, and you can unsubscribe at any time.