Build with AI
Prompt: recently sold pages
Recently sold pages for each area, published only where your boards show sold data, with a link to the area page elsewhere.
This prompt builds the recently sold page for each area, checking your boards' sold capabilities first.
The prompt
Prompt
Read RUUSTER_IDX.md first and follow its MUST and NEVER rules. Ask me if it doesn't cover something.
Add a recently sold page at /neighborhoods/[area]/sold for each area page, following <https://help.ruuster.com/idx/recipe-recently-sold>. First read GET /v1/meta and check capabilities.sold: build the page only where at least one of my boards shows sold data, and otherwise show a link to the area page instead of sold listings. Search with status=closed, soldPeriod=6m and sort=close_date_desc, and title the page "Recently sold homes in" the area. Never fall back to active listings without saying so. Each card shows the sold price and date.
Use these environment variables: IDX_SECRET_KEY (server only), SITE_ORIGIN and SITE_NAME. Never paste a secret key into a chat, and never put IDX_SECRET_KEY in browser code, a URL or a log. No key goes in any page: my pages call my own /api/idx route, made with createListingsRoute from @ruuster/idx/route, which adds my secret key on the server (on a site with no server, the widgets call the API with no key from my approved website address).
Fair housing: describe homes, places and amenities only. Never describe the people who live in an area or who a home or area suits, and never rank schools as a reason to buy.
When you are done, tell me which of my boards show sold data according to /v1/meta.What it builds
app/neighborhoods/[area]/sold/page.tsxwithstatus=closed,soldPeriod=6mandsort=close_date_desc- a check of
capabilities.soldfromGET /v1/metabefore any sold listing shows - a link to the area page where your boards show no sold data
How to check it
- Read the boards the assistant lists from
/v1/metaand confirm which allow sold data. - Open a sold page and find sold prices and dates on the cards and the title "Recently sold homes in" the area.
- On a board without sold data, the page shows the link to the area page.
Before you paste it
Follow the setup on Build it with your AI coding assistant once: RUUSTER_IDX.md at the root of your project, the two lines in CLAUDE.md or AGENTS.md, and your keys in .env.local. Never paste a secret key into a chat. Replace the text in square brackets with your own before you send the prompt.