ข้ามไปที่เนื้อหา
หน้าแนะนำไซซ์เสื้อผ้า

สร้างหน้าแนะนำไซซ์เสื้อผ้า: ลูกค้ากรอกสัดส่วน รู้ไซซ์ก่อนสั่ง ลดการคืนของ

ทดสอบกับ Claude

ได้ไฟล์ HTML ไฟล์เดียวที่คำนวณไซซ์จากรอบอก เอว สะโพก และทรงที่ชอบ เตือนเมื่อก้ำกึ่ง ส่งข้อความเข้า LINE ร้าน พร้อมขั้นตรวจผลและข้อความชวนลูกค้าใช้

ใช้กับ: Claude, ChatGPT, Gemini, Claude Code

Prompt เต็ม พร้อมคัดลอก

Prompt ที่ปรับได้
=== STEP 1: BUILD THE SIZE PAGE (Claude, ChatGPT or Gemini) ===
You are a web developer who builds tools for small online clothing shops. Create a "pick the right size before you order" page as ONE HTML file (HTML + CSS + JavaScript in one file, no external libraries) that works on phones and computers. All text on the page in Thai, an easy-to-read font of at least 18px, large buttons.

Shop data:
- Shop name: [shop_name]
- Shop LINE ID or LINE OA link: [line_id]
- Products and size charts (garment measurements, inches): [size_chart]
- Ease the shop recommends: [ease]

The page must:
1. Let the customer pick a product from a list, then show input boxes only for the measurements that product uses (e.g. tops use chest, trousers use waist and hip).
2. Let them choose the unit: inches or centimeters (convert cm to inches by dividing by 2.54 before calculating).
3. Let them choose a fit: regular fit or loose fit.
4. Calculation: for each measurement, a size passes when the garment measurement is greater than or equal to body measurement + the ease for the chosen fit. Recommend the smallest size that passes every measurement.
5. Show the result as a large card: recommended size, a comparison line per measurement (your body / garment / ease left in inches), and the next size up for a looser feel.
6. If the body is larger than the biggest size, or the margin is under 0.5 inch (borderline), show "ไซซ์นี้ก้ำกึ่ง ทักแอดมินก่อนสั่งนะคะ" instead of guessing.
7. A button "ส่งไซซ์ให้ร้านทาง LINE" that opens https://line.me/R/share?text= followed by the encodeURIComponent message: product name, measurements entered, fit preference and recommended size; plus a backup "คัดลอกข้อความ" button.
8. Remember the last measurements on the customer's device with localStorage wrapped in try/catch so the page still works if storage is blocked, and a "ล้างข้อมูล" button.
9. Below, show the full size chart of the selected product and the note "ตัวเลขเป็นค่าประมาณ ผ้ายืดหรือไม่ยืดอาจต่างกัน".
10. No horizontal scrollbar on a 390px-wide phone screen.

Do not: ask for full name, phone number, address, ID card number or body weight; use LINE Notify; take any payment on this page; say "guaranteed to fit".

Send the complete file in one code block, then explain in Thai how to save it as size.html, open it on a phone to test, and put it online for free with Netlify Drop or GitHub Pages step by step.

=== STEP 2: CHECK THE MATH (same chat) ===
Test your file against my size chart with these measurements: [test_measure]. Make a table: measurements, fit, the size YOU calculate by hand from my chart, and the size the page would show. If any row differs, fix the code and send the complete file again. Also check: borderline warning appears, cm input gives the same size as the inch equivalent, and the LINE message contains no personal data.

=== STEP 3: MESSAGES TO GET CUSTOMERS TO USE IT (same chat) ===
Write in Thai for [shop_name]: 3 short lines to put under product posts, 1 line for the profile bio, and 3 chat replies for customers who ask "ใส่ไซซ์อะไรดี" that send them the page link and say plainly that the result is an estimate and admin will double-check. No exaggerated claims.

คำ[ในวงเล็บสีแดง] แก้เป็นของคุณได้

