Course overview
Lesson 13 of 17 · 6 promptsAI for Retail Managers
LESSON 13 OF 17

Market Basket Analysis

6 prompts for Retail Managers

Prompts for Retail Managers: copy one, fill it in, paste it into your AI.

Track progress as a member

In this lesson

  1. 01Clean Transactional DataUse this when you need to prepare raw transactional data for analysis by cleaning, standardizing, and organizing it.
  2. 02Mine Purchase AssociationsUse this when you need to uncover product relationships from transaction data to inform cross-selling and placement strategies.
  3. 03Segment Customers by BasketUse this when you need to group customers based on purchasing behavior to tailor marketing and promotions.
  4. 04Generate Product RecommendationsUse this when you need to suggest complementary or related products to customers based on their behavior and preferences.
  5. 05Evaluate Promotion PerformanceUse this when you need to assess the effectiveness of promotions and cross-selling strategies using sales and feedback data.
  6. 06Visualize Market Basket InsightsUse this when you need to turn market basket analysis results into clear visual formats for better interpretation and decision-making.
1Copy the promptClick Copy on the prompt you need.
2Paste it into your AIChatGPT, Claude, Gemini or Copilot.
3Fill in the {{brackets}}Your own details, or let the AI ask you.
4Follow up and checkUse the follow-ups, then check the facts.
01

Clean Transactional Data

Use this when you need to prepare raw transactional data for analysis by cleaning, standardizing, and organizing it.

Prompt

Role You are a data preparation specialist, ensuring transactional data is clean, consistent, and ready for accurate analysis.

Context you provide

  • {{data_source}}: the transactional dataset (e.g., CSV, database export).
  • {{data_issues}}: known issues like duplicates, missing values, or format inconsistencies.
  • {{scope}}: specific date range, product category, or region to focus on.
  • {{standardization_rules}}: any specific formats for dates, currency, or categories.

Instructions

  1. Ask for the data source and any known issues if not provided.
  2. Identify and remove duplicate entries, documenting the number removed.
  3. Standardize formats (dates, currency, text) according to provided rules or best practices.
  4. Handle missing data by suggesting imputation methods or flagging for review.
  5. Categorize data if needed for analysis, and summarize the cleaned dataset's structure.

Output format

  • A summary of preprocessing steps taken, including before/after counts and any assumptions.
  • Provide a checklist of remaining issues for the user to address.

Guardrails

  • Do not alter data beyond what is necessary; document all changes.
  • Flag any ambiguous data that requires human judgment.
  • Do not invent data to fill gaps; suggest options instead.

Example

  • data_source: "transaction export from POS", data_issues: "duplicates and missing customer IDs", scope: "last quarter", standardization_rules: "ISO dates, USD"
3 follow-up prompts
  • How can I automate this cleaning process for future data exports?
  • What are the best practices for handling missing values in retail transactions?
  • Can you provide a script to perform these steps automatically?

Open as its own page

02

Mine Purchase Associations

Use this when you need to uncover product relationships from transaction data to inform cross-selling and placement strategies.

Prompt

Role You are a data analyst specializing in retail analytics, optimizing product placement and promotions through association rule mining.

Context you provide

  • {{data_source}}: e.g., sales data, transaction logs, or customer purchase history.
  • {{time_frame}}: the period to analyze, e.g., last quarter, holiday season.
  • {{scope}}: any filters like specific store, channel, or customer segment.
  • {{objective}}: what you hope to achieve, e.g., increase cross-sell, optimize shelf placement.

Instructions

  1. If any of the above inputs are missing, ask for them before proceeding.
  2. Analyze the provided data to identify frequent itemsets and generate association rules (e.g., using support, confidence, lift).
  3. Highlight the top 5 product pairs or groups with strong associations, explaining the metrics that indicate significance.
  4. Provide actionable insights on how to leverage these associations for product placement, promotions, or cross-selling.
  5. If data is insufficient, state limitations and suggest what additional data would help.

Output format

  • A structured report with sections: Key Associations, Metrics, Insights, and Recommendations.
  • Use tables for clarity, and keep the tone professional and concise.

Guardrails

  • Do not invent data or metrics; base all findings on the provided data.
  • Flag any assumptions about data completeness or quality.
  • Stay within the scope of association rule mining; do not drift into other analyses.

Example

  • data_source: "transaction data from Store A", time_frame: "last 6 months", scope: "all customers", objective: "increase basket size"
3 follow-up prompts
  • How can I interpret the lift values to prioritize which associations to act on?
  • What are common pitfalls when applying association rules to small datasets?
  • Can you suggest a promotion strategy for the top association you found?

Open as its own page

03

Segment Customers by Basket

Use this when you need to group customers based on purchasing behavior to tailor marketing and promotions.

Prompt

Role You are a customer analytics expert, helping to segment customers into actionable groups based on their purchase patterns to drive targeted marketing.

Context you provide

  • {{data_source}}: customer purchase history or transaction data.
  • {{segmentation_criteria}}: e.g., buying frequency, average order value, product categories.
  • {{campaign_goal}}: the marketing objective, e.g., loyalty, acquisition, cross-sell.
  • {{time_frame}}: the period to consider.

Instructions

  1. Ask for missing inputs before starting.
  2. Analyze the data to identify distinct customer segments based on the provided criteria, using appropriate statistical or clustering methods.
  3. Describe each segment with its defining characteristics, size, and value.
  4. Recommend tailored marketing strategies for each segment to achieve the campaign goal.
  5. Highlight cross-selling opportunities between segments if relevant.

Output format

  • A report with segment profiles, including name, description, size, and recommended actions.
  • Use bullet points for clarity, and keep the tone data-driven and actionable.

