Do it in 5 easy steps
You need a free ChatGPT account and about 30 minutes. No money and no coding. Go slowly: do one step, then the next one.
Step 1. Open ChatGPT
Go to chatgpt.com. Sign up (it is free) or log in. Then click New chat. Keep your phone number, LINE ID and email nearby, because ChatGPT will ask for them.
Step 2. Press the Copy button
Press the Copy button in the box right below. That is all. You do not need to read it or change it. It is written for ChatGPT, not for you. It tells ChatGPT to ask you easy questions, build your website, and connect it to Thai Properties Network (TPN).
You are my friendly website helper. I am a real estate agent in Thailand and I do NOT know how to code. Please talk to me in very simple words, like I am 8 years old.
STEP 1 - INTERVIEW. Ask me these questions ONE AT A TIME. Wait for my answer before you ask the next one. If I type SKIP, leave that out of my website.
1. What is your name?
2. What is the name of your agency or business?
3. What is your phone number?
4. What is your LINE ID?
5. What is your email?
6. Which places do you sell or rent homes in? (for example: Bangkok, Chiang Mai)
7. What colour do you like for your website? (any colour word is fine, like green or dark blue)
8. Write one short sentence about you. (Type SKIP and I will write one for you.)
9. Do you have a TPN organization slug? This is a short name for your agency on Thai Properties Network. If you do not know it, type SKIP.
When you have all my answers, say "Thank you! I am building your website now." and go to STEP 2. Never ask me for anything technical.
STEP 2 - BUILD. Build a complete, responsive real estate agent website as ONE self-contained index.html file (HTML + CSS + vanilla JavaScript, no build step, no frameworks, no API keys). Use my answers in the site. Pick a nice hex colour that matches my colour word. If my TPN slug is SKIP, treat it as blank.
SITE REQUIREMENTS:
- Thai is the default language with a TH / EN / ZH language switcher (translate all UI text; listing descriptions come from the API in several languages: prefer the selected language, fall back to English or Thai).
- Sections: hero with search, listings grid, listing detail (modal or in-page view), about me, contact (call, LINE and email buttons plus a simple enquiry form that opens a pre-filled LINE/email message, no backend).
- Mobile-first, fast, accessible, with basic SEO tags and Open Graph tags.
- Prices in THB with Thai number formatting; rent shown per month.
CONNECT TO TPN (Thai Properties Network). Use exactly this public API, no key needed, CORS is open:
1. Base URL: https://api.thaipropertiesnetwork.com
2. If my TPN slug is set, resolve it once on page load: GET /organizations/by-slug/{slug} -> JSON with an "id" field (the organization id). Cache it in memory. An unknown slug returns HTTP 404. If the lookup fails for any reason, fall back to showing all TPN listings and show a small notice.
3. Search listings: GET /properties/search/{filters} where {filters} is encodeURIComponent(JSON.stringify(filtersObject)). Example filtersObject:
{"organizationId":["<ORG_ID: omit this key if no slug>"],"type":["condo"],"offers":{"sale":{"max":5000000,"status":["active"]}},"locationQuery":"bangkok","page":1,"resultsPerPage":9,"sort":"newest"}
- For rent use "offers":{"rent":{"max":30000,"duration":12,"status":["active"]}} instead. Always include "status":["active"] inside the offer, otherwise the request is rejected with HTTP 400.
- type values accepted: condo, serviced_apartment, detached_house, townhouse, land, office, retail, warehouse, hotel, building, gastronomy, industrial. Only offer filter chips for condo, detached_house, townhouse, land, office and retail, because those are the types that currently have listings.
- locationQuery is a place SLUG (lowercase, hyphenated), NOT free text. Offer a dropdown of these slugs only (all verified to return listings): bangkok, chiang-mai, chon-buri, nonthaburi, samut-prakan, khlong-toei-bangkok, sathon-bangkok, bang-rak-bangkok, phra-khanong-bangkok, huai-khwang-bangkok, bang-na-bangkok, ratchathewi-bangkok, mueang-chiang-mai-chiang-mai, hang-dong-chiang-mai. Keep only the ones that match the areas I serve, plus an "All" option that omits locationQuery. An unknown slug returns HTTP 404 with {"error":"Location not found"}: treat it as an empty result.
- Bedroom filter: "details":{"bedroomCount":{"min":2}} (use min and max together for an exact count, e.g. {"min":2,"max":2}).
- Allowed sort values: newest, price-asc, price-desc, area-asc, area-desc.
- Keep resultsPerPage at 12 or less (responses are large).
4. Response shape: {"data":[...properties],"totalCount":N,"totalPages":N,"hasMore":true|false}. Use hasMore for a "Load more" button (increment page and append). Each property has: id, slug, type, offers.sale[] / offers.rent[] (each with price, currencyId, status; use entries with status "active", and when there are several rent entries for different contract durations, show the lowest price as "from"), specs (bedroomCount, bathroomCount, indoorArea, floor, any of which can be missing), images[] (use them in the given order), translations[] (each has languageId, metaTitle, description and metaDescription), province/district/subdistrict (each has translations[] with languageId and name), locationInfo.project (null, or an object whose translations[] have languageId and name).
- Title: use translations[].metaTitle in the selected language; if it is empty, build a title from type, specs.bedroomCount and the project or district name.
- Description: use translations[].description; if it is empty, use metaDescription. These texts can contain HTML and line breaks: NEVER insert them with innerHTML. Insert them with textContent (or strip tags first) and keep line breaks with CSS white-space: pre-line. Escape every API value you put into HTML.
5. Images: for each image use https://cdn.thaipropertiesnetwork.com/images/{image.id}/card.avif for cards and /large.avif for the detail view (sizes: thumb, card, medium, large). Use loading="lazy" and a neutral grey box when there is no image. Never request the bare /images/{id} URL.
6. Handle loading, empty ("no listings found") and error states with a Retry button; debounce filters; cache identical requests for 60 seconds in memory; never poll.
7. Add a footer line: "Listings powered by Thai Properties Network" linking to https://thaipropertiesnetwork.com.
8. If you add a map, use MapScale (https://mapscale.io) with its keyless MapLibre quickstart, never Google Maps, Mapbox or CARTO.
9. Before writing the final code, silently double-check each field name above against the example responses I paste if I paste any; if I do not, follow this description exactly.
STEP 3 - GIVE IT TO ME. Show (a) the whole index.html in ONE code block, and (b) after it, a very short guide in very simple words, as numbered steps, for someone who has never done this: how to copy the code, save it as index.html (Notepad on Windows; TextEdit on Mac, choosing Format > Make Plain Text first), put it in a new folder, and put it online for free by dragging that folder onto app.netlify.com/drop. Do not use technical words.Step 3. Paste it and press Send
Click the message box in ChatGPT. On a computer, press Ctrl and V together (on a Mac, press Command and V). On a phone, touch and hold the box, then tap Paste. Then press Send.
Step 4. Answer the questions
ChatGPT will ask you questions, one at a time. Type your answer and press Send. If you do not know an answer, type SKIP. One question asks for your TPN slug, which is a short name for your agency on TPN. Not sure? Type SKIP. At the end ChatGPT shows a long block of code. That code is your website.
Step 5. Save it and put it online for free
Press the Copy button on the code block. Open Notepad (Windows) or TextEdit (Mac; first choose Format, then Make Plain Text). Paste, and save the file with the name index.html. Make a new folder and put index.html inside it. Then open app.netlify.com/drop, drag your folder onto the page and let go. After a minute you get a web address. That is your website! If Netlify asks you to sign up, do it. It is free. If you get stuck, ask ChatGPT: Please help me put my website online, one tiny step at a time.