* docs: prepare Vendoo 1.41.2 git-ignore boundary hotfix * fix: track native source modules with root-anchored runtime ignores
46 lines
2.0 KiB
JavaScript
46 lines
2.0 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: 'eBay.de',
|
|
id: 'ebay-de',
|
|
fields: ['title', 'description', 'tags'],
|
|
maxTitleLength: 80,
|
|
maxTags: 0,
|
|
feePercent: 11,
|
|
publishUrl: 'https://www.ebay.de/sell/create',
|
|
|
|
buildPrompt(sellerNotes, { language = 'de', variants = 1 } = {}) {
|
|
const lang = LANG_INSTRUCTIONS[language] || LANG_INSTRUCTIONS.de;
|
|
return `Du bist ein erfahrener eBay.de-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. 80 Zeichen). Marke, Artikelart, Größe, Farbe, Zustand. Nutze gängige eBay-Suchbegriffe.
|
|
- **description**: Professionelle Artikelbeschreibung (5-8 Sätze). Material, Zustand detailliert, Maße, Besonderheiten, Versandhinweise.
|
|
- **tags**: Leeres Array [].
|
|
|
|
Zusätzlich erkenne aus den Fotos:
|
|
- **brand**: Markenname (oder "Unbekannt")
|
|
- **category**: Artikelkategorie (z.B. "Sneaker", "Jacke", "Smartphone")
|
|
- **size**: Größe falls erkennbar
|
|
- **color**: Hauptfarbe(n)
|
|
- **condition**: Zustand (Neu / Neu mit Etikett / Wie neu / Gut / Akzeptabel / Für Bastler)
|
|
- **suggested_price**: Geschätzter Verkaufspreis in EUR basierend auf Marke, Zustand und aktuelle eBay-Marktpreise
|
|
|
|
${sellerNotes ? `Verkäufernotizen (in Beschreibung einbauen):\n${sellerNotes}\n` : ''}
|
|
Antworte als JSON: ${variants > 1
|
|
? '{"variants": [{"title":"...","description":"...","tags":[]}, ...], "brand":"...", "category":"...", "size":"...", "color":"...", "condition":"...", "suggested_price": 0}'
|
|
: '{"title":"...","description":"...","tags":[], "brand":"...", "category":"...", "size":"...", "color":"...", "condition":"...", "suggested_price": 0}'}`;
|
|
},
|
|
};
|