googlePerspective.json•2.79 kB
{
"nodeType": "n8n-nodes-base.googlePerspective",
"displayName": "Google Perspective",
"description": "Consume Google Perspective API",
"version": 1,
"properties": [
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "analyzeComment",
"options": [
{
"name": "Analyze Comment",
"value": "analyzeComment"
}
]
},
{
"name": "text",
"displayName": "Text",
"type": "string",
"default": "",
"required": true,
"displayOptions": {
"show": {
"operation": [
"analyzeComment"
]
}
}
},
{
"name": "requestedAttributesUi",
"displayName": "Attributes to Analyze",
"type": "fixedCollection",
"default": {},
"description": "Attribute to analyze in the text. Details <a href=\"https://developers.perspectiveapi.com/s/about-the-api-attributes-and-languages\">here</a>.",
"placeholder": "Add Atrribute",
"required": true,
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"operation": [
"analyzeComment"
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Languages of the text input. If unspecified, the API will auto-detect the comment language. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"placeholder": "Add option",
"options": [
{
"name": "languages",
"displayName": "Language Name or ID",
"type": "options",
"default": "",
"description": "Languages of the text input. If unspecified, the API will auto-detect the comment language. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
}
],
"displayOptions": {
"show": {
"operation": [
"analyzeComment"
]
}
}
}
],
"credentialsConfig": [
{
"name": "googlePerspectiveOAuth2Api",
"required": true
},
{
"name": "operation",
"required": false
},
{
"name": "text",
"required": true
},
{
"name": "scoreThreshold",
"required": false
},
{
"name": "options",
"required": false
}
],
"io": {
"inputs": [],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": []
}
}