Analyze Comment

google_perspective.analyze_comment
ActionAI & modelsconnection required

Calls the Perspective API POST /comments:analyze.

Score text for toxicity and related attributes with the Perspective API.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Perspective API
Secret shape
{"client_id", "client_secret", "refresh_token"}
Resolved by
config.connection_id, else node.connection_id

Configuration

2 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
text
Text to analyse. Supports {{ }}.
stringYes———
attributes
Attributes (comma-separated), e.g. TOXICITY,INSULT.
stringNoTOXICITY——

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "attributes": "TOXICITY"
}

Output

One shape.

result

FieldTypeExample
toxicity
number—
scores
object—
{
  "scores": {},
  "toxicity": 0
}

See Analyze Comment run in a workflow.

In a technical demo we add the Perspective API connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.