Analyze Sentiment
google_language.analyze_sentiment
ActionGoogle Cloudconnection required
Calls the Language API POST /v1/documents:analyzeSentiment.
Score the sentiment of text with Google Cloud Natural Language.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Google Natural Language
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Resolved by
- config.connection_id, else node.connection_id
Configuration
1 field, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
text Text to analyse. Supports {{ }}. | string | Yes | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
score | number | — |
magnitude | number | — |
{
"magnitude": 0,
"score": 0
}Related Google Natural Language nodes
See Analyze Sentiment run in a workflow.
In a technical demo we add the Google Natural Language connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.