awsComprehend.json•4.6 kB
{
"nodeType": "n8n-nodes-base.awsComprehend",
"displayName": "AWS Comprehend",
"description": "Sends data to Amazon Comprehend",
"version": 1,
"properties": [
{
"name": "resource",
"displayName": "Resource",
"type": "options",
"default": "text",
"description": "The resource to perform",
"options": [
{
"name": "Text",
"value": "text"
}
]
},
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "detectDominantLanguage",
"description": "Identify the dominant language",
"options": [
{
"name": "Detect Dominant Language",
"value": "detectDominantLanguage",
"description": "Identify the dominant language"
},
{
"name": "Detect Entities",
"value": "detectEntities",
"description": "Inspects text for named entities, and returns information about them"
},
{
"name": "Detect Sentiment",
"value": "detectSentiment",
"description": "Analyse the sentiment of the text"
}
]
},
{
"name": "languageCode",
"displayName": "Language Code",
"type": "options",
"default": "en",
"description": "The language code for text",
"options": [
{
"name": "Arabic",
"value": "ar"
},
{
"name": "Chinese",
"value": "zh"
},
{
"name": "Chinese (T)",
"value": "zh-TW"
},
{
"name": "English",
"value": "en"
},
{
"name": "French",
"value": "fr"
},
{
"name": "German",
"value": "de"
},
{
"name": "Hindi",
"value": "hi"
},
{
"name": "Italian",
"value": "it"
},
{
"name": "Japanese",
"value": "ja"
},
{
"name": "Korean",
"value": "ko"
},
{
"name": "Portuguese",
"value": "pt"
},
{
"name": "Spanish",
"value": "es"
}
],
"displayOptions": {
"show": {
"resource": [
"text"
],
"operation": [
"detectSentiment",
"detectEntities"
]
}
}
},
{
"name": "text",
"displayName": "Text",
"type": "string",
"default": "",
"description": "The text to send",
"displayOptions": {
"show": {
"resource": [
"text"
]
}
}
},
{
"name": "simple",
"displayName": "Simplify",
"type": "boolean",
"default": true,
"description": "Whether to return a simplified version of the response instead of the raw data",
"displayOptions": {
"show": {
"resource": [
"text"
],
"operation": [
"detectDominantLanguage"
]
}
}
},
{
"name": "additionalFields",
"displayName": "Additional Fields",
"type": "collection",
"default": {},
"description": "The Amazon Resource Name of an endpoint that is associated with a custom entity recognition model",
"placeholder": "Add Field",
"options": [
{
"name": "endpointArn",
"displayName": "Endpoint Arn",
"type": "string",
"default": "",
"description": "The Amazon Resource Name of an endpoint that is associated with a custom entity recognition model"
}
],
"displayOptions": {
"show": {
"resource": [
"text"
],
"operation": [
"detectEntities"
]
}
}
}
],
"credentialsConfig": [
{
"name": "aws",
"required": true
},
{
"name": "resource",
"required": false
},
{
"name": "operation",
"required": false
},
{
"name": "languageCode",
"required": false
},
{
"name": "text",
"required": false
}
],
"io": {
"inputs": [
"Main"
],
"outputs": [
"Main"
],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [
"Main"
],
"produces": [
"Main"
]
}
}