$echo '{
< "items": [
< {
< "product": "Wireless earbuds",
< "review": "Battery lasts all day and pairing was instant. Best purchase this year!",
< "rating": 5
< },
< {
< "product": "Wireless earbuds",
< "review": "Left earbud stopped working after two weeks. Support never answered my emails.",
< "rating": 1
< },
< {
< "product": "Coffee grinder",
< "review": "Grinds evenly but it is louder than I expected. Fine for the price.",
< "rating": 3
< },
< {
< "product": "Coffee grinder",
< "review": "Package arrived three days late and the box was crushed, but the grinder itself works.",
< "rating": 3
< },
< {
< "product": "Desk lamp",
< "review": "Lámpara preciosa, luz cálida y muy buena calidad. La recomiendo.",
< "rating": 5
< }
< ],
< "maxRows": 5,
< "prompt": "Analyze this customer review.\\nProduct: {{product}}\\nStars: {{rating}}\\nReview: {{review}}",
< "outputMode": "json",
< "outputFields": {
< "sentiment": "positive|negative|neutral|mixed",
< "mainTopic": "short topic, e.g. battery, shipping, noise, quality",
< "needsReply": "boolean - true if customer support should respond",
< "replyDraft": "one polite sentence the shop could reply with, in the review'\''s language"
< }
<}' |
<apify call gazidev/bulk-ai-dataset-enricher --silent --output-dataset