Detect sentiment from customer reviews with Amazon Comprehend and MongoDB Atlas
Integrate Amazon Comprehend with MongoDB Atlas to detect customers reviews sentiment
- Create a MongoDB cluster
- Create a database trigger associated to a collection
- Create an event bus in AWS, linked to the partner event source.
- Create a Lambda function that calls Amazon Comprehend API and the associated role with permissions.
- Create an EventBridge rule and associate it to the Lambda function.
- Verify the process
- An Atlas cluster running MongoDB
- An AWS account
- The AWS SAM CLI installed and configured on your machine.
- Create a MongoDB Atlas account.
- Deploy a free tier cluster using these instructions, selecting your preferred cloud provider and Region.
- Add your trusted connection IP address to the IP access list. This allows to connect to the cluster and access the data.
- Create a database and a collection. in MongoDB Atlas.
- Create a database trigger associated with the collection you just created. You can follow this instructions.
Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.