Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Sentiment Analysis

ai.sentiment_analysis · version 1.1 · AI

Routes items by the sentiment of a text.

Ports

PortKindLabelRequiredMax connections
input 0main
input 1ai_languageModelyes1

The number of ports depends on the parameters; the table shows the default set.

Credentials

This node uses no credentials.

Parameters

NameTypeDefaultRequiredShown whenDescription
inputTextstringyesText to Analyze.
optionscollection
options.categoriesstring"Positive, Neutral, Negative"Sentiment Categories. Comma-separated; each gets its own output.
options.includeDetailedResultsbooleanfalseInclude Strength and Confidence.
options.systemPromptTemplatestring"Determine the sentiment the author expresses in the user's text."System Prompt.
options.enableAutoFixingbooleantrueRetry Invalid Answers.

Import

Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.

Source typeVersion rangeStatusFixtures
@n8n/n8n-nodes-langchain.sentimentAnalysis1unverified