Imp Imp
← Back to Arsenal
AI Sentiment Analysis API

AI Sentiment Analysis API

Ai

Analyze text sentiment with AI. Emotion detection, key phrase extraction. Supports OpenAI GPT-4, Claude. Webhook Integration for Zapier, Make, n8n, or custom webhook.

Sentiment Analysis API

Built by John Rippy | johnrippy.link
🏆 2025 Zapier Automation Hero of the YearProject Phoenix: A 95-step AI sales pipeline cutting development time by 50%. Read more →

Analyze text sentiment using AI or rule-based analysis. Detect positive, negative, neutral, and mixed sentiments with emotion detection, confidence scores, and key phrase extraction.

Features

Use Cases

Input Parameters

Output

The actor outputs a comprehensive analysis object:

{

"totalTexts": 3,

"overallSentiment": "mixed",

"averageScore": 0.07,

"results": [

{

"text": "I love this product! It's amazing.",

"sentiment": "positive",

"score": 0.92,

"confidence": 0.95,

"magnitude": 0.88,

"emotions": [

{ "name": "joy", "score": 0.85 },

{ "name": "surprise", "score": 0.15 }

],

"keyPhrases": ["love this product", "amazing"],

"topics": ["product", "quality"],

"language": "en",

"model": "gpt-4o-mini",

"processingTime": 245

}

],

"summary": {

"positive": 1,

"negative": 1,

"neutral": 1,

"mixed": 0

}

}

Sentiment Scores

Sentiment Categories

Example Usage

Basic Sentiment Analysis

{

"texts": [

"I love this product! It's amazing.",

"Terrible customer service, never again.",

"The package arrived on time."

]

}

AI-Powered Analysis

{

"texts": ["Your product transformed my business! Thank you!"],

"openaiApiKey": "sk-...",

"model": "gpt-4o-mini",

"includeEmotions": true,

"includeKeyPhrases": true

}

Review Batch Analysis

{

"texts": [

"5 stars! Best purchase ever.",

"Product broke after 2 days.",

"Good value for money.",

"Shipping was slow but item was fine."

],

"anthropicApiKey": "sk-ant-...",

"model": "claude-3-haiku",

"includeTopics": true

}

With Webhook Notification

{

"texts": ["Great experience overall!"],

"webhookUrl": "https://hooks.zapier.com/your-webhook-id"

}

Models Comparison

Pricing

This actor uses the pay-per-event pricing model:

Example: Analyzing 100 reviews with rule-based = ~$0.25

Integration

Zapier/Make/n8n

Use the webhook URL to trigger automations when analysis completes. The webhook payload includes:

Supabase/Database

Store results in your database for trend analysis and reporting.

Limitations

Support

For issues or feature requests, contact support.

---

Keywords

sentiment api, sentiment analysis, review sentiment, ai sentiment, text analysis, opinion mining, openai integration, claude integration

149,000
KILLS
100%
HEALTH
Doomguy
274
ACTORS
0/3
SECRETS