E-commerce

AI-powered API

Product Review Sentiment Checker

Analyzes customer reviews and returns the sentiment score.

The Product Review Sentiment Analysis API parses the customer's product review and provides its sentiment (POSITIVE/NEGATIVE/NEUTRAL) with a score between 0-100%.

This API is perfect for generating sentiment reports for any online store, offering valuable insights into customer feedback.

Developers can use this API to enhance e-commerce platforms, customer feedback systems, or sentiment analysis tools. It automates the analysis process, helping businesses understand customer opinions and improve their offerings. Use cases include creating sentiment reports, enhancing customer service strategies, and refining product descriptions based on customer feedback.

NEUTRAL sentiment will always have score equals to 0.

AI jobs involve two key steps::

  1. Submitting the AI job: Initiating the process by sending the job request.
  2. Monitoring and receiving results: Continuously checking the job status and obtaining the final output upon successful completion.

Step 1. Submit the AI Job request

Endpoint: POST - /v1/ecommerce/review_sentiment

Attribute Type Mandatory Description
content String Yes Provide review text to analyze the sentiment.

REQUEST EXAMPLE:

{
  "content": "I got a variant of this laptop 4090 with miniLED and surprise, it does not work in SDR and if you enable HDR to make the miniLED work it causes so much back light bleed you can see light follow the mouse and around the the text. I found out Razer has two variants of the panel one called BOE and one called AUO. The BOE i got is whats broken, and they have the audacity to sell an inferior version of the laptop (early 2023) with a huge faulty screen.refer to my images to see how bad the MiniLED looks when HDR is enable, and without HDR well, the miniLED simply does not work. Great job Razer, will be returning this as I have no way of telling if I get the BOE or AUO variant of the screen. Do some research on this if you going for the MiniLED version.Other than the screen which is one of main reasons you likely buying this, the performance is amazing and temps are great."
}

RESPONSE EXAMPLE:

{
  "status_url": "https://sharpapi.com/api/v1/content/translate/job/status/5de4887a-0dfd-49b6-8edb-9280e468c210",
  "job_id": "5de4887a-0dfd-49b6-8edb-9280e468c210"
}

Step 2. Monitor & Fetch AI Job Results

Endpoint: GET - /v1/ecommerce/review_sentiment/job/status/:uuid

An endpoint is used to check on the progress of the requested API job.

Result Example:

{
{
  "data": {
    "type": "api_job_result",
    "id": "7f829234-0e87-4796-a820-4f9fe5de5aab",
    "attributes": {
      "status": "success",
      "type": "ecommerce_review_sentiment",
      "result": {
        "score": "85",
        "opinion": "NEGATIVE"
      }
    }
  }
}``
When Laravel/PHP E-commerce App Meets AI

When Laravel/PHP E-commerce App Meets AI

Jan 1, 2024

Hey fellow Laravel enthusiasts! In the ever-evolving landscape of e-commerce, integrating AI into your Laravel applications is not just a luxury, it’s a necessity. With SharpAPI’s Laravel package, it’s now easier than ever. In this blog, I’ll guide you through 10 transformative use cases for enhancing your Laravel-based e-commerce applications using SharpAPI.

SharpAPI Introduction Video

SharpAPI Introduction Video

Feb 2, 2024

SharpAPI is a powerful AI-powered API, which provides a range of workflow automation endpoints to help improve efficiency across various industries. It has features for E-commerce, Content & Marketing Automation, SEO, HR Tech, and Travel & Hospitality industries.

Leveraging AI for Enhanced Online Engagement

Leveraging AI for Enhanced Online Engagement

Jul 18, 2024

Let’s explore how AI can be leveraged to build scalable solutions for online engagement across various industries seeking to enhance efficiency and productivity through AI-driven workflow automation.