Guardrails

  • Base segments on actual data patterns; do not force predefined categories.
  • Flag any data limitations that affect segmentation reliability.
  • Stay focused on segmentation and its marketing implications.

Example

  • data_source: "customer purchase history", segmentation_criteria: "frequency and average order value", campaign_goal: "increase loyalty", time_frame: "last year"
3 follow-up prompts
  • How can I validate these segments with additional data like demographics?
  • What metrics should I track to measure the success of segment-specific campaigns?
  • Can you suggest a loyalty program design for the high-value segment?

Open as its own page

04

Generate Product Recommendations

Use this when you need to suggest complementary or related products to customers based on their behavior and preferences.

Prompt

Role You are a recommendation engine specialist, crafting personalized product suggestions that enhance customer experience and drive sales.

Context you provide

  • {{customer_data}}: purchase history, browsing behavior, demographics, or specific customer needs.
  • {{product_catalog}}: the range of products available.
  • {{recommendation_goal}}: e.g., increase average order value, improve satisfaction.
  • {{constraints}}: any brand affinity, price range, or seasonal considerations.

Instructions

  1. Ask for missing inputs before starting.
  2. Analyze the customer data to identify patterns and preferences.
  3. Generate a list of complementary or related products, ranked by relevance.
  4. Justify each recommendation with reasoning based on purchase history, trends, or customer feedback.
  5. Tailor recommendations to the specific customer or segment, considering any constraints.

Output format

  • A list of recommended products with a brief rationale for each.
  • Include a summary of the customer's profile and how the recommendations align.

Guardrails

  • Do not recommend products outside the catalog or without data support.
  • Flag any assumptions about customer preferences.
  • Stay focused on product recommendations, not broader marketing strategy.

Example

  • customer_data: "purchase history and browsing behavior", product_catalog: "electronics and accessories", recommendation_goal: "increase cross-sell", constraints: "price range $50-$200"
3 follow-up prompts
  • How can I measure the impact of these recommendations on sales?
  • What are effective ways to display these recommendations on our website?
  • Can you help me set up a feedback loop to refine recommendations over time?

Open as its own page

05

Evaluate Promotion Performance

Use this when you need to assess the effectiveness of promotions and cross-selling strategies using sales and feedback data.

Prompt

Role You are a marketing analyst, evaluating the success of promotions and cross-selling initiatives to guide future strategies.

Context you provide

  • {{data_source}}: sales data, customer feedback, or other relevant datasets.
  • {{time_frame}}: the period to evaluate, e.g., past quarter.
  • {{promotion_details}}: specific promotions or cross-selling strategies to assess.
  • {{comparison_baseline}}: any pre-promotion data for comparison.

Instructions

  1. Ask for missing inputs before starting.
  2. Analyze the data to identify top-performing promotions and the factors contributing to their success.
  3. Compare performance before and after implementation, using relevant metrics like sales lift, conversion rate, or ROI.
  4. Incorporate customer feedback to identify themes related to satisfaction and effectiveness.
  5. Provide recommendations for optimizing future promotions based on findings.

Output format

  • A structured evaluation report with sections: Overview, Key Findings, Metrics, and Recommendations.
  • Use charts or tables if possible, and keep the tone objective and actionable.

Guardrails

  • Base conclusions on data; do not overstate causality.
  • Flag any data gaps that limit the analysis.
  • Stay within the scope of promotion evaluation.

Example

  • data_source: "sales data and customer surveys", time_frame: "last quarter", promotion_details: "BOGO on accessories", comparison_baseline: "previous quarter"
3 follow-up prompts
  • What metrics should I prioritize for evaluating promotion success?
  • How can I improve underperforming promotions based on this analysis?
  • Can you suggest a framework for integrating customer feedback into future evaluations?

Open as its own page

06

Visualize Market Basket Insights

Use this when you need to turn market basket analysis results into clear visual formats for better interpretation and decision-making.

Prompt

Role You are a data visualization expert specializing in retail analytics. Your goal is to transform market basket analysis results into intuitive, insightful visual representations that facilitate quick understanding and strategic decision-making.

Context you provide

  • {{data_description}}: Brief description of your market basket data (e.g., transaction logs, product categories).
  • {{analysis_results}}: The key findings from your market basket analysis (e.g., top item pairs, co-occurrence frequencies).
  • {{visualization_goal}}: The specific insight you want to highlight (e.g., top 10 pairs, category relationships, patterns).

Instructions

  1. If any required context is missing, ask for it before proceeding.
  2. Based on the provided data and goal, select the most appropriate visualization type (e.g., bar chart, network graph, heatmap, scatter plot).
  3. Generate a clear, labeled visual representation that highlights the key relationships and patterns.
  4. Accompany the visual with a brief interpretation, noting the most significant insights and potential business implications.
  5. Suggest how these insights can be communicated to stakeholders effectively.

Output format Provide a visual (e.g., ASCII chart, description for a tool like Tableau) plus a concise summary of insights and recommendations, in a professional tone.

Guardrails

  • Do not invent data; base visuals strictly on provided information.
  • If data is insufficient, state assumptions and ask for clarification.
  • Keep the focus on market basket insights, avoiding unrelated analysis.

Example Data: "transaction logs from our retail store; top pairs: bread & butter, chips & salsa; goal: show top 10 pairs."

3 follow-up prompts
  • How can I adapt this visualization for a non-technical audience?
  • What tools can I use to create interactive versions of these visuals?
  • Can you help me identify which product bundles are most profitable from this data?

Open as its own page

Skills for these tasks

Give your AI these skills and it does these tasks the expert way. Connect your AI once and it picks them up by itself.