$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "promptTemplate": "Classify the sentiment of this review as positive, neutral or negative: {{review}}",
< "outputFields": [
< "sentiment"
< ],
< "rows": [
< {
< "product": "Desk lamp",
< "review": "Bright, easy to set up and it arrived a day early. Very happy with it."
< },
< {
< "product": "Phone case",
< "review": "It fits, but the colour is duller than in the photos."
< },
< {
< "product": "Kettle",
< "review": "Stopped working after two weeks and support never replied."
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/olliolli~bulk-ai-prompt/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'