Detect Sentiment

comprehend.detect_sentiment
ActionAmazon Web Servicesconnection required

Calls the Comprehend DetectSentiment action (SigV4).

Classify the sentiment of text with AWS Comprehend.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
AWS Comprehend
Secret shape
{"access_key_id", "secret_access_key"}
Config it needs
region
Resolved by
config.connection_id, else node.connection_id

Configuration

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

FieldTypeRequiredDefaultConstraintsExample
region
AWS region (overrides connection).
stringNo———
text
Text to analyse. Supports {{ }}.
stringYes———
language
Language code (default en).
stringNoen——

Example configuration

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

{
  "language": "en"
}

Output

One shape.

result

FieldTypeExample
sentiment
string—
scores
object—
{
  "scores": {},
  "sentiment": ""
}

Related AWS Comprehend nodes

See Detect Sentiment run in a workflow.

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