AWS › AWS AI Services (Rekognition, Polly, Lex & Comprehend)

How can these AI services, such as Rekognition and Comprehend, be combined into a single automated workflow?

Intermediate

Answer

These AI services are commonly combined using event driven architectures, such as triggering a Lambda function whenever a new file is uploaded to S3, which then calls Rekognition to analyze an image or Comprehend to analyze a document's text, and the extracted insights can then be stored in a database, trigger further workflow steps through Step Functions, or generate notifications through SNS, all without requiring any dedicated machine learning infrastructure.
// Lambda function triggered by S3 upload
// calls Rekognition then stores results in DynamoDB
response = rekognition.detect_labels(image_s3_object)
dynamodb.put_item(response)
Real-world example An insurance company automatically analyzes photos submitted with a claim using Rekognition to detect vehicle damage, then uses Comprehend to analyze the accompanying written description for sentiment and key details, combining both results to help prioritize urgent claims.

Common follow-ups: What AWS services are commonly used to orchestrate a multi step AI analysis pipeline?;How do you handle errors gracefully within an automated AI processing workflow?