คำใน [ ] ที่ต้องแก้

  • [shop_name]
    ชื่อร้านชื่อร้านเสื้อผ้าเช่น ร้านผ้าฝ้ายบ้านสวน
  • [line_id]
    ไลน์ร้านLINE ID หรือลิงก์ LINE OA ของร้านเช่น @bansuancotton
  • [size_chart]
    ตารางไซซ์สินค้าแต่ละตัว ไซซ์ และขนาดตัวเสื้อผ้าจริงเป็นนิ้วเช่น เสื้อเชิ้ตผ้าฝ้าย (รอบอก) S 36, M 38, L 40, XL 42, 2XL 44 / กางเกงขากว้างเอวยาง (รอบเอว รอบสะโพก) M 30/42, L 32/44, XL 34/46
  • [ease]
    ระยะเผื่อจำนวนนิ้วที่ต้องเผื่อจากสัดส่วนตัว แยกทรงพอดีและทรงหลวมเช่น พอดีตัวเผื่อ 2 นิ้ว ใส่หลวมเผื่อ 4 นิ้ว
  • [test_measure]
    สัดส่วนทดสอบสัดส่วนตัวอย่าง 3-4 ชุดสำหรับตรวจในขั้น 2 ให้มีคนก้ำกึ่งและคนเกินไซซ์ด้วยเช่น รอบอก 36 นิ้ว พอดีตัว / รอบอก 36 นิ้ว ใส่หลวม / รอบอก 43 นิ้ว ใส่หลวม / เอว 71 ซม. สะโพก 99 ซม. พอดีตัว

เวอร์ชันตัวอย่าง

ร้านเสื้อผ้าฝ้ายสาววัยทำงาน (ทดสอบด้วย Playwright)

ผลลัพธ์ ทดสอบที่จอ 390x844 ไม่มี error รอบอก 36 พอดีได้ M ใส่หลวมได้ L รอบอก 43 ใส่หลวมขึ้นเตือนเกินไซซ์ กางเกงกรอกเซนติเมตรได้ M พร้อมเตือนก้ำกึ่ง ปุ่ม LINE เปิดลิงก์แชร์ ไม่มีแถบเลื่อนแนวนอน

=== STEP 1: BUILD THE SIZE PAGE (Claude, ChatGPT or Gemini) ===
You are a web developer who builds tools for small online clothing shops. Create a "pick the right size before you order" page as ONE HTML file (HTML + CSS + JavaScript in one file, no external libraries) that works on phones and computers. All text on the page in Thai, an easy-to-read font of at least 18px, large buttons.

Shop data:
- Shop name: ร้านผ้าฝ้ายบ้านสวน
- Shop LINE ID or LINE OA link: @bansuancotton
- Products and size charts (garment measurements, inches): เสื้อเชิ้ตผ้าฝ้าย (รอบอก) S 36, M 38, L 40, XL 42, 2XL 44 / กางเกงขากว้างเอวยาง (รอบเอว รอบสะโพก) M 30/42, L 32/44, XL 34/46
- Ease the shop recommends: พอดีตัวเผื่อ 2 นิ้ว ใส่หลวมเผื่อ 4 นิ้ว

The page must:
1. Let the customer pick a product from a list, then show input boxes only for the measurements that product uses (e.g. tops use chest, trousers use waist and hip).
2. Let them choose the unit: inches or centimeters (convert cm to inches by dividing by 2.54 before calculating).
3. Let them choose a fit: regular fit or loose fit.
4. Calculation: for each measurement, a size passes when the garment measurement is greater than or equal to body measurement + the ease for the chosen fit. Recommend the smallest size that passes every measurement.
5. Show the result as a large card: recommended size, a comparison line per measurement (your body / garment / ease left in inches), and the next size up for a looser feel.
6. If the body is larger than the biggest size, or the margin is under 0.5 inch (borderline), show "ไซซ์นี้ก้ำกึ่ง ทักแอดมินก่อนสั่งนะคะ" instead of guessing.
7. A button "ส่งไซซ์ให้ร้านทาง LINE" that opens https://line.me/R/share?text= followed by the encodeURIComponent message: product name, measurements entered, fit preference and recommended size; plus a backup "คัดลอกข้อความ" button.
8. Remember the last measurements on the customer's device with localStorage wrapped in try/catch so the page still works if storage is blocked, and a "ล้างข้อมูล" button.
9. Below, show the full size chart of the selected product and the note "ตัวเลขเป็นค่าประมาณ ผ้ายืดหรือไม่ยืดอาจต่างกัน".
10. No horizontal scrollbar on a 390px-wide phone screen.

