Resources · n8n integration

AWS Comprehend n8n integrationAutomate AWS Comprehend with n8n.

Reading every message that lands in your tools stops scaling around the second hundred. The AWS Comprehend n8n integration hands that reading to Amazon's text models: 3 operations on a single Text resource, no trigger node, so whatever step runs before it decides what gets analyzed. For teams sitting on unread text.

Verified Trustpilot reviews · AI, automation & growth agency

Why automate

What does the AWS Comprehend n8n integration actually do?

The AWS Comprehend n8n integration lets a workflow send a piece of text to AWS Comprehend and get a structured answer back, item after item. The node ships with n8n, so there is nothing to install and nothing extra to pay on the n8n side, on n8n Cloud or on a self-hosted instance. It exposes one resource, Text, with 3 operations: identify the dominant language, inspect the text for named entities, analyze its sentiment.

Take a support inbox. A Gmail step pulls the new messages, Detect Sentiment scores each one, and an IF node pushes anything negative into a Slack channel where somebody picks it up the same morning. The rest keeps flowing into the normal queue. Nobody reads the same thread twice.

Second case: forms that arrive in several languages. Detect Dominant Language runs first, its answer fills the Language Code of the next call through an expression (n8n's way of reading a field from the previous step, written {{ $json.field }}), and the routing that follows stops assuming everything is English.

Third: long text you want as columns. Detect Entities returns the named entities it found in a contract, a call note or a product review, and a Postgres insert turns them into rows you can query later. The catalogue lists one shared template built along those lines, workflow 965, which analyzes feedback and posts the result to a Mattermost channel.

The node covers 3 operations on that Text resource. For anything else in the Comprehend API, the HTTP Request node calls the endpoint directly and reuses the same AWS credential (the login you store once in n8n) through predefined authentication. That is the normal route on this node, not a hack.

One thing to plan for before you build: this integration has no trigger node. A workflow around it starts with a Schedule Trigger on a fixed interval, with an n8n Webhook, a URL another service calls when something happens on its side, or with the trigger of another tool entirely. If you are still weighing platforms before committing, the n8n review covers that ground.

Connect

How do you connect AWS Comprehend to n8n?

  1. 01

    Create the AWS access key

    Log in to the IAM console, open your user name in the upper right navigation bar and select Security credentials. In the Access keys section, select Create access key, choose your use case (pick Other if AWS does not prompt you), then set a description tag such as n8n integration so you can recognize the key months later. Reveal the Access Key ID and the Secret Access Key on the confirmation screen, because the secret is shown there.

  2. 02

    Store it as an AWS (IAM) credential

    In n8n, open the Credentials menu and create an AWS (IAM) credential, the type that authenticates with an access key. Select your AWS Region first, then paste the Access Key ID and the Secret Access Key. You create this once: every workflow that touches Comprehend afterwards just picks the credential from the node's dropdown, and no key is ever typed inside a node.

  3. 03

    Or assume a role instead of storing keys

    n8n offers a second type, AWS (Assume Role), which authenticates by assuming an IAM role through AWS STS. The credentials used for the AssumeRole call are entered manually, or read automatically from the environment n8n runs in. That second path is the one to take if you self-host n8n on AWS infrastructure (EKS, ECS or EC2) and want to avoid keeping static keys inside n8n at all.

Actions

What can the AWS Comprehend node do?

The AWS Comprehend node exposes 3 operations across 1 resources. For each one: the node as you configure it in n8n, the required fields, and our field notes.

Resources × operations matrix
ResourceDetect Dominant LanguageDetect EntitiesDetect Sentiment
Text✓✓✓

Text

3 operations
01

Identify the dominant language

text.detectDominantLanguage

What you see in n8n

Notes & use cases

Comprehend reads the text and returns the language it recognizes in it. Useful as a first pass, before anything that needs to know which language it is dealing with.

Key parameters

  • Text: the text to send, usually an expression pointing at the field that carries it, like {{ $json.text }}.
  • Simplify: on, n8n returns a simplified version of the response instead of the raw AWS data; switch it off when you want the full payload.
Use cases
put it in front of a multilingual contact form, then feed its result into the Language Code of the next operation instead of hardcoding one language for everyone.
02

Inspect text for named entities, and returns information about them

text.detectEntities

What you see in n8n

Notes & use cases

This is the one to reach for when you need the names inside a message rather than its tone. Comprehend inspects the text for named entities and returns information about each one it finds.

Key parameters

  • Language Code: the language code for the text, chosen from the list (en, fr, es and the others).
  • Text: the text to send, often the body of the document you just fetched.
  • Endpoint Arn, under Additional Fields: the Amazon Resource Name of an endpoint associated with a custom entity recognition model, when the entities you care about are your own.
Use cases
run it over incoming contracts and write what it returns into a MongoDB collection, so the text becomes searchable without retyping.
03

Analyze the sentiment of the text

text.detectSentiment

What you see in n8n

Notes & use cases

Sentiment analysis turns a free-text review into something a workflow can branch on, without a human opening it first.

Key parameters

  • Language Code: the language code for the text; set it explicitly, or wire it from a Detect Dominant Language step placed earlier.
  • Text: the text to send, one item per execution of the node, so a batch of reviews goes through as a batch of items.
Use cases
score every new review as it arrives, escalate the negative ones to a channel the same day, and let the neutral and positive ones pile up in a weekly digest nobody has to triage by hand.
Need help

Need help automating AWS Comprehend with n8n?

A person reads every message.

FAQ

AWS Comprehend and n8n: common questions

01Is the AWS Comprehend n8n integration free?
On the n8n side, yes. The AWS Comprehend node ships with n8n, so there is nothing to install and no extra n8n cost to unlock it. It behaves the same on n8n Cloud, the hosted offer run by n8n, and on an instance you host yourself with Docker or npm under the Community Edition and its Sustainable Use license: the same workflow, the same node, the same 3 operations. What the AWS side of the equation costs is a separate question this page does not cover, so check that in your AWS account before you send production volume through it.
02Which AWS credentials does the n8n node need?
One of two types. AWS (IAM) authenticates with an access key: you provide your AWS Region, the Access Key ID and the Secret Access Key generated in the IAM console. If you work with temporary security credentials, turn that option on and add the Session token. The second type is AWS (Assume Role), which authenticates by assuming an IAM role through AWS STS; the credentials n8n uses for the AssumeRole call are either entered manually or read automatically from the environment n8n runs in. That second one is what to use when you self-host n8n on EKS, ECS or EC2 and would rather not store static keys.
03What are the limits of the AWS Comprehend node in n8n?
The node exposes one resource, Text, and 3 operations on it: detect the dominant language, detect entities, detect sentiment. Anything in the Comprehend API that falls outside those 3 goes through the HTTP Request node, which calls any endpoint of the API while reusing the same AWS credential through predefined authentication, so you are not re-entering keys. Worth knowing as well: on these operations no field is marked as required, so n8n will not stop an execution because Text is empty. Check the mapping yourself on the first run rather than trusting a silent pass.
04Can AWS Comprehend trigger an n8n workflow in real time?
Not from Comprehend itself: this integration has no trigger node in n8n, so nothing on the AWS side starts a workflow for you. The workflow starts somewhere else and Comprehend sits in the middle. Three usual starting points: a Schedule Trigger that runs on a fixed interval and processes whatever arrived since the last run, an n8n Webhook, meaning a URL you hand to another service so it calls your workflow when something happens, or the trigger of another tool in your set, for instance the mailbox or the database where the text lands first.
05n8n or Make for AWS Comprehend?
It depends on where your data has to live and how you want to pay. Make is a hosted automation platform with no self-hosting option, billed per operation, which suits teams that want zero infrastructure and predictable clicks. n8n runs on n8n Cloud or on your own server with Docker or npm, which is the deciding factor when text going to Comprehend touches customer data you keep in-house. Look at four things: hosting, control over the data, the cost model, and how the visual logic fits the way your team already builds. The training and review pages go deeper if you want the long version.