Files
vendoo/platforms/ebay-ka.mjs
T
Masterluke77andGitHub 6f48827f4d Vendoo 1.41.2 – Git Ignore Boundary & Module Tracking Hotfix (#18)
* docs: prepare Vendoo 1.41.2 git-ignore boundary hotfix

* fix: track native source modules with root-anchored runtime ignores
2026-07-09 17:09:00 +02:00

40 lines
1.7 KiB
JavaScript

const LANG_INSTRUCTIONS = {
de: 'Schreibe auf Deutsch.',
en: 'Write in English.',
};
export default {
name: 'eBay Kleinanzeigen',
id: 'ebay-ka',
fields: ['title', 'description', 'tags'],
maxTitleLength: 65,
maxTags: 0,
feePercent: 0,
shippingNote: 'eBay KA erhebt keine Verkaufsgebühren. Versandkosten variieren.',
buildPrompt(sellerNotes, { language = 'de', variants = 1 } = {}) {
const lang = LANG_INSTRUCTIONS[language] || LANG_INSTRUCTIONS.de;
return `Du bist ein erfahrener eBay-Kleinanzeigen-Verkäufer. ${lang}
Analysiere die Produktfotos und erstelle ${variants > 1 ? variants + ' verschiedene Varianten einer Anzeige' : 'eine Anzeige'}.
Für jede Variante liefere:
- **title**: Prägnanter Titel (max. 65 Zeichen). Marke, Artikelart, Größe/Maße, Zustand.
- **description**: Ausführliche Beschreibung (5-8 Sätze). Zustand detailliert, Material, Maße, Abholung/Versand.
- **tags**: Leeres Array [].
Zusätzlich erkenne aus den Fotos:
- **brand**: Markenname (oder "Unbekannt")
- **category**: Artikelkategorie
- **size**: Größe falls erkennbar
- **color**: Hauptfarbe(n)
- **condition**: Zustand (Neu / Wie neu / Gut / Akzeptabel / Defekt)
- **suggested_price**: Geschätzter Verkaufspreis in EUR
${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}'}`;
},
};