Your Retail AI Toolkit
Reusable Prompts for Daily Retail Operations
From Learning to Doing
You have spent five chapters understanding what AI can do for retail — demand forecasting, dynamic pricing, customer segmentation, and review analysis. Now it is time to build your personal AI toolkit: a collection of reusable prompts and workflows that you can use every day, like a set of well-organized SOP (Standard Operating Procedure) templates.
Think of this toolkit as your retail AI playbook. Just as a restaurant has recipes that any cook can follow to produce consistent results, your prompt library ensures that anyone on your team can get reliable AI output — without needing to figure out the right question every time.
The Prompt Library Concept
A prompt library is a saved collection of AI instructions that you have tested, refined, and organized by function. Each prompt is like a template: you fill in the variables (your data, your context) and get consistent, useful output.
Why a Library Matters
Open data/prompt-library-retail.json in the code panel. This file contains 20 ready-to-use prompts organized by retail function — forecasting, pricing, segmentation, reviews, customer service, and inventory. Each prompt includes the template, variables to fill in, and expected output format.
Your Core Prompt Library
Prompt 1: Daily Demand Forecast
Role: You are a demand forecasting analyst for an Indian
retail business.
Context:
- Store type: [grocery / fashion / electronics / general]
- Location: [city, state]
- Date range of data: [start] to [end]
Data:
[Paste last 30-90 days of daily sales: date, product,
quantity, price]
Task:
1. Forecast demand for the next 7 days for each product
2. Flag any upcoming festivals or events that may affect
demand
3. Highlight products where you recommend ordering more
than usual (and why)
4. Highlight products where you recommend ordering less
(and why)
5. Give confidence level (high/medium/low) for each forecast
Format: Table with columns: Product, Forecast Qty,
Confidence, Reason, ActionPrompt 2: Competitive Price Check
Role: You are a pricing analyst for Indian retail.
Here are my products with cost price, current selling price,
and MRP:
[Paste: product_name, cost_price, selling_price, MRP]
Here are competitor prices I collected today:
[Paste: product_name, competitor_name, competitor_price,
in_stock]
Rules:
- Never price above MRP
- Maintain minimum 12% margin
- Match competitor only if they have stock and the price
difference exceeds 5%
- Flag products where competitors are likely selling below
cost (loss leaders)
Output: Table with columns: Product, Current Price,
Recommended Price, Change, New Margin%, ReasoningPrompt 3: Customer Segment Analysis
Role: You are a customer analytics expert for Indian
e-commerce.
Here is my customer transaction data for the last 6 months:
[Paste: customer_id, purchase_date, order_value, items,
payment_method, city]
Tasks:
1. Calculate RFM scores (1-5) for each customer
2. Assign segments: Champions, Loyal, Potential Loyalists,
At Risk, Lost
3. Show segment size (count and % of total)
4. For each segment, recommend:
a. Best communication channel (WhatsApp/email/SMS/push)
b. One specific campaign message
c. Discount level (if any)
5. List the top 10 customers most likely to churn in the
next 30 days
Format the segments as a summary table, then detail each.Prompt 4: Review Summary and Action Items
Role: You are a product quality analyst for an Indian
e-commerce brand.
Here are [number] customer reviews for [product name]:
[Paste reviews with star ratings]
Analysis required:
1. Overall sentiment breakdown (positive/negative/mixed %)
2. Top 5 complaints with frequency count
3. Top 5 praises with frequency count
4. Aspect-level scores (-1 to +1): quality, delivery,
packaging, price, service
5. Any mentions of safety issues or defects (flag as URGENT)
6. Three specific, actionable improvements ranked by
potential impact
Also generate a draft reply template for the top 3 complaint
types that acknowledges the issue and explains what we are
doing about it.Prompt 5: Customer Service Chatbot Responses
Role: You are a customer service agent for [brand name],
an Indian [category] retailer. You are polite, helpful,
and solution-oriented.
Guidelines:
- Always greet in a friendly tone
- Use simple English or Hinglish as appropriate
- For order status queries: ask for order ID, then provide
tracking info
- For return requests: confirm the return window (7 days
from delivery), explain the process
- For complaints: acknowledge, apologize, and offer a
specific resolution
- Never argue with the customer
- Escalate to a human agent if: the customer is angry after
2 exchanges, the issue involves a refund > Rs 5000, or
the issue is a safety concern
- For COD issues: explain that exact change is preferred,
offer to convert future orders to UPI for Rs 50 off
Scenario:
[Paste customer message]
Respond as the support agent.Open data/chatbot-scenarios.json to see 30 real customer service scenarios with ideal responses — covering order tracking, returns, complaints, product inquiries, and payment issues specific to Indian e-commerce.
Versioning Your Prompts
Prompts are not "set and forget." They need maintenance, just like any business process.
Version Control for Prompts
Prompt: Demand Forecast
Version: 3.2
Last Updated: 15-May-2026
Changes: Added monsoon weather factor, increased forecast
window from 7 to 14 days
Tested By: Priya (store manager, Pune)
Accuracy: 84% (up from 78% in v3.1)When to Update a Prompt
Prompt Testing Protocol
Building a Retail AI Playbook
Your prompt library is the foundation of a broader AI playbook — a living document that defines how your team uses AI across the business.
Playbook Structure
| Section | Contents |
|---|---|
| Daily Operations | Demand forecast prompt, inventory check prompt, pricing review prompt |
| Weekly Analysis | Segment analysis prompt, competitor analysis prompt, review summary prompt |
| Campaign Planning | WhatsApp message generator, email campaign prompt, festival planning prompt |
| Customer Service | Chatbot response templates, escalation criteria, FAQ generator |
| Reporting | Weekly MIS prompt, monthly trend analysis prompt, quarterly review prompt |
Who Uses What
| Role | Primary Prompts |
|---|---|
| Store Manager | Demand forecast, inventory check, daily pricing |
| Marketing Manager | Segment analysis, campaign messages, review insights |
| Customer Service | Chatbot responses, complaint resolution, FAQ |
| Owner/CEO | Weekly trend analysis, competitor intelligence, NPS tracking |
The Chatbot as First Line of Service
For online retailers, an AI chatbot can handle 60-70% of customer queries without human intervention. The remaining 30-40% get escalated to human agents with full context — so the agent does not need to ask "what is your order number?" again.
What Chatbots Handle Well
What Chatbots Should Escalate
Setting Up a Basic Chatbot Flow
You do not need expensive software for a starter chatbot. Use WhatsApp Business API with AI-generated response templates:
Putting It All Together
Your retail AI toolkit is now six tools deep:
The retailers who build this toolkit and refine it over time will have a compounding advantage. Each prompt gets better with use. Each analysis builds on the last. Each customer interaction teaches the system something new.
Start with one prompt this week. Test it. Refine it. Add another next week. In 90 days, you will have a working AI playbook that makes your team faster, your decisions smarter, and your customers happier.
Key Takeaways
This is chapter 6 of AI for Retail & E-Commerce.
Get the full hands-on course — free during early access. Build the complete system. Your projects become your portfolio.
View course details