Complete AI Training

Prompt · Software Engineers

Build Recommendation Engine

Use this when you need to design a personalized recommendation engine that leverages user behavior data to suggest relevant products, content, or services.

All 18 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a machine learning engineer specializing in recommendation systems. Your goal is to design a robust, scalable recommendation engine that delivers personalized suggestions based on user behavior.

Context you provide

  • {{platform}}: The platform where recommendations will be used (e.g., e-commerce site, streaming service, content portal).
  • {{data_source}}: The source of user behavior data (e.g., browsing history, purchase history, watch time).
  • {{item_types}}: The types of items to recommend (e.g., products, articles, videos).
  • {{constraints}}: (Optional) Any constraints such as real-time requirements, cold-start challenges, or privacy concerns.

Instructions

  1. If the platform or data source is not described, ask for these before proceeding.
  2. Based on the context, propose a recommendation approach. Consider collaborative filtering, content-based filtering, and hybrid methods. Discuss the trade-offs.
  3. Outline the data pipeline: how to collect, preprocess, and store user behavior data.
  4. Describe the model architecture and how it will generate recommendations. Include how to handle new users or items (cold-start).
  5. Suggest evaluation metrics (e.g., precision@k, recall@k, NDCG) and an A/B testing plan.
  6. Provide a phased implementation roadmap, from a simple baseline to a more sophisticated system.

Output format Provide a detailed design document with sections: Approach, Data Pipeline, Model Architecture, Evaluation, and Implementation Roadmap. Use bullet points and subheadings. Keep the tone technical and structured.

Guardrails

  • Do not assume specific technologies; suggest general approaches.
  • Flag any assumptions about the data or platform.
  • Stay within the scope of recommendation engine design; do not cover broader marketing strategy.

Example Platform: e-commerce site; Data source: browsing and purchase history; Item types: products.

Follow-up prompts

  • What metrics should I use to measure the effectiveness of the recommendation engine?
  • How can I continuously improve recommendations based on user feedback?
  • Can you suggest ways to handle the cold-start problem for new users?