Hamza4100 commited on
Commit
0498358
Β·
verified Β·
1 Parent(s): 2de69fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +42 -26
app.py CHANGED
@@ -688,39 +688,55 @@ RESPONSE INSTRUCTIONS:
688
  - AND it's about an INDIVIDUAL customer (mentions specific usage numbers for one person)
689
 
690
  πŸ“Œ **For all other questions** (insights, trends, analysis, comparisons):
691
- - Provide 3 concise, actionable insights
692
- - Focus on business opportunities, patterns, and strategies
 
 
693
  - DO NOT format as package recommendations
694
  - Keep it brief and data-driven
695
 
 
 
 
 
 
 
 
 
 
 
 
 
 
696
  ---
697
 
698
  IF PACKAGE RECOMMENDATION (Individual Customer Only):
699
 
700
- **1. USAGE PROFILE**
701
- - Intelligently identify usage patterns from time distribution percentages
702
- - Mention ALL significant time periods (>25% is significant)
703
- - Recognize patterns: bimodal (2 peaks), uniform (balanced), concentrated (1 dominant)
704
- - Consider work patterns: morning+night = commuter, night-heavy = night owl, etc.
705
-
706
- **2. RECOMMENDED PACKAGE**
707
- - Size to cover 120-150% of actual usage for growth headroom
708
- - EXCLUDE services with 0 usage (if data=0 MB, don't include data)
709
- - Name should reflect the dominant pattern intelligently
710
- - Realistic pricing in PKR (Pakistani Rupees): PKR 500-2500/month typical range
711
- * Basic packages: PKR 500-900/month
712
- * Mid-tier packages: PKR 900-1600/month
713
- * Premium packages: PKR 1600-2500/month
714
-
715
- **3. KEY BENEFITS**
716
- - Focus on: cost savings, usage coverage, flexibility, value match
717
- - Quantify benefits where possible ("save 20%", "covers 150% of usage")
718
-
719
- **4. PRICING STRATEGY**
720
- - Specific discounts with business justification (in PKR)
721
- - Upsell opportunities for underutilized services
722
- - Quantify expected impact (ARPU increase, churn reduction)
723
- - Consider Pakistani market competition and customer affordability
 
724
  """
725
 
726
  try:
 
688
  - AND it's about an INDIVIDUAL customer (mentions specific usage numbers for one person)
689
 
690
  πŸ“Œ **For all other questions** (insights, trends, analysis, comparisons):
691
+ - Provide 3 concise, actionable insights with clear formatting
692
+ - Use markdown: **bold** for emphasis, bullet points (β€’) for lists
693
+ - Include specific numbers and percentages
694
+ - Add visual separators between insights
695
  - DO NOT format as package recommendations
696
  - Keep it brief and data-driven
697
 
698
+ FORMAT FOR INSIGHTS (use this structure):
699
+ ### 🎯 Insight 1: [Title]
700
+ **Key Finding:** [Main point with numbers]
701
+ **Action:** [What to do]
702
+
703
+ ### πŸ“Š Insight 2: [Title]
704
+ **Key Finding:** [Main point with numbers]
705
+ **Action:** [What to do]
706
+
707
+ ### πŸ’‘ Insight 3: [Title]
708
+ **Key Finding:** [Main point with numbers]
709
+ **Action:** [What to do]
710
+
711
  ---
712
 
713
  IF PACKAGE RECOMMENDATION (Individual Customer Only):
714
 
715
+ FORMAT:
716
+ ### πŸ“‹ USAGE PROFILE
717
+ **Pattern:** [Describe time distribution pattern - bimodal/uniform/concentrated]
718
+ **Behavior:** [Commuter/Night owl/etc based on morning+night/night-heavy patterns]
719
+ β€’ Mention ALL significant time periods (>25% is significant)
720
+ β€’ Recognize patterns clearly
721
+
722
+ ### 🎁 RECOMMENDED PACKAGE
723
+ **Package Name:** [Intelligent name reflecting usage pattern]
724
+ **Details:** [Specific allocations covering 120-150% of actual usage]
725
+ **Price:** PKR [amount]/month
726
+ β€’ EXCLUDE services with 0 usage (if data=0 MB, don't include data)
727
+ β€’ Realistic PKR pricing: Basic (500-900), Mid (900-1600), Premium (1600-2500)
728
+
729
+ ### ✨ KEY BENEFITS
730
+ β€’ **Benefit 1:** [Quantified if possible - "save 20%", "covers 150% of usage"]
731
+ β€’ **Benefit 2:** [Cost savings, usage coverage, flexibility]
732
+ β€’ **Benefit 3:** [Value match for their usage pattern]
733
+ β€’ **Benefit 4:** [Additional value proposition]
734
+
735
+ ### πŸ’° PRICING STRATEGY
736
+ **Discount Offer:** PKR [amount] discount/benefit
737
+ **Business Logic:** [Why this discount - ARPU increase/churn reduction]
738
+ **Upsell Opportunity:** [Services they could use more]
739
+ **Expected Impact:** [Quantified business results]
740
  """
741
 
742
  try: