$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "texts": [
< "Hi, I've been trying to connect my Stripe account for 3 days and the integration keeps failing. I'm losing sales. Please help ASAP.",
< "Just wanted to say the new dashboard looks great. No issues here!",
< "How much does the Team plan cost if we add 12 seats?"
< ],
< "questions": [
< {
< "key": "department",
< "type": "choice",
< "instructions": "Which team should handle this message?",
< "criteria": {
< "billing": "Payment or subscription issues",
< "technical": "Bugs or integration problems",
< "sales": "Pricing or account questions"
< }
< },
< {
< "key": "frustration",
< "type": "score",
< "instructions": "How frustrated the customer appears",
< "criteria": [
< "Calm, just stating facts",
< "Frustrated but civil",
< "Very angry, strong language"
< ]
< },
< {
< "key": "is_urgent",
< "type": "noul",
< "instructions": "The message conveys urgency or time-sensitivity"
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/seemuapps~bulk-text-classifier/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'