# Content guide: write every article for guests and AI agents

Read this before you write or publish a journal article on masayahomes.in. It applies to everyone who writes: the hosts in the
admin, Grok or any other agent using the content API, and Claude working in the repo. It is served publicly at
`https://masayahomes.in/docs/content-guide.md`, and the content API links it in every response and error.

Agents changing code or pages: also read the rules for bots in `AGENTS.md` at the root of the repository (do's and don'ts, schema rules).

Every article has two readers:

- **A guest** reads the human page (`/journal/<slug>`) on a phone.
- **An AI agent** (ChatGPT, Claude, Perplexity, Google, Grok...) reads the machine version (`/journal/<slug>.md`), the JSON-LD,
  `/agent`, `llms.txt` and the ask API. Agents use it to answer a guest who asks something like "where should I stay near AIIMS Bhopal?"

Both get the same words. Never write anything only for bots: no hidden text, no keyword lists, no different version by
User-Agent. Search engines punish that ("cloaking").

## What a live article must have

The content API refuses to publish an article (`422 not_agent_ready`) unless it has all three of these. A draft
(`published: false`) can be incomplete.

| Field | Rules | Why |
|---|---|---|
| `quickAnswer` | 1 to 3 sentences (10 to 600 characters) that answer the title directly. No "In this article...". | It is the pink "Quick answer" box at the top for guests, the JSON-LD `abstract`, and the first thing agents quote. |
| `metaDescription` | Up to 170 characters. One plain sentence with the place and the main fact. | Search results and link previews. |
| `faq` | At least 2 and at most 12 `{ question, answer }` items. Write questions the way a guest would type them. Answers of 1 to 3 sentences. | Shown as "Quick questions", turned into FAQPage JSON-LD, and used by the ask API. |

Also required by the API for every article: `slug` (kebab-case), `title` (up to 140 characters), `excerpt` (the journal card
text, 10 to 400 characters), `topic` (one of: Hospital stays, Workcation, Neighbourhood, Things to do, Getting here, Hosts) and
`body` (Markdown, at least 50 characters). Optional: `metaTitle` (up to 70 characters), `coverImageUrl` (https), `coverImageAlt`,
`readMinutes` (worked out for you).

## How to write the body

1. **Answer first.** The first paragraph answers the question in the title. Details come after.
2. **Headings are questions or plain labels**, with `##` (H2) and `###` (H3). Example: `## How far is AIIMS from Masaya Home?`
   Agents split articles at headings, so each section should make sense on its own.
3. **One fact per sentence, with the number.** "Check-in is from 3:00 PM" beats "flexible check-in". Say who, what, where, how much.
4. **Use lists and small tables** for steps, options and comparisons. Don't put information only in a picture.
5. **Link to the source page on this site** with relative links, for example the
   [Masaya Home page](/bhopal/masaya-home), the [Bhopal guide](/bhopal/guide) or the [FAQ](/faq). End with a clear next step:
   check dates on `/bhopal/masaya-home#book`, or WhatsApp the hosts.
6. **Plain, friendly English.** Short sentences. No hype words ("luxurious", "best in town") and no claims you can't back up.
7. **Image alt text** describes the photo in a sentence ("Bedroom with a king bed and a window").

## Facts you must get right

- **Travel times:** use only the times published on the site (`src/data/travel.ts`, shown on the Bhopal guide and the Masaya Home
  page), labelled "approx., by car, off-peak". Never invent or estimate one. The site gives no travel time to Bansal Hospital or
  Apollo Hospital.
- **The home:** an entire 1 BHK with a small study in Bittan Market, Central Bhopal, about 450 sq ft, up to 4 guests, first
  floor with no lift, self check-in with a smart lock, 100 Mbps Wi-Fi. There is **no** washing machine, heater, smoke or fire alarm,
  lift, meals or staff on site. Hosts: Arif Khan and Fouziya (they don't live on site; English and Hindi).
- **Booking:** dates, price and payment are on the booking site, book.masayahomes.in. Don't quote nightly prices in articles:
  they change. Link to the booking card instead.
- **Reviews:** quote only real reviews that are already on the site.

## Never publish (the API rejects these with `422 privacy_violation`)

An exact street address, flat or house number, postal code, door code, Wi-Fi network name or password, any email address, or any
phone number other than the hosts' WhatsApp line. Say "Bittan Market, Central Bhopal" and "exact location shared after booking".

Also: no Airbnb logos or other brands' trademarks. Naming the sites where the home is listed (Airbnb, Booking.com, Agoda,
Trip.com, MakeMyTrip) is fine.

## What happens automatically when you publish

You don't need to do any of this by hand:

- the human page at `/journal/<slug>` and its machine version at `/journal/<slug>.md` (also served for `Accept: text/markdown`);
- Article, BreadcrumbList and FAQPage JSON-LD, with `abstract` from the quick answer and a link to the Markdown version;
- a line in `llms.txt`, an entry in `/agent`, `/agent.json` and `/api/v1/agent/articles`, and the sitemap;
- the ask API (`/api/v1/agent/ask`) can quote it.

Pages refresh within about five minutes.

## Publishing through the content API

```
POST https://masayahomes.in/api/v1/articles
Authorization: Bearer <CONTENT_API_KEY>
Content-Type: application/json

{
  "slug": "parking-near-masaya-home",
  "title": "Parking near Masaya Home in Bittan Market",
  "topic": "Getting here",
  "excerpt": "Where to park when you stay at Masaya Home, and what to expect at busy times.",
  "quickAnswer": "Masaya Home has free street parking outside the building. It is busiest in the evening, when the market is open.",
  "metaDescription": "Free street parking at Masaya Home, Bittan Market, Bhopal: where to park and the busy times.",
  "faq": [
    { "question": "Is parking free?", "answer": "Yes. Street parking outside the building is free." },
    { "question": "Can I park a large car?", "answer": "Yes, but evenings are busy. Ask the hosts on WhatsApp for tips." }
  ],
  "body": "## Where to park\n\n...",
  "published": true
}
```

- `PUT /api/v1/articles/<slug>` changes any fields; `GET /api/v1/articles/<slug>` reads it back, drafts included.
- `published: false` takes an article down at any time.
- Every response has `url` (human page), `machineVersionUrl` (the `.md` version) and `guide` (this file).
- Errors: `400 validation_error` (see `issues`), `409 slug_taken`, `422 not_agent_ready` (see `missing`),
  `422 privacy_violation`, `429 rate_limited`.

## Checklist before you publish

- [ ] The title is the question or topic a guest would search for.
- [ ] The quick answer answers it in 1 to 3 sentences.
- [ ] Headings are questions or plain labels, and each section stands alone.
- [ ] Every travel time comes from the site, labelled approx., by car, off-peak.
- [ ] No address, flat number, postcode, door code, Wi-Fi details, email or other phone numbers.
- [ ] At least 2 FAQ items, written the way guests ask.
- [ ] A meta description of up to 170 characters.
- [ ] Links to the Masaya Home page or the booking card, and one other relevant page.
