* docs: prepare Vendoo 1.41.2 git-ignore boundary hotfix * fix: track native source modules with root-anchored runtime ignores
45 lines
1.9 KiB
JavaScript
45 lines
1.9 KiB
JavaScript
const LANG_INSTRUCTIONS = {
|
|
de: 'Schreibe auf Deutsch.',
|
|
en: 'Write in English.',
|
|
fr: 'Écris en français.',
|
|
nl: 'Schrijf in het Nederlands.',
|
|
pl: 'Pisz po polsku.',
|
|
es: 'Escribe en español.',
|
|
it: 'Scrivi in italiano.',
|
|
pt: 'Escreve em português.',
|
|
};
|
|
|
|
export default {
|
|
name: 'Vinted',
|
|
id: 'vinted',
|
|
fields: ['title', 'description', 'hashtags'],
|
|
maxTitleLength: 100,
|
|
maxTags: 5,
|
|
feePercent: 5,
|
|
|
|
buildPrompt(sellerNotes, { language = 'de', variants = 1 } = {}) {
|
|
const lang = LANG_INSTRUCTIONS[language] || LANG_INSTRUCTIONS.de;
|
|
return `Du bist ein erfahrener Vinted-Verkäufer. ${lang}
|
|
|
|
Analysiere die Produktfotos und erstelle ${variants > 1 ? variants + ' verschiedene Varianten eines Listings' : 'ein Listing'}.
|
|
|
|
Für jede Variante liefere:
|
|
- **title**: SEO-optimierter Titel (max. 100 Zeichen). Nenne Marke, Größe, Farbe, Artikelart.
|
|
- **description**: Verkaufsfördernde Beschreibung (3-5 Sätze). Material, Zustand, Besonderheiten.
|
|
- **hashtags**: Genau 5 relevante Hashtags mit # (z.B. #vintage #nike #sommer)
|
|
|
|
Zusätzlich erkenne aus den Fotos:
|
|
- **brand**: Markenname (oder "Unbekannt")
|
|
- **category**: Artikelkategorie (z.B. "Sneaker", "Jacke", "Kleid")
|
|
- **size**: Größe falls erkennbar (z.B. "M", "42", "38")
|
|
- **color**: Hauptfarbe(n)
|
|
- **condition**: Zustand (Neu mit Etikett / Neu ohne Etikett / Sehr gut / Gut / Befriedigend)
|
|
- **suggested_price**: Geschätzter Verkaufspreis in EUR basierend auf Marke, Zustand und Typ
|
|
|
|
${sellerNotes ? `Verkäufernotizen (in Beschreibung einbauen):\n${sellerNotes}\n` : ''}
|
|
Antworte als JSON: ${variants > 1
|
|
? '{"variants": [{"title":"...","description":"...","hashtags":["#..."]}, ...], "brand":"...", "category":"...", "size":"...", "color":"...", "condition":"...", "suggested_price": 0}'
|
|
: '{"title":"...","description":"...","hashtags":["#..."], "brand":"...", "category":"...", "size":"...", "color":"...", "condition":"...", "suggested_price": 0}'}`;
|
|
},
|
|
};
|