Sentiment Analysis
ai.sentiment_analysis · version 1.1 · AI
Routes items by the sentiment of a text.
Ports
| Port | Kind | Label | Required | Max connections |
|---|---|---|---|---|
| input 0 | main | |||
| input 1 | ai_languageModel | yes | 1 |
The number of ports depends on the parameters; the table shows the default set.
Credentials
This node uses no credentials.
Parameters
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
inputText | string | yes | Text to Analyze. | ||
options | collection | ||||
options.categories | string | "Positive, Neutral, Negative" | Sentiment Categories. Comma-separated; each gets its own output. | ||
options.includeDetailedResults | boolean | false | Include Strength and Confidence. | ||
options.systemPromptTemplate | string | "Determine the sentiment the author expresses in the user's text." | System Prompt. | ||
options.enableAutoFixing | boolean | true | Retry 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 type | Version range | Status | Fixtures |
|---|---|---|---|
@n8n/n8n-nodes-langchain.sentimentAnalysis | 1 | unverified |