Build with AI
Prompt: our listings with a tour form
An /our-listings page with your brokerage's own listings, each leading to a listing page with your tour form.
This prompt builds the our listings page and makes sure each listing page carries your tour form.
The prompt
Prompt
Read RUUSTER_IDX.md first and follow its MUST and NEVER rules. Ask me if it doesn't cover something.
Build an "Our listings" page at /our-listings that follows <https://help.ruuster.com/idx/recipe-our-listings>. Call GET /v1/listings with ownListings=1 on the server and render the ListingGrid, Pagination and MlsDisclaimers components. Each card links to my listing page, and the listing page carries the TourForm, which posts to my own lead route and from there to my CRM (<https://help.ruuster.com/idx/recipe-forms>). If the API answers own_listings_unconfigured, stop and tell me, because Ruuster needs my agents' MLS ids first.
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, show me how to send a test tour request and find it in my CRM.What it builds
app/our-listings/page.tsxwithownListings=1- the
TourFormon your listing pages, posting to your own lead route
How to check it
- Open
/our-listingsand confirm the cards are your listings. - Send a test tour request from one of them and find it in your CRM with the listing attached.
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.