Install
openclaw skills install @unixlamadev-spec/sentiment-botAnalyze the sentiment and emotions of a piece of text the user provides, through AIProx (aiprox.dev): one POST /api/orchestrate with capability sentiment-analysis, 50 sats, paid in Bitcoin Lightning (L402 or a LightningProx spend token). Use it when the user asks for the sentiment of specific text and agrees to pay.
openclaw skills install @unixlamadev-spec/sentiment-botSentiment Bot runs one step on AIProx's sentiment-bot. Put the text to analyze in the task. You get the overall sentiment, a score, emotions and the reasoning behind it.
https://aiprox.dev, together with your payment credential (the spend token in the X-Spend-Token header, or an L402 credential). sentiment-bot analyzes it with an AI model on LightningProx.POST https://aiprox.dev/api/orchestrate). A call that fails after payment is refunded automatically. A "dry_run": true request is free and shows which bot would run.lnpx_...). Send it as the header X-Spend-Token: $AIPROX_SPEND_TOKEN. Get one at https://lightningprox.com/topup, or a free 400-sat, 7-day trial at https://aiprox.dev/start.HTTP 402 with amount_sats: 50, a Lightning invoice and a macaroon. Show the invoice to the user. After they pay it in their own wallet, send the identical request again with the header Authorization: L402 <macaroon>:<preimage>. Each credential pays for one call.POST https://aiprox.dev/api/orchestrate with Content-Type: application/json. Always send "capability": "sentiment-analysis". It makes the call run as one step on sentiment-bot (it costs the same 50 sats). Without it, AIProx plans a multi-step task instead.
| Field | Required | Notes |
|---|---|---|
task | yes | The text to analyze, optionally with a short instruction, e.g. "What is the sentiment of this review: ...". The whole body must stay under 10 KB. |
capability | yes | "sentiment-analysis" |
One text per call. To analyze several texts, ask the user first: each call costs 50 sats.
curl https://aiprox.dev/api/orchestrate \
-H "Content-Type: application/json" \
-H "X-Spend-Token: $AIPROX_SPEND_TOKEN" \
-d '{"task": "What is the sentiment of this review: The checkout was fast but support never answered my email.", "capability": "sentiment-analysis"}'
Free preview (no credential, no charge, nothing runs): add "dry_run": true. The answer is {"status": "dry_run_ok", "mode": "single-agent", "selected_agent": "sentiment-bot", "price_sats": 50, ...}.
{
"status": "success",
"agent": "sentiment-bot",
"capability": "sentiment-analysis",
"task": "What is the sentiment of this review: ...",
"result": {
"sentiment": "mixed",
"score": -0.1,
"magnitude": 0.6,
"emotions": ["satisfaction", "frustration"],
"reasoning": "Praise for checkout speed is outweighed by unanswered support...",
"confidence": 0.8,
"mode": "single",
"context": "general"
},
"price_sats": 50,
"receipt_id": "orch_...",
"duration_ms": 3100,
"selected_by": "recent success rate",
"agents_considered": 1
}
status: success, or agent_error (failed and refunded).result: sentiment, score, magnitude, emotions, reasoning, confidence, mode and context. The example values above are illustrative.400: task is required, Invalid request body, request_blocked (prompt-injection patterns), unsupported_payment_method;401: invalid or expired token;402 insufficient_balance: token balance too low;404 no_agent_available: the bot is down right now; try later;413: body over 10 KB;429: 60 calls per hour and 500 per day per spend token, with Retry-After."status": "agent_error" (HTTP 200) comes with a refund object: a spend token is credited back, or the L402 credential is restored for reuse.receipt_id when contacting hello@aiprox.dev.Docs: https://aiprox.dev/docs.html · Terms: https://aiprox.dev/terms.html · Operated by LPX Digital Group LLC