Architecture overview
Deploying this solution builds the following environment in the AWS Cloud.

Figure 1: Predictive Segmentation Using Amazon Pinpoint and Amazon SageMaker architecture on AWS
The AWS CloudFormation template deploys a daily batch process orchestrated by AWS Step Functions
-
An Amazon CloudWatch
time-based event triggers a series of AWS Lambda functions. -
An Amazon Athena
query to query customer data stored in Amazon Simple Storage Service (Amazon S3).
The customer data includes endpoints exported from Amazon Pinpoint and end-user engagement data streamed from Amazon Pinpoint and end-user engagement data streamed from Amazon Pinpoint using the Digital User Engagement Events Database solution. Amazon SageMaker performs batch transform requests to predict customer churn based on a trained machine learning (ML) model.
By default, this solution is configured to process data from the example dataset. To modify the solution by using your own dataset, refer to Using your own dataset.