Do not: ask for full name, phone number, address, ID card number or body weight; use LINE Notify; take any payment on this page; say "guaranteed to fit".

Send the complete file in one code block, then explain in Thai how to save it as size.html, open it on a phone to test, and put it online for free with Netlify Drop or GitHub Pages step by step.

=== STEP 2: CHECK THE MATH (same chat) ===
Test your file against my size chart with these measurements: รอบอก 36 นิ้ว พอดีตัว / รอบอก 36 นิ้ว ใส่หลวม / รอบอก 43 นิ้ว ใส่หลวม / เอว 71 ซม. สะโพก 99 ซม. พอดีตัว. Make a table: measurements, fit, the size YOU calculate by hand from my chart, and the size the page would show. If any row differs, fix the code and send the complete file again. Also check: borderline warning appears, cm input gives the same size as the inch equivalent, and the LINE message contains no personal data.

=== STEP 3: MESSAGES TO GET CUSTOMERS TO USE IT (same chat) ===
Write in Thai for ร้านผ้าฝ้ายบ้านสวน: 3 short lines to put under product posts, 1 line for the profile bio, and 3 chat replies for customers who ask "ใส่ไซซ์อะไรดี" that send them the page link and say plainly that the result is an estimate and admin will double-check. No exaggerated claims.

ร้านชุดนักศึกษาและชุดทำงาน

ผลลัพธ์ หน้าเลือกไซซ์เสื้อเชิ้ตและกระโปรงที่ผู้ปกครองใช้เลือกให้ลูก แยกระยะเผื่อกระโปรง และส่งไซซ์เข้า LINE ร้าน

=== STEP 1: BUILD THE SIZE PAGE (Claude, ChatGPT or Gemini) ===
You are a web developer who builds tools for small online clothing shops. Create a "pick the right size before you order" page as ONE HTML file (HTML + CSS + JavaScript in one file, no external libraries) that works on phones and computers. All text on the page in Thai, an easy-to-read font of at least 18px, large buttons.

Shop data:
- Shop name: ยูนิฟอร์มป้าเกด
- Shop LINE ID or LINE OA link: @uniformpakate
- Products and size charts (garment measurements, inches): เสื้อเชิ้ตขาวแขนสั้น (รอบอก) 34, 36, 38, 40, 42, 44, 46 / กระโปรงทรงเอ (รอบเอว รอบสะโพก) S 26/38, M 28/40, L 30/42, XL 32/44
- Ease the shop recommends: พอดีตัวเผื่อ 2 นิ้ว ใส่หลวมเผื่อ 3 นิ้ว กระโปรงเอวเผื่อ 1 นิ้ว

The page must:
1. Let the customer pick a product from a list, then show input boxes only for the measurements that product uses (e.g. tops use chest, trousers use waist and hip).
2. Let them choose the unit: inches or centimeters (convert cm to inches by dividing by 2.54 before calculating).
3. Let them choose a fit: regular fit or loose fit.
4. Calculation: for each measurement, a size passes when the garment measurement is greater than or equal to body measurement + the ease for the chosen fit. Recommend the smallest size that passes every measurement.
5. Show the result as a large card: recommended size, a comparison line per measurement (your body / garment / ease left in inches), and the next size up for a looser feel.
6. If the body is larger than the biggest size, or the margin is under 0.5 inch (borderline), show "ไซซ์นี้ก้ำกึ่ง ทักแอดมินก่อนสั่งนะคะ" instead of guessing.
7. A button "ส่งไซซ์ให้ร้านทาง LINE" that opens https://line.me/R/share?text= followed by the encodeURIComponent message: product name, measurements entered, fit preference and recommended size; plus a backup "คัดลอกข้อความ" button.
8. Remember the last measurements on the customer's device with localStorage wrapped in try/catch so the page still works if storage is blocked, and a "ล้างข้อมูล" button.
9. Below, show the full size chart of the selected product and the note "ตัวเลขเป็นค่าประมาณ ผ้ายืดหรือไม่ยืดอาจต่างกัน".
10. No horizontal scrollbar on a 390px-wide phone screen.

Do not: ask for full name, phone number, address, ID card number or body weight; use LINE Notify; take any payment on this page; say "guaranteed to fit".

Send the complete file in one code block, then explain in Thai how to save it as size.html, open it on a phone to test, and put it online for free with Netlify Drop or GitHub Pages step by step.

=== STEP 2: CHECK THE MATH (same chat) ===
Test your file against my size chart with these measurements: รอบอก 33 นิ้ว พอดีตัว / รอบอก 45 นิ้ว ใส่หลวม / เอว 27 สะโพก 39 นิ้ว. Make a table: measurements, fit, the size YOU calculate by hand from my chart, and the size the page would show. If any row differs, fix the code and send the complete file again. Also check: borderline warning appears, cm input gives the same size as the inch equivalent, and the LINE message contains no personal data.

=== STEP 3: MESSAGES TO GET CUSTOMERS TO USE IT (same chat) ===
Write in Thai for ยูนิฟอร์มป้าเกด: 3 short lines to put under product posts, 1 line for the profile bio, and 3 chat replies for customers who ask "ใส่ไซซ์อะไรดี" that send them the page link and say plainly that the result is an estimate and admin will double-check. No exaggerated claims.

ร้านเสื้อผ้าผู้ชายไซซ์ใหญ่

ผลลัพธ์ หน้าแนะนำไซซ์สำหรับผู้ชายไซซ์ใหญ่ที่เลือกไซซ์ผิดบ่อย คนที่เกินไซซ์ใหญ่สุดถูกส่งไปคุยกับแอดมินแทนการเดา

=== STEP 1: BUILD THE SIZE PAGE (Claude, ChatGPT or Gemini) ===
You are a web developer who builds tools for small online clothing shops. Create a "pick the right size before you order" page as ONE HTML file (HTML + CSS + JavaScript in one file, no external libraries) that works on phones and computers. All text on the page in Thai, an easy-to-read font of at least 18px, large buttons.

Shop data:
- Shop name: บิ๊กแมนแฟชั่น
- Shop LINE ID or LINE OA link: @bigmanfashion
- Products and size charts (garment measurements, inches): เสื้อโปโล (รอบอก) 2XL 48, 3XL 52, 4XL 56, 5XL 60 / กางเกงขาสั้นเอวยาง (รอบเอวยืดได้สุด รอบสะโพก) 2XL 42/50, 3XL 46/54, 4XL 50/58
- Ease the shop recommends: พอดีตัวเผื่อ 3 นิ้ว ใส่หลวมเผื่อ 5 นิ้ว

