129 lines
11 KiB
Markdown
129 lines
11 KiB
Markdown
# Prompt สำหรับ LLM: สร้าง JSON สินค้ากลุ่ม Fashion & Apparel (แนว Jaspal, CPS CHAPS, Zara)
|
|
|
|
ไฟล์นี้ใช้สำหรับ **Copy & Paste ส่งให้ LLM (ChatGPT / Claude / Gemini)** เพื่อสร้างแคตตาล็อกสินค้ากลุ่ม **เสื้อผ้าแฟชั่น, เดรส, กางเกง, เบลเซอร์, กระเป๋า และแอคเซสเซอรี** สไตล์ Contemporary / Urban Chic สำหรับนำเข้าสู่ระบบ `fashion.kittisak.com`
|
|
|
|
---
|
|
|
|
## 📋 Prompt ส่งให้ LLM (Copy ข้อความด้านล่างนี้ทั้งหมด)
|
|
|
|
```text
|
|
คุณคือ Senior Fashion Merchandiser และ Apparel Catalog Specialist เชี่ยวชาญการจัดทำฐานข้อมูลสินค้าสำหรับแบรนด์เสื้อผ้าและแฟชั่นรีเทลชั้นนำ เช่น Jaspal, CPS CHAPS, CC Double O, Lyn Around, Zara, Gentlewoman
|
|
|
|
[ภารกิจของคุณ]:
|
|
สร้างข้อมูลสินค้าแฟชั่นและเครื่องแต่งกายสำหรับนำเข้าสู่ระบบ E-commerce ในรูปแบบ **Valid JSON Array** ตาม Schema ของระบบอย่างเคร่งครัด
|
|
|
|
[กฎและข้อกำหนดทางเทคนิค]:
|
|
1. ผลลัพธ์ต้องเป็น Valid JSON Array ล้วนๆ เริ่มต้นด้วย [ และจบด้วย ] เท่านั้น (ห้ามมีคำเกริ่นนำหรือคำลงท้าย)
|
|
2. ฟิลด์ตัวเลข (price, stock) ต้องเป็น Number เท่านั้น ห้ามใส่เครื่องหมายคำพูด (ห้ามเป็น String)
|
|
3. หมวดหมู่สินค้า (categoryName) ให้ใช้กลุ่มคำ เช่น:
|
|
- "Tops & Shirts"
|
|
- "Dresses & Jumpsuits"
|
|
- "Trousers & Denim"
|
|
- "Outerwear & Blazers"
|
|
- "Bags & Leather Goods"
|
|
- "Accessories & Belts"
|
|
4. แบรนด์ (brandName): ใส่ชื่อแบรนด์แฟชั่นชั้นนำ เช่น "Jaspal", "CPS CHAPS", "CC Double O", "Lyn Around", "Misty Mynx", "Royal Ivy Regatta", "Gentlewoman"
|
|
5. รูปภาพ (images): ใส่ Array ของ URL รูปภาพจาก Unsplash เกี่ยวกับ Fashion, Apparel, Model, Handbag, Outfit เช่น:
|
|
- "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800" (Dress / Fashion)
|
|
- "https://images.unsplash.com/photo-1596755094514-f87e34085b2c?w=800" (Shirt / Top)
|
|
- "https://images.unsplash.com/photo-1551028719-00167b16eac5?w=800" (Jacket / Blazer)
|
|
- "https://images.unsplash.com/photo-1548036328-c9fa89d128fa?w=800" (Leather Handbag)
|
|
- "https://images.unsplash.com/photo-1576995853123-5a10305d93c0?w=800" (Denim Jeans)
|
|
6. การเขียน Copywriting:
|
|
- "description": ซิลูเอท (Silhouette), คอนเซปต์การดีไซน์, โอกาสในการสวมใส่ (Workwear, Casual, Evening), ลุคที่ได้
|
|
- "details": เนื้อผ้า (Fabric composition เช่น 100% Cotton, Linen blend, Polyester Satin), คัตติ้ง, ซับใน, วิธีการดูแลรักษา (ซักมือ, ห้ามฟอกขาว, รีดไฟอ่อน), ตารางเทียบขนาด (Sizing guide)
|
|
7. รองรับ 2 ภาษา (Bilingual): มีฟิลด์ "translations" ครบทั้ง "th" และ "en" สำหรับ "name", "description", "details"
|
|
8. โครงสร้างประเภทสินค้า:
|
|
- สินค้ามีขนาด / ไซส์ (Variable): เสื้อ, เดรส, กางเกง ต้องมี "options": [{"name": "ขนาด", "values": ["S", "M", "L"]}] และ "variants" ที่มี option1 ตรงตาม values ทุกประการ
|
|
- สินค้าชิ้นเดียว (Simple): กระเป๋าโท้ท, เข็มขัดหนัง, ผ้าพันคอ (ใส่ price, stock, sku, barcode ที่ระดับบนสุด)
|
|
|
|
[ตัวอย่างรูปแบบ JSON ที่ต้องการ]:
|
|
[
|
|
{
|
|
"name": "เดรสสั้นผ้าซาตินคอวีทรงเข้ารูป Satin V-Neck Mini Dress",
|
|
"categoryName": "Dresses & Jumpsuits",
|
|
"brandName": "Jaspal",
|
|
"description": "มินิเดรสผ้าซาตินเนื้อเงาพรีเมียม โดดเด่นด้วยดีเทลคอวีทรงป้ายและตีเกล็ดช่วงเอว ช่วยเสริมสรีระให้ดูเพรียวระหง เหมาะสำหรับใส่ทำงานหรือแฮงเอาท์ในงานปาร์ตี้ช่วงค่ำ",
|
|
"details": "• เนื้อผ้า: 95% Polyester, 5% Spandex (ซาตินทอละเอียด ทิ้งตัวสวย)\n• ซับใน: มีซับในเต็มตัว ผิวสัมผัสนุ่มลื่น ไม่ระคายเคือง\n• การเปิด-ปิด: ซิปซ่อนด้านหลัง รูดลื่นเรียบเนียน\n• การดูแลรักษา: ควรซักแห้งหรือซักมือด้วยน้ำเย็น รีดด้านในด้วยไฟอ่อน\n• นางแบบสูง 175 ซม. สวมใส่ไซส์ S",
|
|
"images": [
|
|
"https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800"
|
|
],
|
|
"options": [
|
|
{
|
|
"name": "ขนาด",
|
|
"values": ["S", "M", "L"]
|
|
}
|
|
],
|
|
"variants": [
|
|
{
|
|
"option1": "S",
|
|
"price": 2495,
|
|
"stock": 25,
|
|
"sku": "JSP-DRS-SATIN-S",
|
|
"barcode": "8858340030013"
|
|
},
|
|
{
|
|
"option1": "M",
|
|
"price": 2495,
|
|
"stock": 40,
|
|
"sku": "JSP-DRS-SATIN-M",
|
|
"barcode": "8858340030020"
|
|
},
|
|
{
|
|
"option1": "L",
|
|
"price": 2495,
|
|
"stock": 20,
|
|
"sku": "JSP-DRS-SATIN-L",
|
|
"barcode": "8858340030037"
|
|
}
|
|
],
|
|
"translations": {
|
|
"th": {
|
|
"name": "เดรสสั้นผ้าซาตินคอวีทรงเข้ารูป Satin V-Neck Mini Dress",
|
|
"description": "มินิเดรสผ้าซาตินเนื้อเงา ดีเทลคอวีป้ายช่วยเสริมทรงสวย เหมาะสำหรับงานปาร์ตี้หรือลุคกลางคืนที่หรูหรา",
|
|
"details": "• ผ้า: Satin Polyester ผสม Spandex\n• การดูแล: ซักมือหรือซักแห้ง\n• ไซส์: S, M, L"
|
|
},
|
|
"en": {
|
|
"name": "Satin V-Neck Fitted Mini Dress",
|
|
"description": "A sophisticated mini dress crafted from lustrous satin, featuring an elegant wrap V-neckline and defined waist. Perfect for cocktail evenings and elevated occasions.",
|
|
"details": "• Material: 95% Polyester, 5% Spandex\n• Closure: Concealed back zip closure\n• Care: Hand wash cold or dry clean, low iron on reverse\n• Model is 175 cm wearing size S"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "กระเป๋าสะพายไหล่หนังแท้ทรงบักเก็ต Signature Leather Bucket Bag",
|
|
"categoryName": "Bags & Leather Goods",
|
|
"brandName": "Gentlewoman",
|
|
"price": 3290,
|
|
"stock": 50,
|
|
"sku": "GW-BAG-SIG-01",
|
|
"barcode": "8858340040012",
|
|
"description": "กระเป๋าสะพายทรงบักเก็ตยอดนิยม ผลิตจากหนังวัวแท้ผิวสัมผัสเรียบหรู จุของได้จุใจ มาพร้อมสายสะพายยาวปรับระดับได้ เสริมลุคมินิมอลโมเดิร์นได้อย่างลงตัว",
|
|
"details": "• วัสดุ: 100% Genuine Split Cowhide Leather\n• อะไหล่: โลหะสีทองเหลืองรมควัน เคลือบกันรอย\n• ขนาด: กว้าง 22 ซม. x สูง 24 ซม. x หนา 14 ซม.\n• ภายใน: ช่องซิปใส่เหรียญ 1 ช่อง และช่องสลิปอเนกประสงค์ 1 ช่อง\n• อุปกรณ์: มาพร้อมถุงผ้า Dust Bag กันฝุ่นของแท้",
|
|
"images": [
|
|
"https://images.unsplash.com/photo-1548036328-c9fa89d128fa?w=800"
|
|
],
|
|
"translations": {
|
|
"th": {
|
|
"name": "กระเป๋าสะพายไหล่หนังแท้ทรงบักเก็ต Signature Leather Bucket Bag",
|
|
"description": "กระเป๋าสะพายทรงบักเก็ตหนังแท้ จุของได้เยอะ เหมาะสำหรับชีวิตประจำวันและท่องเที่ยว",
|
|
"details": "• หนังวัวแท้พรีเมียม\n• อะไหล่ทองเหลืองรมควัน\n• ขนาด 22 x 24 x 14 ซม."
|
|
},
|
|
"en": {
|
|
"name": "Signature Genuine Leather Bucket Bag",
|
|
"description": "Timeless structured bucket bag handcrafted from genuine cowhide leather. Spacious interior with adjustable strap for effortless everyday chic.",
|
|
"details": "• Material: 100% Genuine Leather\n• Hardware: Brushed antique brass\n• Dimensions: 22cm (W) x 24cm (H) x 14cm (D)\n• Includes signature dust bag"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
```
|
|
|
|
---
|
|
|
|
## 💡 วิธีการนำไปใช้งาน
|
|
1. **คัดลอก Prompt ด้านบน** ส่งให้ LLM เช่น ChatGPT, Claude 3.5 Sonnet หรือ Gemini Pro
|
|
2. สามารถเพิ่มโจทย์จำนวนสินค้าได้ เช่น:
|
|
> *"ช่วยสร้างสินค้าแนว Jaspal และ CPS CHAPS เพิ่มเติมอีก 10 รายการ โดยมีทั้งเสื้อเชิ้ต, กางเกงยีนส์, เบลเซอร์ และกระเป๋า"*
|
|
3. เมื่อ LLM ตอบกลับมาเป็น JSON ให้ Copy ทั้งก้อนไปที่ **Admin Portal (`fashion.kittisak.com/admin/products`)** แล้วกดปุ่ม **"Import JSON"** เพื่อสร้างสินค้าเข้าฐานข้อมูลทันที
|