langchain_sentimentAnalysis.json•2.46 kB
{
"nodeType": "@n8n/n8n-nodes-langchain.sentimentAnalysis",
"displayName": "Sentiment Analysis",
"description": "Analyze the sentiment of your text",
"version": 1,
"properties": [
{
"name": "inputText",
"displayName": "Text to Analyze",
"type": "string",
"default": "",
"description": "Use an expression to reference data in previous nodes or enter static text",
"required": true,
"typeOptions": {
"rows": 2
}
},
{
"name": "detailedResultsNotice",
"displayName": "Sentiment scores are LLM-generated estimates, not statistically rigorous measurements. They may be inconsistent across runs and should be used as rough indicators only.",
"type": "notice",
"default": "",
"displayOptions": {
"show": {
"/options.includeDetailedResults": [
true
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "A comma-separated list of categories to analyze",
"placeholder": "Add Option",
"options": [
{
"name": "categories",
"displayName": "Sentiment Categories",
"type": "string",
"description": "A comma-separated list of categories to analyze"
},
{
"name": "systemPromptTemplate",
"displayName": "System Prompt Template",
"type": "string",
"description": "String to use directly as the system prompt template"
},
{
"name": "includeDetailedResults",
"displayName": "Include Detailed Results",
"type": "boolean",
"default": false,
"description": "Whether to include sentiment strength and confidence scores in the output"
},
{
"name": "enableAutoFixing",
"displayName": "Enable Auto-Fixing",
"type": "boolean",
"default": true,
"description": "Whether to enable auto-fixing (may trigger an additional LLM call if output is broken)"
}
],
"typeOptions": {
"rows": 2
}
}
],
"credentialsConfig": [],
"io": {
"inputs": [],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": []
}
}