Docs

n8n Integration

n8n is a powerful workflow automation tool that allows you to connect over 400+ apps. With the official Sentor ML community node, you can seamlessly integrate sentiment analysis into your automated workflows.

Features

  • Sentiment Prediction: Analyze text to determine if it’s positive, negative, or neutral.
  • Entity Analysis: Narrow down sentiment analysis to specific products, brands, or mentions.
  • Batch Processing: Process multiple documents in a single request for maximum efficiency.
  • Multi-language Support: Native support for English (en) and Dutch (nl).

Installation

Via n8n UI (Recommended)

  1. Open your n8n instance and go to Settings > Community Nodes.
  2. Click on Install a community node.
  3. Enter n8n-nodes-sentor in the npm package name field.
  4. Click Install.
  5. Restart n8n (if self-hosting) or wait for the UI to refresh.

Manual Installation

If you are running n8n locally or in a custom environment:

npm install n8n-nodes-sentor

Setup & Configuration

1. Get your API Key

First, ensure you have an active API key from the Sentor Dashboard.

2. Configure Credentials in n8n

  1. In n8n, go to Credentials > New.
  2. Search for Sentor API.
  3. Enter your API Key.
  4. Click Save.

3. Using the Node

Drag the Sentor ML node into your canvas and configure the following parameters:

  • Language: Select the language of your input text (English or Dutch).
  • Document Text: Use an expression or static text to analyze.
  • Entities (Optional): Provide a comma-separated list of entities to focus on.
  • Simplify Output: Keeps the response clean with only the core sentiment data.

Example Response

When Simplify Output is enabled, you will receive a structured response like this:

{
  "label": "positive",
  "probability": 0.98,
  "details": [
    {
      "sentence": "I absolutely love the new interface!",
      "sentiment": "positive",
      "score": 0.99
    }
  ]
}

Batch Processing

The node automatically handles batching. If you pass a list of items to the node, it will consolidate them into a single efficient API call and return the results mapped correctly to each input item.

Resources