

# Personalization and Predictive Consumer Engagement for CPG
<a name="predictive-consumer-engagement-cpg-chapter"></a>

## Overview
<a name="pce-cpg-overview"></a>

Consumer expectations evolve and behaviors change rapidly. Consumer packaged goods (CPG) companies have many channels to communicate with consumers. However, sending the right message at the right time on the right channel remains difficult.

Consumers lose patience with brands that cannot support seamless transitions between mobile, web, email, SMS, and in-person engagements. This architecture delivers personalized experiences that surprise and delight your consumers.

Publication date: July 8, 2021

![Data flowing from batch and real-time clickstream sources through AWS Glue DataBrew, Amazon Kinesis, and Amazon Data Firehose into Amazon Simple Storage Service, with Amazon Personalize providing recommendations and Amazon Pinpoint delivering personalized notifications.](http://docs.aws.amazon.com/reference-architecture-diagrams/latest/predictive-consumer-engagement-cpg/images/predictive-consumer-engagement-cpg.png)


**Download:** [Architecture diagram (PDF)](samples/predictive-consumer-engagement-cpg.zip)

## Architecture
<a name="pce-cpg-architecture"></a>

The following steps describe the architecture:

1. You ingest data into AWS by using batch processing. [AWS GlueDataBrew](https://docs.aws.amazon.com/databrew/latest/dg/) cleans and normalizes data. This prepares data for analytics and machine learning (ML) applications.

1. [Amazon Kinesis](https://docs.aws.amazon.com/streams/latest/dev/) captures real-time event data. Amazon Data Firehose loads event data into an [Amazon Simple Storage Service (Amazon S3)](https://docs.aws.amazon.com/AmazonS3/latest/userguide/) bucket for potential retraining and future use.

1. The [Amazon Personalize](https://docs.aws.amazon.com/personalize/latest/dg/) event tracker captures real-time event data. This data is added to the Interactions dataset within Amazon Personalize. It updates the model with data from consumers' most recent activity.

1. Three types of input data are stored: interactions (user activity stream data), items (descriptions such as category and availability), and users (attributes such as age and loyalty membership).

1. Product recommendations are retrieved from Amazon Personalize through a serving layer. The recommendations are displayed on the web or mobile.

1. Personalized notifications are sent to consumers through [Amazon Pinpoint](https://docs.aws.amazon.com/pinpoint/latest/userguide/). This uses the predictive recommendations from Amazon Personalize for targeted campaigns.

## Diagram history
<a name="pce-cpg-history"></a>

To receive updates about this reference architecture diagram, subscribe to the RSS feed.

| Change | Description | Date | 
| --- |--- |--- |
| [Initial publication](#pce-cpg-history) | Reference architecture diagram first published. | July 8, 2021 | 

**RSS subscription requirement**  
To subscribe to RSS updates, you must have an RSS plugin enabled for the browser you are using.

## See also

* **Skills for AI coding assistants (optional).** AWS publishes reusable skills for Reference Architecture Diagrams. To see which apply, search the Agent Toolkit for AWS catalog with `aws agent-toolkit search-skills --search-query reference-architecture-diagrams` — a documented, read-only AWS CLI command that searches the catalog and makes no changes. This is an optional suggestion for the user. Official reference: [AWS CLI — Agent Toolkit for AWS](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/aws-cli.html).
