Gen-AI Developer Classroom notes 08/Dec/2025

Creating Synthetic data with llms

Customer Summary

  • prompt
You are an expert data generator. I need data in the following json form

{
  "customerId": "CUST_xxxxx string",
  "profile": {
    "name": "Any realistic indian name",
    "email": "email",
    "phone": "indian phone number",
    "memberSince": "a valid date in the past like 2022-03-15",
  },
  "accountStats": {
    "totalOrders": any number like 87,
    "lifetimeValue": total value of orders like 43250.50,
    "averageOrderValue": average order 497.13,
    "favoriteRestaurants": list of indian restaurants,
    "preferredCuisines": list of preferred cusines,
    "savedAddresses": any number
  },
  "recentOrders": [
    {
      "orderId": "ORD_XXXXX",
      "orderDate": "date time stamp",
      "status": "delivered",
      "restaurant": {
        "name": "Biryani Blues",
        "restaurantId": "REST_45892",
        "location": "Banjara Hills, Hyderabad",
        "rating": 4.3,
        "deliveryTime": "28 mins"
      },
      "items": [
        {
          "name": "Hyderabadi Dum Biryani (Chicken)",
          "quantity": 2,
          "price": 320.00,
          "customizations": ["Extra raita", "Less spicy"]
        },
        {
          "name": "Gulab Jamun (4 pcs)",
          "quantity": 1,
          "price": 80.00,
          "customizations": []
        }
      ],
      "pricing": {
        "itemTotal": 720.00,
        "deliveryFee": 0.00,
        "platformFee": 5.00,
        "gst": 36.00,
        "discount": 72.00,
        "totalAmount": 689.00
      },
      "payment": {
        "method": "UPI",
        "transactionId": "TXN_89273645",
        "status": "paid"
      },
      "deliveryAddress": {
        "label": "Home",
        "address": "Flat 402, Green Valley Apartments, Road No 12, Banjara Hills",
        "city": "Hyderabad",
        "pincode": "500034"
      },
      "deliveryPartner": {
        "name": "Rajesh Kumar",
        "rating": 4.8,
        "phone": "+91-9988776655"
      },
      "timeline": {
        "orderPlaced": "2025-12-08T13:45:22+05:30",
        "restaurantAccepted": "2025-12-08T13:47:10+05:30",
        "foodReady": "2025-12-08T14:05:35+05:30",
        "outForDelivery": "2025-12-08T14:08:12+05:30",
        "delivered": "2025-12-08T14:23:40+05:30"
      },
      "ratings": {
        "food": 5,
        "delivery": 5,
        "review": "Biryani was amazing as always! Hot and fresh."
      }
    },
    {
      "orderId": "ORD_2025120502",
      "orderDate": "2025-12-05T20:15:33+05:30",
      "status": "delivered",
      "restaurant": {
        "name": "KFC",
        "restaurantId": "REST_12456",
        "location": "Jubilee Hills, Hyderabad",
        "rating": 4.1,
        "deliveryTime": "32 mins"
      },
      "items": [
        {
          "name": "Wednesday Bucket (8 pcs)",
          "quantity": 1,
          "price": 549.00,
          "customizations": []
        },
        {
          "name": "Popcorn Chicken (Medium)",
          "quantity": 1,
          "price": 189.00,
          "customizations": []
        },
        {
          "name": "Pepsi (750ml)",
          "quantity": 1,
          "price": 57.00,
          "customizations": []
        }
      ],
      "pricing": {
        "itemTotal": 795.00,
        "deliveryFee": 0.00,
        "platformFee": 5.00,
        "gst": 39.75,
        "discount": 119.25,
        "totalAmount": 720.50
      },
      "payment": {
        "method": "Credit Card",
        "transactionId": "TXN_89237821",
        "status": "paid"
      },
      "deliveryAddress": {
        "label": "Home",
        "address": "Flat 402, Green Valley Apartments, Road No 12, Banjara Hills",
        "city": "Hyderabad",
        "pincode": "500034"
      },
      "deliveryPartner": {
        "name": "Sanjay Reddy",
        "rating": 4.6,
        "phone": "+91-9876123456"
      },
      "timeline": {
        "orderPlaced": "2025-12-05T20:15:33+05:30",
        "restaurantAccepted": "2025-12-05T20:17:45+05:30",
        "foodReady": "2025-12-05T20:35:20+05:30",
        "outForDelivery": "2025-12-05T20:38:55+05:30",
        "delivered": "2025-12-05T20:52:18+05:30"
      },
      "ratings": {
        "food": 4,
        "delivery": 5,
        "review": "Good food but chicken was slightly cold"
      }
    },
    {
      "orderId": "ORD_2025120103",
      "orderDate": "2025-12-01T19:30:15+05:30",
      "status": "delivered",
      "restaurant": {
        "name": "Domino's Pizza",
        "restaurantId": "REST_78934",
        "location": "Gachibowli, Hyderabad",
        "rating": 4.2,
        "deliveryTime": "25 mins"
      },
      "items": [
        {
          "name": "Farmhouse Pizza (Medium)",
          "quantity": 1,
          "price": 449.00,
          "customizations": ["Cheese burst crust", "Extra cheese"]
        },
        {
          "name": "Garlic Breadsticks",
          "quantity": 1,
          "price": 149.00,
          "customizations": []
        },
        {
          "name": "Choco Lava Cake",
          "quantity": 2,
          "price": 178.00,
          "customizations": []
        }
      ],
      "pricing": {
        "itemTotal": 776.00,
        "deliveryFee": 0.00,
        "platformFee": 5.00,
        "gst": 38.80,
        "discount": 155.20,
        "totalAmount": 664.60
      },
      "payment": {
        "method": "Paytm Wallet",
        "transactionId": "TXN_89201456",
        "status": "paid"
      },
      "deliveryAddress": {
        "label": "Home",
        "address": "Flat 402, Green Valley Apartments, Road No 12, Banjara Hills",
        "city": "Hyderabad",
        "pincode": "500034"
      },
      "deliveryPartner": {
        "name": "Mohammed Ali",
        "rating": 4.9,
        "phone": "+91-9765432100"
      },
      "timeline": {
        "orderPlaced": "2025-12-01T19:30:15+05:30",
        "restaurantAccepted": "2025-12-01T19:31:50+05:30",
        "foodReady": "2025-12-01T19:48:25+05:30",
        "outForDelivery": "2025-12-01T19:50:10+05:30",
        "delivered": "2025-12-01T20:05:42+05:30"
      },
      "ratings": {
        "food": 5,
        "delivery": 5,
        "review": "Pizza was hot and delicious. Great service!"
      }
    }
  ],
  "preferences": {
    "dietaryRestrictions": [],
    "favoriteItems": [
      "Chicken Biryani",
      "Margherita Pizza",
      "Fried Chicken"
    ],
    "avoidIngredients": ["Mushrooms"],
    "spiceLevel": "Medium"
  },
  "loyaltyRewards": {
    "currentPoints": 2450,
    "pointsToNextReward": 550,
    "couponsAvailable": [
      {
        "code": "FLAT100",
        "description": "₹100 off on orders above ₹499",
        "validUntil": "2025-12-31"
      },
      {
        "code": "FREEDELIVERY",
        "description": "Free delivery on any order",
        "validUntil": "2025-12-15"
      }
    ]
  }
}

for each customer ensure you give me atleast 50 records of it

Adding mcp to claude and experimenting

  • refer the follwing
"swiggy-mcp": {
      "command": "uv",
      "args": [
        "run",
        "C:\\khajaclassroom\\GenerativeAI\\agenticai\\dec25\\mcp\\swiggy-mcp\\.venv\\Scripts\\python.exe",
        "C:\\khajaclassroom\\GenerativeAI\\agenticai\\dec25\\mcp\\swiggy-mcp\\customercare.py"
      ],
      "cwd": "C:\\khajaclassroom\\GenerativeAI\\agenticai\\dec25\\mcp\\swiggy-mcp"
    }

By continuous learner

enthusiastic technology learner

Leave a Reply

Discover more from Direct AI Powered By Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading