ข้ามไปที่เนื้อหา
เครื่องทำบัตรกำนัลร้าน

สร้างเครื่องทำบัตรกำนัลร้าน: ออกบัตรของขวัญ บันทึกเป็นรูป คุมทะเบียนบัตร

ทดสอบกับ Claude

ได้ไฟล์ HTML ไฟล์เดียวเปิดในมือถือ ใช้ขายบัตรของขวัญช่วงปีใหม่ ข้อมูลเก็บในเครื่อง ส่งออกเป็น CSV เปิดใน Excel ได้

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

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

Prompt ที่ปรับได้
You are a web developer who builds practical tools for small shops. Create a "Gift Voucher Maker" for [shop_name] as ONE single HTML file (HTML + CSS + JavaScript in the same file, no external libraries, nothing to install) that works on phones and computers. The shop owner uses it, not customers. All on-screen text must be in Thai.

Shop details:
- Shop name: [shop_name]
- Shop code (prefix for voucher codes): [shop_code]
- Shop type: [shop_type]
- Common voucher values: [values]
- Voucher validity: [valid_days]
- Terms of use: [conditions]
- Contact: [contact]
- Main color: [color]

Must include:
1. Issue form: recipient name, giver name (optional), short message up to 60 characters, value in baht (quick buttons for [values] plus free input), expiry date calculated from today using [valid_days] and editable. Use the device's local date, not UTC.
2. An auto-generated voucher code that never repeats an issued one, format SHOPCODE-YYYYMM-4 random characters, excluding confusing characters such as O 0 I 1, with a button to regenerate.
3. A live landscape voucher preview showing shop name, large value, recipient, giver, message, code, expiry, terms and contact. Every line must stay fully visible on a phone screen.
4. A "Save as image" button that draws the voucher on a canvas and downloads a PNG to send by LINE, and a "Print voucher" button that prints only the voucher.
5. A "Save to register" button that stores issued vouchers in localStorage, with a list, search by code or name, a "Used" button that asks for confirmation and records the date, status Valid / Used / Expired, and the total value of unused vouchers.
6. Export the register as a CSV that opens in Excel with correct Thai text, a backup button, and an import button to restore a backup.

Design: readable font, at least 16px text, large tap-friendly buttons, [color] as the main color, no horizontal scrolling on phones.

Do not: take payments or card numbers on the page, store national ID numbers, phone numbers or other sensitive customer data, or use LINE Notify or any service that needs a server.

Return the complete file in one go, then explain briefly in simple Thai how to save and open it on a phone, how to put it online for free with Netlify Drop or GitHub Pages, and warn that the register lives only on this device, so it should be backed up every week.

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

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

  • [shop_name]
    ชื่อร้านชื่อร้านที่จะขึ้นบนบัตรเช่น ร้านกาแฟบ้านสวนดอย
  • [shop_code]
    ตัวย่อร้านตัวอักษรอังกฤษ 2-4 ตัว ใช้ขึ้นต้นรหัสบัตรเช่น BSD
  • [shop_type]
    ประเภทร้านร้านทำอะไร ช่วยให้ AI เลือกหน้าตาบัตรเช่น ร้านกาแฟและเบเกอรี่
  • [values]
    มูลค่าบัตรมูลค่าที่ขายบ่อย 2-4 ค่าเช่น 100, 300, 500 บาท
  • [valid_days]
    อายุบัตรใช้ได้กี่วันนับจากวันออกบัตรเช่น 90 วัน
  • [conditions]
    เงื่อนไขเงื่อนไขสั้นๆ ที่พิมพ์บนบัตรเช่น ใช้ได้ครั้งเดียว ไม่ทอนเป็นเงินสด
  • [contact]
    ช่องทางติดต่อLINE เพจ หรือเบอร์ร้านเช่น LINE @baansuandoi
  • [color]
    สีร้านสีหลักของร้านเช่น น้ำตาลกาแฟ

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

ร้านกาแฟ

ผลลัพธ์ เวอร์ชันที่ทดสอบสร้างจริงแล้ว ออกบัตร บันทึกรูป PNG ลงทะเบียน กดใช้แล้ว และส่งออก CSV ทำงานครบบนจอมือถือ

You are a web developer who builds practical tools for small shops. Create a "Gift Voucher Maker" for ร้านกาแฟบ้านสวนดอย as ONE single HTML file (HTML + CSS + JavaScript in the same file, no external libraries, nothing to install) that works on phones and computers. The shop owner uses it, not customers. All on-screen text must be in Thai.

Shop details:
- Shop name: ร้านกาแฟบ้านสวนดอย
- Shop code (prefix for voucher codes): BSD
- Shop type: ร้านกาแฟและเบเกอรี่
- Common voucher values: 100, 300, 500 บาท
- Voucher validity: 90 วัน
- Terms of use: ใช้ได้ครั้งเดียว ไม่ทอนเป็นเงินสด
- Contact: LINE @baansuandoi
- Main color: น้ำตาลกาแฟ

Must include:
1. Issue form: recipient name, giver name (optional), short message up to 60 characters, value in baht (quick buttons for 100, 300, 500 บาท plus free input), expiry date calculated from today using 90 วัน and editable. Use the device's local date, not UTC.
2. An auto-generated voucher code that never repeats an issued one, format SHOPCODE-YYYYMM-4 random characters, excluding confusing characters such as O 0 I 1, with a button to regenerate.
3. A live landscape voucher preview showing shop name, large value, recipient, giver, message, code, expiry, terms and contact. Every line must stay fully visible on a phone screen.
4. A "Save as image" button that draws the voucher on a canvas and downloads a PNG to send by LINE, and a "Print voucher" button that prints only the voucher.
5. A "Save to register" button that stores issued vouchers in localStorage, with a list, search by code or name, a "Used" button that asks for confirmation and records the date, status Valid / Used / Expired, and the total value of unused vouchers.
6. Export the register as a CSV that opens in Excel with correct Thai text, a backup button, and an import button to restore a backup.

Design: readable font, at least 16px text, large tap-friendly buttons, น้ำตาลกาแฟ as the main color, no horizontal scrolling on phones.

Do not: take payments or card numbers on the page, store national ID numbers, phone numbers or other sensitive customer data, or use LINE Notify or any service that needs a server.

Return the complete file in one go, then explain briefly in simple Thai how to save and open it on a phone, how to put it online for free with Netlify Drop or GitHub Pages, and warn that the register lives only on this device, so it should be backed up every week.

ร้านตัดผมชาย

ผลลัพธ์ บัตรกำนัลค่าตัดผมโทนเข้ม อายุ 6 เดือน เหมาะขายเป็นของขวัญปีใหม่

You are a web developer who builds practical tools for small shops. Create a "Gift Voucher Maker" for บาร์เบอร์ช่างเอก as ONE single HTML file (HTML + CSS + JavaScript in the same file, no external libraries, nothing to install) that works on phones and computers. The shop owner uses it, not customers. All on-screen text must be in Thai.

Shop details:
- Shop name: บาร์เบอร์ช่างเอก
- Shop code (prefix for voucher codes): EK
- Shop type: ร้านตัดผมชาย
- Common voucher values: 200, 350, 500 บาท
- Voucher validity: 180 วัน
- Terms of use: ต้องจองคิวก่อนใช้ ใช้ได้ครั้งเดียว
- Contact: เพจ บาร์เบอร์ช่างเอก
- Main color: กรมท่าและทอง

Must include:
1. Issue form: recipient name, giver name (optional), short message up to 60 characters, value in baht (quick buttons for 200, 350, 500 บาท plus free input), expiry date calculated from today using 180 วัน and editable. Use the device's local date, not UTC.
2. An auto-generated voucher code that never repeats an issued one, format SHOPCODE-YYYYMM-4 random characters, excluding confusing characters such as O 0 I 1, with a button to regenerate.
3. A live landscape voucher preview showing shop name, large value, recipient, giver, message, code, expiry, terms and contact. Every line must stay fully visible on a phone screen.
4. A "Save as image" button that draws the voucher on a canvas and downloads a PNG to send by LINE, and a "Print voucher" button that prints only the voucher.
5. A "Save to register" button that stores issued vouchers in localStorage, with a list, search by code or name, a "Used" button that asks for confirmation and records the date, status Valid / Used / Expired, and the total value of unused vouchers.
6. Export the register as a CSV that opens in Excel with correct Thai text, a backup button, and an import button to restore a backup.

Design: readable font, at least 16px text, large tap-friendly buttons, กรมท่าและทอง as the main color, no horizontal scrolling on phones.

Do not: take payments or card numbers on the page, store national ID numbers, phone numbers or other sensitive customer data, or use LINE Notify or any service that needs a server.

Return the complete file in one go, then explain briefly in simple Thai how to save and open it on a phone, how to put it online for free with Netlify Drop or GitHub Pages, and warn that the register lives only on this device, so it should be backed up every week.

ร้านนวดสปา

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

You are a web developer who builds practical tools for small shops. Create a "Gift Voucher Maker" for สบายใจนวดไทย as ONE single HTML file (HTML + CSS + JavaScript in the same file, no external libraries, nothing to install) that works on phones and computers. The shop owner uses it, not customers. All on-screen text must be in Thai.

Shop details:
- Shop name: สบายใจนวดไทย
- Shop code (prefix for voucher codes): SBJ
- Shop type: ร้านนวดแผนไทยและสปาเท้า
- Common voucher values: 300, 600, 1,000 บาท
- Voucher validity: 120 วัน
- Terms of use: โทรจองล่วงหน้า 1 วัน ใช้ได้ครั้งเดียว
- Contact: LINE @sabaijainuad
- Main color: เขียวใบตอง

Must include:
1. Issue form: recipient name, giver name (optional), short message up to 60 characters, value in baht (quick buttons for 300, 600, 1,000 บาท plus free input), expiry date calculated from today using 120 วัน and editable. Use the device's local date, not UTC.
2. An auto-generated voucher code that never repeats an issued one, format SHOPCODE-YYYYMM-4 random characters, excluding confusing characters such as O 0 I 1, with a button to regenerate.
3. A live landscape voucher preview showing shop name, large value, recipient, giver, message, code, expiry, terms and contact. Every line must stay fully visible on a phone screen.
4. A "Save as image" button that draws the voucher on a canvas and downloads a PNG to send by LINE, and a "Print voucher" button that prints only the voucher.
5. A "Save to register" button that stores issued vouchers in localStorage, with a list, search by code or name, a "Used" button that asks for confirmation and records the date, status Valid / Used / Expired, and the total value of unused vouchers.
6. Export the register as a CSV that opens in Excel with correct Thai text, a backup button, and an import button to restore a backup.

Design: readable font, at least 16px text, large tap-friendly buttons, เขียวใบตอง as the main color, no horizontal scrolling on phones.

Do not: take payments or card numbers on the page, store national ID numbers, phone numbers or other sensitive customer data, or use LINE Notify or any service that needs a server.

Return the complete file in one go, then explain briefly in simple Thai how to save and open it on a phone, how to put it online for free with Netlify Drop or GitHub Pages, and warn that the register lives only on this device, so it should be backed up every week.

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

ช่วงปีใหม่คนชอบซื้อบัตรกำนัลร้านกาแฟ ร้านทำผม หรือร้านนวดไปเป็นของขวัญ แต่ร้านเล็กส่วนใหญ่ไม่มีระบบออกบัตร Prompt นี้สั่งให้ AI เขียนหน้าเว็บไฟล์เดียวที่ออกบัตร สร้างรหัส และจดทะเบียนบัตรให้ในมือถือเครื่องเดียว

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

ใช้คู่กับ Prompt สร้างบัตรสะสมแต้มร้าน และ Prompt จัดเซ็ตของขวัญปีใหม่ขาย

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

ลูกค้าเอารูปบัตรไปแก้ตัวเลขเองได้ไหม

รูปบัตรแก้ได้เหมือนรูปทั่วไป ร้านจึงต้องค้นรหัสในทะเบียนทุกครั้งก่อนรับบัตร ถ้าไม่มีในทะเบียน มูลค่าไม่ตรง หรือกดใช้แล้ว ให้ปฏิเสธ

ใช้หลายเครื่องพร้อมกันได้ไหม

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

ลูกค้าจ่ายเงินยังไง

รับเงินตามปกติของร้าน เช่น เงินสดหรือโอน PromptPay แล้วค่อยออกบัตร หน้าเว็บนี้ไม่รับชำระเงินเอง

ต้องเสียค่าใช้จ่ายไหม

ตัวไฟล์ไม่มีค่าใช้จ่าย เปิดในเครื่องได้เลย ถ้าเอาขึ้น Netlify Drop หรือ GitHub Pages แบบพื้นฐานก็ใช้ฟรี

ข้อควรระวังก่อนรับบัตรจากลูกค้าทุกครั้ง ต้องค้นรหัสในทะเบียนให้ตรงทั้งรหัสและมูลค่า เพราะรูปบัตรถูกแก้หรือทำปลอมได้ง่าย

↑

ค้นหาในเว็บ

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

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

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

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

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

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

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

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

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