The page must:
1. Let the customer pick a product from a list, then show input boxes only for the measurements that product uses (e.g. tops use chest, trousers use waist and hip).
2. Let them choose the unit: inches or centimeters (convert cm to inches by dividing by 2.54 before calculating).
3. Let them choose a fit: regular fit or loose fit.
4. Calculation: for each measurement, a size passes when the garment measurement is greater than or equal to body measurement + the ease for the chosen fit. Recommend the smallest size that passes every measurement.
5. Show the result as a large card: recommended size, a comparison line per measurement (your body / garment / ease left in inches), and the next size up for a looser feel.
6. If the body is larger than the biggest size, or the margin is under 0.5 inch (borderline), show "ไซซ์นี้ก้ำกึ่ง ทักแอดมินก่อนสั่งนะคะ" instead of guessing.
7. A button "ส่งไซซ์ให้ร้านทาง LINE" that opens https://line.me/R/share?text= followed by the encodeURIComponent message: product name, measurements entered, fit preference and recommended size; plus a backup "คัดลอกข้อความ" button.
8. Remember the last measurements on the customer's device with localStorage wrapped in try/catch so the page still works if storage is blocked, and a "ล้างข้อมูล" button.
9. Below, show the full size chart of the selected product and the note "ตัวเลขเป็นค่าประมาณ ผ้ายืดหรือไม่ยืดอาจต่างกัน".
10. No horizontal scrollbar on a 390px-wide phone screen.

Do not: ask for full name, phone number, address, ID card number or body weight; use LINE Notify; take any payment on this page; say "guaranteed to fit".

Send the complete file in one code block, then explain in Thai how to save it as size.html, open it on a phone to test, and put it online for free with Netlify Drop or GitHub Pages step by step.

=== STEP 2: CHECK THE MATH (same chat) ===
Test your file against my size chart with these measurements: รอบอก 46 นิ้ว พอดีตัว / รอบอก 57 นิ้ว ใส่หลวม / เอว 105 ซม. สะโพก 125 ซม.. Make a table: measurements, fit, the size YOU calculate by hand from my chart, and the size the page would show. If any row differs, fix the code and send the complete file again. Also check: borderline warning appears, cm input gives the same size as the inch equivalent, and the LINE message contains no personal data.

=== STEP 3: MESSAGES TO GET CUSTOMERS TO USE IT (same chat) ===
Write in Thai for บิ๊กแมนแฟชั่น: 3 short lines to put under product posts, 1 line for the profile bio, and 3 chat replies for customers who ask "ใส่ไซซ์อะไรดี" that send them the page link and say plainly that the result is an estimate and admin will double-check. No exaggerated claims.

Prompt นี้ช่วยอะไร

ร้านเสื้อผ้าออนไลน์เสียเงินกับการคืนของมากที่สุดเพราะไซซ์ไม่พอดี Retail Insider รายงานผลสำรวจเดือนกรกฎาคม 2569 ว่าเสื้อผ้าเป็นสินค้าที่ถูกคืนมากที่สุดในการซื้อออนไลน์ และไซซ์คือเหตุผลหลักของการส่งคืน Prompt นี้ให้ AI สร้างหน้าเว็บไฟล์เดียวที่เทียบสัดส่วนลูกค้ากับตารางไซซ์จริงของร้าน บอกไซซ์ที่เหมาะพร้อมเหลือเผื่อกี่นิ้ว เตือนเมื่อก้ำกึ่ง แล้วลูกค้ากดส่งข้อมูลเข้า LINE ร้านได้ทันทีครับ

  • คำนวณจากตารางไซซ์จริง เทียบสัดส่วนตัวกับขนาดเสื้อผ้าบวกระยะเผื่อ แนะนำไซซ์เล็กที่สุดที่ใส่ได้ทุกสัดส่วน
  • ไม่เดาเมื่อก้ำกึ่ง ถ้าห่างเกณฑ์ไม่ถึงครึ่งนิ้วหรือเกินไซซ์ใหญ่สุด หน้าเว็บบอกให้ทักแอดมินแทน
  • ส่งเข้า LINE ไม่ต้องมีเซิร์ฟเวอร์ ใช้ลิงก์แชร์ของ LINE พร้อมปุ่มคัดลอกข้อความสำรอง ไม่เก็บชื่อ เบอร์ หรือน้ำหนัก
  • ทางทำเงิน ลดค่าส่งคืนและออเดอร์ที่ต้องเปลี่ยนไซซ์ ใส่ลิงก์ในไบโอและแคปชันสินค้า หรือรับทำหน้าแนะนำไซซ์ให้ร้านเสื้อผ้าอื่น

