AWS Builder Center
From Recommendations to AI Marketing

From Recommendations to AI Marketing

How I combined Amazon Personalize and Bedrock to turn movie recommendations into tailored emails.

Cloud Engineer | AWS | Generative AI & Agentic AI

From Recommendations to AI Marketing

Introduction

I recently completed the AWS SimuLearn: Generative AI for Personalized Marketing hands-on lab on AWS Skill Builder.
This lab introduced me to an interesting use case: combining a machine learning recommendation system with generative AI to create personalized marketing content.
In my previous AWS labs, I explored prompt engineering, serverless applications, AI agents, and Retrieval-Augmented Generation (RAG).
This time, I learned how Amazon Personalize and Amazon Bedrock can work together to generate marketing emails based on individual customer preferences.
Here are my key takeaways from this hands-on experience.

1. Understanding the Business Scenario

The goal of this lab was to help a streaming platform create personalized marketing emails for its customers.
Instead of sending the same promotional content to everyone, the company wanted to recommend three movies based on each customer's preferences.
For example, two customers might have completely different interests:
  • Customer A enjoys science fiction and action movies.
  • Customer B prefers romance and comedy movies.
Sending identical movie recommendations to both customers would not provide a personalized experience.
The proposed solution combines:
  • Amazon Personalize to identify relevant movie recommendations.
  • Amazon Bedrock to generate engaging marketing emails based on those recommendations.
This demonstrates how traditional recommendation systems and generative AI can complement each other.

2. Exploring the Solution Architecture

The architecture follows a relatively simple but powerful workflow:
Amazon S3 → Amazon Personalize → Prompt Engineering → Amazon Bedrock → Personalized Marketing Email
Each component has a specific responsibility.
Component
Responsibility
Amazon S3
Stores movie metadata and user interaction data
Amazon Personalize
Generates personalized movie recommendations
Prompt Engineering
Structures recommendations into instructions for the LLM
Amazon Bedrock
Generates personalized marketing content
Marketing Email
Presents recommended movies to customers
What I found interesting is that Amazon Personalize and Amazon Bedrock solve two different problems.
Amazon Personalize determines what to recommend, while Amazon Bedrock determines how to communicate those recommendations.

3. Preparing Data with Amazon S3

The first part of the lab involved preparing datasets for Amazon Personalize.
I worked with two CSV files:
  •  interactions.csv  — Contains information about user interactions with movies.
  •  items.csv  — Contains movie information and metadata.
Using Python and Boto3, I checked whether these files already existed in an Amazon S3 bucket.
If a file was missing, the code uploaded it automatically.
This helped me practice working with Amazon S3 through the AWS SDK for Python.
More importantly, I learned that recommendation systems depend on relevant, properly structured data.
User interaction history provides behavioral signals, while item metadata provides additional information about the movies being recommended.

4. Building a Recommender with Amazon Personalize

One of the main tasks was creating a recommendation system using Amazon Personalize.
The lab involved:
  1. Creating a dataset group.
  1. Importing item and interaction datasets.
  1. Training a recommendation model.
  1. Deploying the recommender to generate personalized recommendations.
Amazon Personalize uses machine learning to identify patterns in user interactions and recommend relevant items.
For example, if a customer frequently interacts with science fiction movies, the recommendation system may suggest other movies with similar patterns of user engagement.
The important lesson is that recommendations are generated from data-driven patterns rather than manually selected movie lists.

5. Generating Marketing Emails with Amazon Bedrock

After obtaining personalized movie recommendations, the next step was using Amazon Bedrock to transform them into marketing content.
This is where prompt engineering becomes important.
Instead of asking an LLM to recommend random movies, we can provide the recommendations generated by Amazon Personalize as input.
For example, an illustrative prompt might look like this:
Write a friendly marketing email recommending these three movies to a streaming customer. Explain why each movie might be interesting, and include a short call to action.
The recommended movie titles would be inserted into the prompt.
Amazon Bedrock then uses a foundation model to generate the email content.
This separation of responsibilities is particularly useful:
Amazon Personalize provides the recommendations, while Amazon Bedrock generates the natural-language message.
It also reinforced something I learned in previous labs: well-structured prompts help transform AI capabilities into practical application features.

6. Key Lessons Learned

This lab helped me understand several important concepts.
1. Recommendation systems and generative AI are different technologies.
Recommendation systems predict which items may interest a user, while generative AI creates content based on instructions and context.
2. Data preparation is essential.
User interactions and item metadata provide the foundation for meaningful personalization.
3. Amazon Personalize simplifies recommendation development.
It provides managed machine learning capabilities for building personalized recommendation experiences.
4. Amazon Bedrock adds natural-language generation.
A list of recommendations can be transformed into a readable, engaging marketing message through prompt engineering.
5. Personalization requires responsible data handling.
For real-world applications, customer consent, privacy, data quality, and appropriate access controls are important considerations.
I also learned that generating personalized content does not automatically guarantee better marketing performance. Businesses would still need to evaluate recommendation relevance, email engagement, and customer feedback.

7. Final Thoughts

This lab demonstrated how AWS services can combine traditional machine learning with generative AI to create practical business solutions.
My biggest takeaway is:
Amazon Personalize decides what content is relevant to a customer, while Amazon Bedrock helps communicate that content in a personalized and engaging way.
This architecture can extend beyond movie recommendations to other use cases, such as:
  • Personalized e-commerce product recommendations.
  • Tailored promotional messages.
  • Content discovery platforms.
  • Customer engagement applications.
For future exploration, I would like to experiment with recommendation quality evaluation, different prompt templates, and measuring the effectiveness of AI-generated marketing content.
This was another valuable hands-on experience in my AWS learning journey!
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article