ถ้าอยากเขียนนโยบายเปลี่ยนไซซ์ให้ชัดคู่กัน ดู Prompt เขียนนโยบายคืนและเปลี่ยนสินค้าร้านออนไลน์ และถ้าอยากให้ลูกค้าตอบคำถามแล้วได้สินค้าที่ใช่ ดู Prompt สร้างแบบทดสอบช่วยลูกค้าเลือกสินค้า

คำถามเกี่ยวกับ Prompt นี้

หน้านี้ช่วยร้านประหยัดเงินได้ยังไง

ทุกครั้งที่ลูกค้าส่งคืนหรือเปลี่ยนไซซ์ ร้านมักเสียค่าส่งและเวลาแพ็กของซ้ำ หน้านี้ช่วยให้ลูกค้าเลือกไซซ์ได้ใกล้เคียงขึ้นก่อนสั่ง และส่งคนที่ก้ำกึ่งมาคุยก่อน คนที่ทำเป็นแล้วยังรับทำหน้าแบบนี้ให้ร้านเสื้อผ้าอื่นเป็นงานเสริมได้

ต้องเขียนโค้ดเป็นไหม

ไม่ต้อง แค่กรอกตารางไซซ์ใน [วงเล็บ] คัดลอกโค้ดที่ AI ส่งมาไปบันทึกเป็นไฟล์แล้วเปิดดู ถ้าอยากแก้อะไรให้พิมพ์บอก AI เป็นภาษาไทย

ข้อมูลที่ลูกค้ากรอกไปอยู่ที่ไหน

อยู่ในเครื่องของลูกค้าเท่านั้น หน้าเว็บไม่มีเซิร์ฟเวอร์ ร้านจะเห็นข้อมูลก็ต่อเมื่อลูกค้ากดส่งเข้า LINE เอง และหน้านี้ไม่ขอชื่อ เบอร์ หรือน้ำหนัก

ใช้กับผ้ายืดได้ไหม

ได้ ให้ตั้ง [ระยะเผื่อ] ของสินค้าผ้ายืดให้น้อยลง หรือติดลบได้ถ้าผ้ายืดมาก แล้วบอก AI ให้แยกระยะเผื่อตามสินค้า

ข้อควรระวังตารางไซซ์ต้องวัดจากตัวเสื้อผ้าจริงทุกรุ่น ถ้าใส่ตัวเลขจากโรงงานที่ไม่ตรงของจริง หน้าเว็บจะแนะนำไซซ์ผิดทุกครั้ง และควรบอกลูกค้าเสมอว่าเป็นค่าประมาณ

↑

ค้นหาในเว็บ

ค้นได้ทั้งพรอมต์ บทความ และข่าว

สร้างคลิปแบบนี้ด้วย AI

เห็นคลิปที่ชอบแล้วอยากทำบ้าง? แคปหน้าจอคลิป เล่าสั้นๆ ว่าเกิดอะไรขึ้น แล้วนำคำสั่งที่เราเขียนให้ไปวางใน ChatGPT หรือ Gemini (ใช้ฟรี) จะได้พรอมต์พร้อมใช้ สำหรับสร้างคลิปแนวเดียวกัน

AI เวอร์ชันฟรีมักเปิดลิงก์คลิปไม่ได้ เราจึงใช้ภาพหน้าจอกับคำเล่าแทน

เป็นผลงานแบบไหน

เตรียมภาพ: กดหยุดคลิปแล้วแคปหน้าจอ 3–4 ภาพ ช่วงต้น กลาง และท้ายคลิป

จะสร้างต่อด้วย AI ตัวไหน

หมายเหตุ: คลิปที่ได้จะเป็นแนวเดียวกัน แต่ไม่เหมือนต้นฉบับ 100% เพราะ AI แต่ละตัวสร้างงานไม่เหมือนกัน และสร้างแต่ละครั้งก็ได้ผลต่างกัน

ไม่สะดวกทำเอง? ส่งลิงก์ให้เราแกะให้ฟรี