In the past, whenever a domestic model was released, the best labels people attached to various models were no more than number one in open source and number one in cost-effectiveness.
But today is different. Zhipu GLM-5.2 released its model, and messages came flooding in. Open-source models are now on par with first-class closed-source coding models. In coding, the big three should become GPT, Claude, and Zhipu.
GLM-5.2 is now ranked first on Design Arena, reaching an Elo score of 1360.
It ranks #1 on BridgeBench BS (anti-hallucination test) with a score of 100.0, and ranks #1 in reasoning ability with a score of 42.8.
GLM-5.2 also ranks 2nd in Code Arena: Frontend, 29 points higher than Claude Opus 4.7 (Thinking), only behind Fable 5!
However, as someone who is not American, I want to ask all my friends Claude Fable5 where are you making your fortune now? Why can't I use it!
The world's strongest coding model has been shut down by a ban and is not allowed for everyone to use, yet GLM-5.2 has open-sourced capabilities of the same magnitude to everyone.
But I still plan to test GLM-5.2 myself. It's not that I don't trust these leaderboards, but I feel that testing it once myself can, first, confirm whether the model is good to use, and second, confirm whether the model suits me, since everyone's usage scenarios are different.
I plan to test it from two aspects: coding and daily tasks. Alright, without further ado, the truth will be seen in the test~
01. GLM-5.2 Hands-on Test
Case 1 1M Context Test
A relatively important change in GLM-5.2 this time is that it supports a 1M context, so of course I have to test it! I directly asked GLM-5.2 to produce an APP design draft and gave it a try.Prompt: Based on the document requirements, complete the design of the K姐食堂 APP.
K姐食堂 Food Delivery Ordering App Product Requirements Document PRD
Version: V1.0
Document Status: Draft
Product Name: K姐食堂
Product Type: Food delivery ordering App
Target Platforms: iOS, Android, H5, Mini Program scalable
Target Stage: MVP to official launch
Date Written: 2026-06-17
1. Document Description
1.1 Document Purpose
This document is used to define the product positioning, business goals, user roles, core processes, functional requirements, business rules, data metrics, backend management capabilities, non-functional requirements, acceptance criteria, and version planning of the "K姐食堂" food delivery ordering App.
The document is intended for roles such as product, design, R&D, testing, operations, merchant management, and delivery management, and serves as the unified basis for subsequent prototype design, technical solution breakdown, R&D scheduling, test case writing, and launch acceptance.
1.2 Product in One Sentence
K姐食堂 is a food delivery ordering App for people who frequently eat meals on workdays, focusing on "easy to choose, fast to order, delivered on time, easy to repurchase," helping users complete daily work meals, light meals, set meals, and drink orders in the fewest steps.
1.3 Version Scope
V1.0 focuses on the core closed loop of food delivery ordering, including user login, location and address selection, store browsing, dish selection, shopping cart, order confirmation, payment, merchant order acceptance, delivery fulfillment, order tracking, cancellation and refund, reviews, repurchase, and basic backend.
V1.0 will not build a complex content community, livestreaming, group buying, membership tier system, complex recommendation algorithm, multi-person ordering, prepared meal mall, or heavily marketing-oriented gameplay. Priority is given to ensuring a stable ordering flow, accurate order status, trackable fulfillment, and handleable after-sales service.
2. Product Background
2.1 Market Background
Food delivery has become a high-frequency scenario for weekday lunch, dinner, overtime meals, and temporary replenishment. Users' basic demands for food delivery platforms are not complicated: they want to quickly find something edible, clear pricing, reliable delivery times, issues that can be handled, and quick repeat purchases next time.
However, in actual use, many ordering experiences are interrupted by overly complex information flows, too many marketing entry points, unclear dish information, unstable delivery promises, hidden after-sales entry points, and other issues. Users do not want to browse the platform every time; in many cases, they just want to solve "what to eat today" within 1 minute.
The opportunity for K姐食堂 is not to build a large and comprehensive food delivery platform, but to first do well in a high-frequency, stable, and controllable daily ordering scenario. Examples include office parks, around schools, community buildings, corporate meal subsidy scenarios, single-brand multi-store canteens, and chain light meal restaurants.
2.2 User Pain Points
Common pain points on the user side include:
1. High selection cost. The homepage information is too cluttered, with activities, ads, rankings, and recommendations mixed together, so users do not know where to start.
2. Unclear dish information. Images differ greatly from the actual product, and specifications, portion size, spiciness, add-ons, packaging fees, and delivery fees are not transparent.
3. Unstable lunch peak experience. Merchants are slow to accept orders, slow to prepare food, and riders wait for a long time; users cannot tell where exactly the delay is.
4. Inconvenient repeat purchases. The set meals and stores users often order from are not highlighted, and reordering from order history still requires reconfirming a bunch of options.
5. Troublesome after-sales process. When items are missing, delivered incorrectly, spilled, overdue, or the rider cannot be contacted, users do not know how to handle it quickly.
6. High cost to understand discounts. After full reductions, coupons, delivery fees, and packaging fees are stacked, users are unclear why the actual paid price changes.
Pain points on the merchant side include:
1. Orders are concentrated during peak periods, making it easy to miss orders, make mistakes, and have out-of-sync meal preparation status.
2. Dish inventory and on/off-shelf updates are not timely, and users only discover items are out of stock after placing an order.
3. There is a lack of standard processes for refunds, dish changes, order reminders, and note handling.
4. Store operation data is unclear, making it difficult to determine best-selling dishes, repeat-purchase dishes, reasons for negative reviews, and peak pressure.
Pain points on the operations side include:
1. Abnormal orders cannot be discovered in time, and customer service passively receives complaints.
2. The order acceptance, meal preparation, and after-sales efficiency of different merchants cannot be quantified.
3. Discount activities lack configuration and effect tracking.
4. Core metrics such as user retention, repeat purchases, refunds, and overdue orders are scattered.
2.3 Product Opportunity
K姐食堂 should start from two directions: "ordering efficiency" and "fulfillment certainty":
1. The homepage should not use a complex content feed; prioritize nearby stores that can accept orders, frequently ordered set meals, today's recommendations, and search.
2. The store page should strengthen menu structure, specification selection, dish status, and shopping cart amount transparency.
3. Refine order status to clearly display nodes such as merchant order acceptance, meal preparation, rider pickup, delivery in progress, and delivered.
4. Move the repeat purchase entry point forward so high-frequency users can complete another order in fewer steps.
5. Stores, dishes, discounts, delivery, after-sales, and abnormal order handling rules are configurable in the backend.
3. Product Positioning and Goals
3.1 Product Positioning
K姐食堂 is positioned as a high-frequency daily ordering tool, not a general entertainment platform. The product experience should be clean, direct, and stable, reducing unnecessary interruptions, so users know "what can I eat today," "how long until it's delivered," "how much does it cost," and "who do I contact if there's a problem."
Product keywords:
– High frequency
– Work meals
– Quick ordering
– On-time delivery
– Combo-based
– Easy repeat purchase
– Trackable
– Clear after-sales
3.2 Target Users
Core users:
1. Office white-collar workers. Stable demand for weekday lunch and dinner, with emphasis on delivery time, value for money, and repeat purchase efficiency.
2. Student group. Price-sensitive, prefers combos, drinks, late-night snacks, and multi-person dormitory delivery.
3. Community residents. More demand for dinner, weekends, and occasional extra meals, with emphasis on taste, merchant stability, and delivery range.
4. Corporate group meal/meal subsidy users. Ordering times are concentrated, requiring invoices, corporate accounts, fixed addresses, and batch order capabilities; V1.0 only reserves expansion.
Secondary users:
1. Merchant staff. Responsible for accepting orders, meal preparation, inventory, out-of-stock handling, and after-sales confirmation.
2. Riders. Responsible for picking up meals, delivery, reporting exceptions, and contacting users.
3. Platform operations. Responsible for order monitoring, activity configuration, merchant management, complaint handling, and data analysis.
3.3 Product Goals
User experience goals:
1. For new users, the core path from opening the App to completing first-order payment should not exceed 5 minutes.
2. For existing users, repeat purchase through "Order Again" should ideally take no more than 30 seconds.
3. Users can clearly see at which fulfillment node the current order is stuck on the order details page.
4. Users can find the entry points to cancel an order, apply for a refund, contact customer service, or urge the order within 3 clicks.
Business goals:
1. Complete the closed loop of delivery ordering, payment, order acceptance, meal preparation, delivery, arrival, and review.
2. Support pilot launch for a single store and single business district, with subsequent expansion to multiple stores.
3. Support basic discount configuration to improve first-order conversion and repeat purchases.
4. Establish basic data dashboards for orders, fulfillment, after-sales, merchant performance, etc.
Technical goals:
1. Order statuses are consistent and traceable, with no inconsistencies among the user side, merchant side, and backend.
2. Critical links such as payment callbacks, refunds, and order cancellations have idempotent handling.
3. Basic stress resistance during peak periods; order submission and merchant order acceptance must not show obvious abnormalities due to concurrency.
4. Support subsequent expansion to multiple stores, multiple cities, corporate meal subsidies, membership, and intelligent recommendations.
4. Core Metrics
4.1 User Conversion Metrics
– Number of homepage visitors
– Number of store page visitors
– Dish add-to-cart rate
– Cart submission rate
– Order payment success rate
– First-order conversion rate
– Repeat purchase rate
– Average order placement time
4.2 Fulfillment metrics
– Average merchant order acceptance time
– Average merchant meal preparation time
– Average rider arrival time at store
– Average rider delivery time
– Average delivery time
– Overtime order rate
– Order cancellation rate
– Out-of-stock order rate
– Abnormal order rate
4.3 Business metrics
– GMV
– Number of paid orders
– Average order value
– Actual paid amount
– Discount subsidy amount
– Delivery fee revenue
– Packaging fee revenue
– Refund amount
– Merchant sales ranking
– Dish sales ranking
4.4 Experience metrics
– User rating
– Dish rating
– Store rating
– Delivery rating
– Complaint rate
– After-sales handling time
– Refund approval rate
– Distribution of negative review reasons
5. User personas and scenarios
5.1 User persona one: High-frequency lunch white-collar worker
Name: Xiaolin
Age: 27
Scenario: Orders lunch around 11:30 on workdays
Characteristics: Tight on time, has difficulty choosing, often orders a fixed set meal
Needs: Fast ordering, on-time delivery, stable prices, can reorder
Typical behavior: After opening the App, checks frequently ordered stores or today's set meals, confirms the address, and places the order directly.
5.2 User persona two: Overtime dinner user
Name: Ajie
Age: 31
Scenario: Orders food during overtime after 19:00
Characteristics: More concerned about delivery range and meal preparation speed
Needs: Can quickly know which stores are still open and how long delivery is expected to take
Typical behavior: Filters by "Still open," "Fastest delivery," and "Best-selling set meals."
5.3 User persona three: Price-sensitive student
Name: Xiaoyu
Age: 20
Scenario: Lunch, late-night snacks, drinks
Characteristics: Pays attention to discounts, full reduction, delivery fees, and minimum order price
Needs: Clear actual payment price, easy-to-understand discounts
Typical behavior: First looks at promotional set meals and new user coupons, then decides whether to place an order.
5.4 User persona four: Merchant staff
Name: Sister Wang
Age: 38
Scenario: Concentrated order acceptance during lunch peak
Characteristics: Limited operating time, cannot frequently switch between complex pages
Needs: Obvious order reminders, clear notes, can quickly handle out-of-stock items
Typical behavior: Accepts orders after hearing the new order notification, prepares meals in order, and marks them as waiting for pickup after preparation.
5.5 User persona five: Platform operations
Name: Mia
Age: 29
Scenario: Monitors platform orders and anomalies
Characteristics: Needs to quickly discover overtime, refunds, negative reviews, and merchant anomalies
Needs: Has a clear backend, can filter, can export, can process
Typical behavior: view the daily order dashboard, and handle timed-out orders and complaints in the exception pool.
6. Overall Business Process
6.1 Main User Ordering Process
1. The user opens K姐食堂.
2. The system obtains the location or the user selects a delivery address.
3. The home page displays deliverable stores, recommended packages, and category entrances.
4. The user enters the store page.
5. The user selects dishes, specifications, and quantities, and adds them to the shopping cart.
6. The user enters the order confirmation page.
7. The system verifies the delivery address, business status, inventory, minimum order price, discounts, and delivery fee.
8. The user selects coupons, utensil quantity, notes, and payment method.
9. The user submits the order and completes payment.
10. The system creates the payment order and waits for the payment callback.
11. After successful payment, the order enters the pending merchant acceptance status.
12. After the merchant accepts the order, it enters the preparing status.
13. After the merchant dispatches the meal, it enters the pending rider pickup status.
14. After the rider picks up the meal, it enters the delivering status.
15. After the rider confirms delivery, it enters the delivered status.
16. The user confirms receipt of the meal or the system automatically completes it.
17. The user reviews the order.
6.2 Repurchase Process
1. The user enters "My" or "Frequently Ordered" on the home page.
2. The user selects a historical order.
3. Click "Order Again".
4. The system verifies the store's business status, whether the dishes are on sale, whether the specifications are available, and whether the inventory is sufficient.
5. If all are available, restore the shopping cart and enter the order confirmation page.
6. If some dishes are unavailable, prompt the user to delete or replace them.
7. After the user confirms, pay and place the order.
6.3 Order Cancellation Process
1. Pending payment order: the user can cancel directly without a refund.
2. Paid but not accepted by the merchant: the user can cancel without liability, and the system automatically refunds.
3. Accepted by the merchant but not yet dispatched: the user applies for cancellation, and the merchant confirms before refunding.
4. Dispatched by the merchant or picked up by the rider: in principle, no-fault cancellation is not supported and customer service intervention is required.
5. Delivered order: cancellation is not supported; only after-sales can be initiated.
6.4 Out-of-Stock Handling Process
1. The merchant discovers that a dish is out of stock before accepting the order.
2. The merchant can choose to reject the order and fill in the reason, or initiate a dish change/partial refund request.
3. The user receives an out-of-stock prompt.
4. The user can choose to accept a replacement, delete the out-of-stock dish, or cancel the order.
5. If the user does not handle it within the timeout period, the system automatically cancels or transfers to manual processing according to the configuration.
6.5 Delivery Exception Process
Delivery exceptions include the rider waiting too long at the store, the user being unreachable, incorrect address, damaged meal, or timeout caused by weather or traffic.
Handling principles:
1. The rider must select the exception type and fill in a description.
2. The user side displays a simplified exception prompt.
3. The backend exception pool generates a record.
4. Operations can contact the user, rider, or merchant to handle it.
5. The exception handling result needs to be synchronized to the order details.
7. Product Information Architecture
7.1 User-side Information Architecture
Primary navigation:
- Home
- Orders
- Me
Home modules:
- Address bar
- Search
- Category entry
- Today's Recommendations
- Frequently Ordered Dishes
- Nearby Stores
- Promotions
Orders module:
- Current orders
- Historical orders
- Orders pending review
- After-sales orders
Me module:
- User information
- Coupons
- Address management
- Favorite stores
- Customer service center
- Invoices
- Settings
7.2 Merchant-side Information Architecture
Primary navigation:
- Workbench
- Orders
- Dishes
- Store
- Data
Workbench module:
- Business status
- Today's orders
- Pending acceptance
- Preparing
- Pending pickup
- Exception alerts
Dishes module:
- Dish list
- Category management
- Specification management
- Inventory management
- Listing and delisting
7.3 Backend Information Architecture
Primary navigation:
- Data dashboard
- Order management
- User management
- Merchant management
- Rider management
- Dish management
- Promotion management
- After-sales management
- System configuration
8. User-side Functional Requirements
8.1 Login and Registration
8.1.1 Functional Description
Users log in via mobile phone number verification code. First-time login automatically registers an account. V1.0 does not force users to set a password and does not bind third-party accounts, but can reserve extensions for WeChat, Alipay, and Apple login.
8.1.2 Requirement Details
1. The user enters a mobile phone number.
2. Click to get the verification code.
3. The system validates the mobile phone number format.
4. After the verification code is sent successfully, the button enters a countdown.
5. The user enters the verification code and submits it.
6. After successful verification, enter the home page.
7. If the user is a new user, the system creates a user account.
8. If the user has not agreed to the user agreement and privacy policy, login is not allowed.
8.1.3 Exception Handling
- Incorrect mobile phone number format: prompt "Please enter a valid mobile phone number".
- Incorrect verification code: prompt "The verification code is incorrect, please re-enter it".
- Expired verification code: prompt "The verification code has expired, please obtain a new one".
- SMS sent too frequently: prompt "Operation too frequent, please try again later".
8.2 Address and Location
8.2.1 Functional Description
Address is the foundation of food delivery fulfillment. The system needs to support automatic location, manual address selection, address addition, editing, deletion, and default address setting.
8.2.2 Requirement Details
1. When the user enters the App for the first time, the system requests location authorization.
2. After the user allows it, the homepage displays addresses near the current location.
3. When the user denies location access, they can manually search for or add an address.
4. Address fields include contact person, mobile phone number, gender salutation, region, detailed address, house number, and label.
5. Address labels support Home, Company, School, and Custom.
6. Users can set a default address.
7. A deliverable address must be selected when placing an order.
8.2.3 Delivery Range Validation
When entering the store page and submitting an order, it is necessary to validate whether the address is within the delivery range.
If it is not within the delivery range:
– The store card displays "Out of delivery range".
– The store page prohibits adding to cart or prohibits checkout.
– The order confirmation page prompts the user to change the address.
8.3 Homepage
8.3.1 Functional Positioning
The homepage is used to help users quickly enter the ordering state and does not undertake complex content consumption functions. The homepage prioritizes solving "what is nearby", "what is recommended today", "what do I often eat", and "how soon can it be delivered".
8.3.2 Page Elements
1. Top address bar: displays the current delivery address, and can be clicked to switch.
2. Search box: supports searching for store names, dish names, and keywords.
3. Category entries: work meals, light meals, noodles and rice, drinks, late-night snacks, breakfast.
4. Today's recommendations: packages or stores configured by operations.
5. Frequently ordered dishes: displayed based on historical orders.
6. Nearby store list: displayed by comprehensive sorting.
7. Promotional labels: display new user coupons, full reduction, delivery coupons, etc.
8.3.3 Store Card Fields
– Store name
– Store avatar or cover
– Rating
– Monthly sales
– Average price per person
– Minimum order price
– Delivery fee
– Estimated delivery time
– Distance
– Promotional labels
– Business status
8.3.4 Sorting Rules
Default comprehensive sorting can combine the following factors:
1. Whether it is open for business.
2. Whether it can deliver to the current address.
3. Estimated delivery time.
4. Store rating.
5. Monthly sales volume.
6. User historical preferences.
7. Operations recommendation weight.
V1.0 can use rule-based sorting and does not perform complex machine learning recommendations.
8.4 Search
8.4.1 Functional Description
Users can search for stores, dishes, and keywords. Search results need to clearly distinguish store results from dish results.
8.4.2 Search Entrances
– Homepage search box
– Store page menu search
8.4.3 Search Results
Search results include:
1. Store list.
2. Dish list.
3. No results page.
4. Search history terms.
5. Popular search terms.
8.4.4 No Results Handling
When there are no search results, display:
- "No related results found"
- Recommend that the user try a different keyword
- Display nearby popular stores or category entry points
8.5 Store Page
8.5.1 Functional Positioning
The store page is the core page for user decision-making and ordering. It should let users clearly see whether the store can accept orders, how long delivery takes, what dishes are available, how the prices are, whether dishes have options, and whether the shopping cart amount has reached the minimum order amount.
8.5.2 Page Structure
1. Store header:
- Store cover image
- Store name
- Rating
- Monthly sales
- Announcement
- Delivery time
- Minimum order amount
- Delivery fee
2. Tabs:
- Order
- Reviews
- Merchant information
3. Dish category sidebar.
4. Dish list.
5. Bottom shopping cart.
8.5.3 Dish Information
Dish fields include:
- Dish image
- Dish name
- Dish description
- Monthly sales
- Positive review rate
- Price
- Original price
- Specifications
- Stock status
- Recommended tags
8.5.4 Dish Status
Dish statuses include:
- Normally available for sale
- Sold out
- Delisted
- Not supplied during the current time period
Unavailable dishes may be displayed but cannot be added to the cart. The button should be grayed out and the reason should be explained.
8.6 Dish Specifications
8.6.1 Functional Description
Some dishes have specification options, such as portion size, spiciness level, staple food, add-ons, drink temperature, etc. When the user clicks to add to cart and specifications exist, a specification selection panel pops up.
8.6.2 Specification Types
Common specifications include:
- Portion size: small, standard, large.
- Spiciness level: not spicy, mildly spicy, medium spicy, extra spicy.
- Staple food: rice, noodles, rice noodles.
- Add-ons: egg, sliced meat, vegetables, cheese.
- Drinks: hot, room temperature, iced.
8.6.3 Selection Rules
Specifications can be configured as single-select or multi-select. If required specifications are not selected, adding to the shopping cart is not allowed. Specification surcharges need to be calculated into the dish price in real time.
8.7 Shopping Cart
8.7.1 Functional Description
The shopping cart is used to display the currently selected dishes, quantities, specifications, prices, discount prompts, and the minimum order amount difference for the current store.
8.7.2 Requirement Details
1. Users can increase or decrease the quantity of dishes.
2. Users can clear the shopping cart.
3. Users can modify the specifications of selected dishes.
4. The shopping cart calculates the total dish price in real time.
5. When the minimum order amount has not been reached, prompt "X yuan away from minimum order".
6. After reaching the minimum order amount, the button changes to "Checkout".
7. A single order only supports dishes from the same store; V1.0 does not support a cross-store shopping cart.
8.7.3 Price Display
The amount displayed in the shopping cart includes:
- Dish amount
- Specification surcharge
- Packaging fee
- Estimated delivery fee
- Estimated discount
- Estimated actual payment
The complete amount is subject to the order confirmation page.
8.8 Order Confirmation Page
8.8.1 Function Description
The order confirmation page is the final confirmation page before payment and requires confirmation of the delivery address, delivery time, dish details, discounts, remarks, tableware, fees, and payment method.
8.8.2 Page Fields
- Delivery address
- Contact and phone number
- Estimated delivery time
- Store name
- Dish details
- Packaging fee
- Delivery fee
- Coupon
- Remarks
- Tableware quantity
- Payment method
- Fee details
- Submit order button
8.8.3 Pre-order Validation
Before submitting the order, the following must be validated:
1. Whether the user is logged in.
2. Whether the address is complete.
3. Whether the address is within the delivery range.
4. Whether the store is open.
5. Whether the dishes are still on sale.
6. Whether inventory is sufficient.
7. Whether the amount meets the minimum order amount.
8. Whether the coupon is usable.
9. Whether the payment method is available.
If validation fails, the system must clearly indicate the reason for the failure and guide the user to make changes.
8.9 Payment
8.9.1 Payment Methods
V1.0 supports WeChat Pay and Alipay, and can reserve balance payment and corporate meal subsidy payment.
8.9.2 Payment Process
1. The user clicks submit order.
2. The system creates the order with the status pending payment.
3. The system initiates payment.
4. The user completes payment.
5. The payment channel sends a callback.
6. The system updates the order to pending merchant acceptance.
7. The user side displays the payment success page or order details page.
8.9.3 Payment Exceptions
- User cancels payment: the order remains in pending payment status and can be paid again.
- Payment failed: indicate the reason for the failure and support retrying payment.
- Payment succeeded but the page did not return: when the user enters the order page, it must be displayed according to the server status.
- Duplicate payment callback: the server must handle it idempotently.
8.10 Order List
8.10.1 Function Description
The order list displays the user's current orders and historical orders, and supports viewing details, ordering again, reviewing, refunding, and contacting customer service.
8.10.2 Order Categories
- All
- In progress
- Pending review
- Refund/After-sales
8.10.3 Order Card Fields
- Store name
– Order status
– Order time
– Dish summary
– Amount actually paid
– Action buttons
Action buttons change according to status:
– Pending payment: Pay now, Cancel order
– Pending merchant acceptance: Cancel order, Contact merchant
– Preparing food: Urge order, Contact merchant
– Out for delivery: Contact rider, View delivery
– Completed: Order again, Review, Apply for after-sales
– Canceled: Order again
8.11 Order Details
8.11.1 Feature Description
The order details page is used to display fulfillment progress and order information, and is the core viewing page for users after placing an order.
8.11.2 Page Modules
1. Order status section:
– Current status
– Estimated delivery time
– Status description
2. Fulfillment timeline:
– Order submitted
– Merchant accepted order
– Merchant preparing food
– Rider picked up food
– Out for delivery
– Delivered
3. Delivery information:
– Rider name
– Rider phone
– Current location; V1.0 may not implement a real-time map, reserved
4. Merchant information:
– Merchant phone
– Merchant address
5. Dish details.
6. Cost details.
7. Order number.
8. After-sales entry.
8.12 Review
8.12.1 Feature Description
Users can review completed orders. The review targets include the overall order, dishes, delivery, and merchant.
8.12.2 Review Content
– Star rating
– Text review
– Image upload
– Anonymous review
– Recommendation tags
8.12.3 Review Rules
1. Completed orders can be reviewed.
2. Each order can only be reviewed once.
3. After submission, a review can be appended within a certain period; arbitrary modification is not supported.
4. Information involving sensitive words, insults, or privacy will enter review.
8.13 After-sales
8.13.1 After-sales Types
– Cancel order
– Apply for refund
– Partial refund
– Missing items
– Damaged food
– Wrong order delivered
– Delivery timeout
– Food not received
8.13.2 After-sales Process
1. The user selects the after-sales reason.
2. The user fills in an explanation and uploads evidence.
3. The system determines whether to handle it automatically.
4. If automatic handling fails or the amount is relatively high, it enters manual review.
5. The merchant or platform operations handles it.
6. The user receives the handling result.
7. If the refund is approved, it is returned to the original payment account via the original route.
8.13.3 Automatic Refund Rules
V1.0 can first support limited automatic refund scenarios:
– User cancels when the merchant has not accepted the order.
– The merchant times out without accepting the order.
– The store proactively rejects the order.
– Inventory validation fails after payment.
Other scenarios enter manual review.
8.14 Coupons
8.14.1 Coupon Types
– New user coupon
– Threshold discount coupon
– Delivery coupon
– Store coupon
– Platform coupon
8.14.2 Usage Rules
1. New user coupons can only be used on the first order.
2. Threshold discount coupons must meet the specified threshold.
3. Delivery coupons only offset the delivery fee.
4. Store coupons are limited to the specified store.
5. Platform coupons apply to all stores participating in the campaign.
6. By default, only one threshold discount type coupon can be used per order.
7. Delivery coupons can be stacked with threshold discount coupons, as specifically configured in the backend.
8.14.3 Display Rules
The order confirmation page should display available coupons and unavailable coupons. Unavailable coupons need to explain the reason, such as not meeting the threshold, not applicable to the store, expired, or cannot be stacked with the current campaign.
9. Merchant-side Functional Requirements
9.1 Merchant Login
Merchants log in with an account and password or a mobile phone verification code. Accounts are created and assigned permissions by the platform backend.
Merchant account roles include:
– Store owner
– Store manager
– Store clerk
Different roles have different permissions. V1.0 can first implement basic permissions: store clerks can process orders and dish inventory, and store owners can view data and manage store information.
9.2 Merchant Workbench
The workbench is used to quickly process orders during peak hours.
Display content:
– Current business status
– Today's order count
– Today's sales amount
– Number of orders pending acceptance
– Number of orders in preparation
– Number of orders waiting for rider pickup
– Number of abnormal orders
Core operations:
– Start business
– Pause business
– Accept order
– Reject order
– Mark as ready
– Contact user
– Contact rider
9.3 Order Management
9.3.1 Order Status
Merchant-side order statuses include:
– New order
– Accepted
– In preparation
– Waiting for pickup
– Picked up
– Completed
– Canceled
– Refunding
9.3.2 New Order Reminder
New orders need obvious reminders:
– Sound reminder
– Pop-up reminder
– List pinned to top
– Unprocessed quantity badge
When the merchant does not process within the configured time, the backend generates a timeout reminder.
9.3.3 Order Acceptance Rules
Merchants can accept or reject orders.
Rejecting an order requires selecting a reason:
– Item out of stock
– Closed
– Delivery exception
– Order notes cannot be fulfilled
– Other reasons
After order rejection, the order is canceled and refunded, and the rejection reason is synchronized to the user and the backend.
9.4 Dish Management
9.4.1 Dish Fields
– Dish name
– Dish category
– Dish image
– Dish description
– Selling price
– Original price
– Stock
– Packaging fee
– Specifications
– Whether recommended
– Listing status
– Selling time
9.4.2 Dish Operations
– Add dish
– Edit dish
– Delete dish
– List
– Delist
– Set as sold out
– Restore stock
– Adjust sorting
9.4.3 Stock Rules
1. When stock is 0, the dish automatically displays as sold out.
2. Stock is deducted after the user places an order and payment is successful.
3. Whether stock is returned when an order is canceled or refunded is determined by the order status.
4. Merchants can manually set today's sold-out status.
9.5 Store Management
Store information includes:
– Store name
– Store Logo
– Store cover
– Store announcement
– Business hours
– Delivery range
– Minimum order amount
– Delivery fee rules
– Packaging fee rules
– Contact phone
– Store address
Business status includes:
– Open
– Resting
– Suspended order acceptance
– Closed
When order acceptance is suspended, users can browse the store and dishes but cannot place orders.
9.6 Merchant Data
The merchant side displays basic business data:
– Today's order count
– Today's revenue
– Today's refund count
– Best-selling dishes
– Negative review orders
– Average order acceptance time
– Average meal preparation time
V1.0 only provides basic display and does not perform complex business analysis.
10. Rider-Side Functional Requirements
10.1 Rider Login
Rider accounts are created by the platform backend, and riders log in via mobile phone number verification code. Riders must have real-name information and contact information, which can be entered by the backend in V1.0.
10.2 Delivery Tasks
The rider-side task list includes:
– Waiting to pick up food
– Delivering
– Completed
– Abnormal tasks
Task cards display:
– Store name
– Store address
– User address
– Estimated delivery time
– Order number
– Contact merchant
– Contact user
10.3 Status Operations
Riders can perform the following status operations:
1. Arrived at store.
2. Order picked up.
3. Delivering.
4. Delivered.
5. Report anomaly.
Status changes must be synchronized to the user side, merchant side, and backend.
10.4 Anomaly Reporting
Anomaly types include:
– Merchant has not prepared the order
– Unable to reach user
– Incorrect address
– Order damaged
– Traffic reasons
– Weather reasons
– Unable to enter residential community or building
After a rider reports an anomaly, a record is generated in the backend anomaly pool, and operations staff can intervene to handle it.
11. Operations Backend Functional Requirements
11.1 Data Dashboard
The backend homepage displays the platform's overall business data:
– Today's GMV
– Today's paid order count
– Today's refunded order count
– Today's active users
– Currently in-progress orders
– Currently anomalous orders
– Overdue order rate
– Average delivery duration
Data supports filtering by date; V1.0 supports today, yesterday, last 7 days, and last 30 days.
11.2 Order Management
Order management supports viewing, filtering, exporting, and processing orders.
Filter conditions:
– Order number
– User mobile number
– Store name
– Rider name
– Order status
– Payment status
– After-sales status
– Order placement time
Order details display:
– User information
– Merchant information
– Rider information
– Dish details
– Fee details
– Payment information
– Status transition log
– After-sales records
– Operation log
The backend can perform:
– Cancel order
– Initiate refund
– Mark as anomaly
– Add note
– Contact user
– Contact merchant
– Contact rider
11.3 User Management
User management fields:
– User ID
– Mobile number
– Nickname
– Registration time
– Most recent order placement time
– Order count
– Payment amount
– User status
Backend operations:
– View user details
– View user orders
– Disable user
– Unban user
– Add operations note
Mobile numbers must be displayed in masked form; only roles with permission can view the full mobile number.
11.4 Merchant Management
Merchant management fields:
– Store ID
– Store name
– Contact person
– Contact phone
– Address
– Business status
– Review status
– Number of orders
– Rating
Backend operations:
– Add store
– Edit store
– Review store
– Set business status
– Configure delivery range
– Configure fee rules
– View business data
11.5 Rider Management
Rider management fields:
– Rider ID
– Name
– Phone number
– Status
– Number of deliveries today
– Average delivery time
– Number of complaints
Backend operations:
– Add rider
– Edit rider
– Enable/disable
– Assign delivery area
– View delivery records
11.6 Promotion Management
The backend supports creating coupons.
Coupon fields:
– Coupon name
– Discount type
– Face value
– Usage threshold
– Applicable stores
– Issue quantity
– Limit per person
– Validity period
– Stackable
– Usage instructions
Coupon status:
– Not started
– In progress
– Ended
– Disabled
11.7 After-sales Management
After-sales management is used to handle refunds, complaints, and abnormal orders.
After-sales order fields:
– After-sales order number
– Order number
– User
– Store
– After-sales type
– Requested amount
– Reason for request
– Evidence
– Current status
– Handler
– Handling result
After-sales status:
– Pending handling
– Merchant handling
– Platform handling
– Approved
– Rejected
– Refunded
– Closed
Handling results must be traceable and may not be deleted.
12. Order State Machine
12.1 Main Status
Order main statuses include:
1. Pending payment
2. Pending merchant acceptance
3. Merchant preparing food
4. Pending rider pickup
5. Delivering
6. Delivered
7. Completed
8. Canceled
9. Refunding
10. Refunded
12.2 Status Transition Rules
Pending Payment:
– User payment successful, enters Pending Merchant Acceptance.
– User cancels, enters Canceled.
– Payment not made before timeout, system automatically cancels.
Pending Merchant Acceptance:
– Merchant accepts order, enters Merchant Preparing Food.
– Merchant rejects order, enters Canceled and refunded.
– User cancels, enters Canceled and refunded.
– Merchant does not accept order before timeout, system reminds or automatically cancels.
Merchant Preparing Food:
– Merchant marks food ready, enters Pending Rider Pickup.
– User applies to cancel, requires merchant confirmation.
Pending Rider Pickup:
– Rider picks up food, enters Delivering.
– Rider reports an exception, enters exception handling but the main status may remain Pending Pickup.
Delivering:
– Rider confirms delivery, enters Delivered.
– User reports not received, enters after-sales handling.
Delivered:
– User confirms receipt or it automatically completes after timeout, enters Completed.
– User applies for after-sales, enters after-sales process.
12.3 Status Log
Every status change must record:
– Order ID
– Original status
– New status
– Operator type
– Operator ID
– Operation time
– Operation source
– Remarks
13. Fees and Settlement Rules
13.1 Order Amount Composition
The order amount payable includes:
Dish amount + specification surcharge + packaging fee + delivery fee – discount amount = actual amount paid
13.2 Packaging Fee
The packaging fee can be configured in the following ways:
1. Fixed packaging fee per order.
2. Independent packaging fee per dish.
3. Packaging fee stacked by quantity.
V1.0 recommends supporting packaging fees by dish, configurable in the backend.
13.3 Delivery Fee
The delivery fee can be configured by distance, store, and order amount. V1.0 may adopt simplified rules:
– Fixed delivery fee per store.
– Delivery fee waived when a specified amount is reached, as a future extension.
13.4 Refund Amount
Full refund:
Refund the actual amount paid by the user; whether the coupon is returned is determined by the campaign configuration.
Partial refund:
Refund by the allocated actual paid amount per dish. If the discount involves a full reduction, it needs to be recalculated according to backend rules or handled manually.
13.5 Merchant Settlement
V1.0 may first do data recording, without building a complete financial settlement system. It needs to record:
– Original order price
– Discount amount
– Platform subsidy
– Discount borne by merchant
– Refund amount
– Settlement amount
14. Notifications and Messages
14.1 User Notifications
User notification scenarios include:
– Payment successful
– Merchant has accepted the order
– Merchant has prepared the food
– Rider has picked up the food
– Rider is about to deliver
– Order has been delivered
– Refund successful
– After-sales processing completed
Notification forms include in-app messages, Push, and SMS. In V1.0, in-app messages and Push can be prioritized.
14.2 Merchant Notifications
Merchant notification scenarios include:
– New order
– User cancels order
– User applies for refund
– Rider arrives at store
– Abnormal order
New order reminders must be obvious, with support for sound and pop-ups.
14.3 Rider Notifications
Rider notification scenarios include:
– New delivery task
– Merchant has prepared the food
– User modifies notes
– User contact request
– Delivery exception handling result
15. Permissions and Security
15.1 User Privacy
User phone numbers, addresses, and order records are sensitive information. The system must follow the principle of minimum visibility.
Requirements:
1. User phone numbers are displayed masked by default.
2. Riders and merchants can view user contact information only during the necessary stages of order fulfillment.
3. Viewing the full phone number in the backend requires permission.
4. Address information must not be used for purposes other than order fulfillment.
5. Users can delete addresses.
15.2 Backend Permissions
Backend roles include:
– Super Administrator
– Operations
– Customer Service
– Finance
– Merchant Administrator
Permission examples:
– Customer service can view orders and handle after-sales, but cannot modify discount rules.
– Operations can configure campaigns and handle abnormal orders.
– Finance can view settlement data, but cannot modify order status.
– The super administrator can manage roles and permissions.
15.3 Operation Logs
Key backend operations must be logged:
– Modify order status
– Initiate refund
– Modify merchant information
– Modify coupons
– Disable user
– Deactivate merchant
– Modify delivery rules
16. Non-functional Requirements
16.1 Performance Requirements
1. The homepage first-screen loading time must not exceed 2 seconds.
2. The response for switching the dish list on the store page must not exceed 500ms.
3. The average response time of the order submission API must not exceed 1 second.
4. After the successful payment callback, the order status update must not exceed 3 seconds.
5. During peak periods, the order status push delay must not exceed 5 seconds.
16.2 Availability Requirements
1. The availability target for the core ordering process is 99.9%.
2. Payment and order status must not be lost due to client exit.
3. After the merchant side recovers from a network outage, it must resynchronize unprocessed orders.
4. On the rider side, key states can be cached under weak network conditions and retransmitted after recovery.
16.3 Compatibility Requirements
The mobile end needs to be compatible with:
– The most recent 3 major versions of iOS.
– Mainstream Android system versions.
– Mainstream screen sizes.
H5 or mini program extensions need to adapt to the WeChat environment.
16.4 Maintainability Requirements
1. The order state machine needs to be managed uniformly by the server.
2. Fee calculation needs to be calculated uniformly by the server, and the client only displays the results.
3. Discount rules should support backend configuration.
4. Dishes, stores, delivery, and after-sales rules should be modularized to facilitate subsequent expansion.
17. Tracking Requirements
17.1 Homepage Tracking
– Homepage impression
– Address switch click
– Search box click
– Category click
– Store card impression
– Store card click
– Recommended combo click
17.2 Store Page Tracking
– Store page impression
– Dish impression
– Add dish to cart
– Specification popup open
– Specification confirmation
– Cart open
– Checkout click
17.3 Order Tracking
– Order confirmation page impression
– Coupon click
– Submit order click
– Payment initiation
– Payment success
– Payment failure
– Cancel order click
– Order again click
17.4 After-sales Tracking
– After-sales entry click
– After-sales type selection
– After-sales submission
– After-sales success
– After-sales failure
18. Risks and Boundaries
18.1 Business Risks
1. Orders are concentrated during the lunch peak, putting greater pressure on merchants to accept orders and prepare food.
2. Insufficient delivery capacity will directly affect the user experience.
3. If discount rules are not clear, price disputes are likely to arise.
4. Differences between merchants' dish images and the actual items may lead to negative reviews.
5. If after-sales review is too slow, it will amplify users' negative emotions.
18.2 Product Boundaries
The focus of V1.0 is to complete the closed loop of ordering and fulfillment, not to pursue complex marketing gameplay. For all new features, priority should be given to determining whether they improve ordering efficiency, fulfillment stability, or after-sales handling efficiency.
18.3 Technical Risks
1. Payment callbacks and order status consistency have high requirements.
2. Inventory deduction and refund return are prone to boundary issues.
3. Multi-end state synchronization across the merchant end, user end, and rider end is complex.
4. Push delays during peak periods may affect fulfillment.
19. Acceptance Criteria
19.1 User End Acceptance
1. Users can log in with a mobile phone number verification code.
2. Users can add, edit, and delete addresses.
3. Users can browse stores and categories on the homepage.
4. Users can enter the store page to view dishes.
5. Users can select specifications and add items to the cart.
6. Users can submit orders and complete payment.
7. Users can view order status.
8. Users can cancel orders that meet the conditions.
9. Users can apply for after-sales service.
10. Users can review completed orders.
11. Users can reorder through historical orders.
19.2 Merchant-side acceptance
1. Merchants can log in.
2. Merchants can switch business status.
3. Merchants can accept and reject orders.
4. Merchants can mark meal preparation as complete.
5. Merchants can manage dish listing and delisting and inventory.
6. Merchants can view today's orders and basic business data.
19.3 Rider-side acceptance
1. Riders can log in.
2. Riders can view delivery tasks.
3. Riders can mark arrival at store, pickup, and delivery.
4. Riders can contact users and merchants.
5. Riders can report delivery exceptions.
19.4 Backend acceptance
1. The backend can view the order list and order details.
2. The backend can manage users, merchants, and riders.
3. The backend can configure coupons.
4. The backend can process after-sales orders.
5. The backend can view the data dashboard.
6. Key backend operations have logs.
20. Version planning
20.1 V1.0 MVP
Goal: complete the basic closed loop of food delivery ordering.
Scope:
– User login
– Address management
– Home page
– Store page
– Dish specifications
– Shopping cart
– Order confirmation
– Payment
– Order details
– Merchant order acceptance
– Rider delivery
– After-sales
– Basic backend
20.2 V1.1 Experience optimization
Goal: improve repurchase and ordering efficiency.
Scope:
– Frequently ordered dishes
– Favorite stores
– Smart default address
– More complete review tags
– Merchant meal preparation time optimization tips
– Coupon recommendations
20.3 V1.2 Operations enhancement
Goal: improve campaign and merchant operation capabilities.
Scope:
– Store campaign configuration
– Dish rankings
– User segmentation
– Merchant business analysis
– Automatic alerts for abnormal orders
– After-sales reason analysis
20.4 V2.0 Extended capabilities
Goal: support more complex scenarios.
Scope:
– Multi-person ordering
– Corporate meal subsidies
– Invoice management
– Membership system
– Group ordering
– Scheduled delivery
– Intelligent recommendations
– Multi-city and multi-business district management
21. Prototype page list
User side:
1. Splash page
2. Login page
3. Location authorization page
4. Address list page
5. Add address page
6. Home page
7. Search page
8. Search results page
9. Store page
10. Dish specification popup
11. Shopping cart popup
12. Order confirmation page
13. Payment result page
14. Order list page
15. Order details page
16. Cancel order page
17. After-sales application page
18. Review page
19. My page
20. Coupon page
21. Customer service center page
Merchant side:
1. Login page
2. Workbench
3. Order list
4. Order details
5. Dish list
6. Dish editing
7. Store settings
8. Data page
Rider side:
1. Login page
2. Task list
3. Task details
4. Exception reporting
Backend:
1. Login page
2. Data dashboard
3. Order management
4. Order details
5. User management
6. Merchant management
7. Rider management
8. Coupon management
9. After-sales management
10. System configuration
22. Testing focus
22.1 Main flow testing
– Full process from login to order placement and payment.
– Merchant order acceptance process after successful payment.
– Process from merchant meal preparation to rider delivery.
– User review process.
– Reorder process.
22.2 Exception testing
– Payment failure.
– Payment successful but client network disconnected.
– Merchant rejects order.
– Merchant times out without accepting order.
– Insufficient dish inventory.
– Address outside delivery range.
– Rider delivery exception.
– User requests refund.
22.3 Amount testing
– Minimum order amount calculation.
– Packaging fee calculation.
– Delivery fee calculation.
– Full reduction coupon calculation.
– Delivery coupon calculation.
– Partial refund amount calculation.
– Order cancellation refund.
22.4 Permission testing
– Regular users cannot access the backend.
– Merchants can only view orders for their own store.
– Riders can only view their own delivery tasks.
– Customer service cannot modify discount rules.
– Backend operation logs are fully recorded.
23. Issues to be confirmed
1. Does V1.0 have to support both the App and the mini program, or should we build one of them first?
2. Will delivery be handled by platform riders, or by merchants themselves, or should both be supported?
3. Does payment need to support balance or corporate meal subsidies?
4. Is integration with an invoicing system needed?
5. Will merchant settlement be implemented within V1.0?
6. Does the map capability need real-time tracking, or should it only display status transitions?
7. Are the subsidies for new user coupons and full-reduction promotions borne by the platform or by merchants?
8. What is the maximum amount for automatic after-sales refunds?
9. Is it necessary to support pre-orders and scheduled delivery?
10. Is a corporate group meal scenario needed?
24. Summary
The core of K姐食堂 V1.0 is not to build a food delivery platform packed with features, but to first make the most important daily ordering flow run steadily: users can quickly choose meals, pay clearly, and see status in real time; merchants can accept orders promptly and prepare food accurately; riders can deliver smoothly; and the platform can spot anomalies and handle after-sales.
This version should be built around three keywords: efficiency, certainty, and traceability.
Efficiency is reflected in the homepage, store page, shopping cart, and repurchase flow. Certainty is reflected in delivery range, inventory, price, order status, and estimated delivery time. Traceability is reflected in the order state machine, fulfillment logs, after-sales records, and backend operation logs.
If you have seen the prompts above, you know the prompt is extremely long, specifically designed to test a 1M context.
The degree of completion is quite high, and every small window is directly interactive.
The coverage is complete, with a total of 19 display interfaces. Key pages such as the homepage, store page, specification popup, order confirmation, order details, after-sales, and reviews are all included.
The backend pages are not just for show: there are data dashboards, order management, and after-sales management.
Afterward, only interactions, states, real assets, and responsive design need to be added to turn it into a complete APP.
case 2 3D solar system
For the first test, let's do a 3D project, which has basically appeared in almost every model evaluation.
Prompt:
Create an interactive 3D solar system page.
Requirements:
Use Three.js.
Planets revolve around the sun, and the orbits are visible.
After clicking a planet, a side panel displays the planet's name, radius, distance, and introduction.
Support play/pause, speed adjustment, viewpoint dragging, and scroll wheel zooming.
On mobile, switch to a top-bottom layout, and it must not block the main view.
The resulting effect looks really good. It has all the planets it should have, and the interactions are quite complete. Clicking, dragging, zooming, pausing, speed adjustment, and resetting the viewpoint are all included.
It can be seen that the model's Three.js fundamentals, page integration ability, and interaction implementation ability are all quite good.
The resulting effect looks really good. It has all the planets it should have, and the interactions are quite complete. Clicking, dragging, zooming, pausing, speed adjustment, and resetting the viewpoint are all included. Effect demonstration video:https://weixin.qq.com/sph/AobTs8a50
It can be seen that the model's Three.js fundamentals, page integration ability, and interaction implementation ability are all quite good.
case 3 shooting game
Next, let's make a shooting game.
Prompt: Please output a complete single-file HTML, using Canvas to make a vertical shooter game similar to "Raiden". The player's fighter can move and shoot, enemy planes appear in batches and fire bullets; there is collision detection, explosion effects, score, lives, levels, pause; a Boss appears every 30 seconds; on mobile there are direction and shooting buttons.
After finishing it, I played it for more than ten minutes. It's really fun and makes up for my childhood regret of my parents not letting me play video games. Effect demonstration video:https://weixin.qq.com/sph/AGFesU2uc
Fighter jets, Boss, bullets, and sound effects are all there, and a screen shake effect was also added. The gameplay structure is complete too, and it is already a complete game. GLM-5.2 clearly understood the basic skeleton of a vertical shooter game, and can build the main loop, entity system, collision, mobile controls, and visual effects.
case 4 bug fix
Next, test the bug-fixing ability by fixing a Gantt chart HTML file. The Gantt chart is a typical work scenario and can better reveal front-end state design ability than an ordinary table.
Prompt:
Below is a single-file HTML with bugs. The goal is to make a sales trend chart. Please fix the code and output the complete fixed HTML.
Do not just explain the problem; you must provide complete code that can run directly.
Original code:
<!DOCTYPE html><html><head> <meta charset=”UTF-8″> <title>Sales Chart</title> <script src=”https://cdn.jsdelivr.net/npm/chart.js”></script> <style> body { margin: 0; background: #f5f5f5; } .wrap { width: 900px; margin: 40px auto; background: white; padding: 24px; } canvas { width: 100%; height: 300px; } </style></head><body> <div class=”wrap”> <h1>Sales Trend</h1> <select id=”range”> <option value=”q1″>Q1</option> <option value=”q2″>Q2</option> </select> <canvas id=”chart”></canvas> </div> <script> const data = { q1: { labels: [“January”, “February”, “March”], sales: [120, 180, 150], refund: [12, 18, 20] }, q2: { labels: [“April”, “May”, “June”], sales: [210, 260, 240], refund: [30, 22, 28] } }; const ctx = document.getElementById(“chart”); let chart; function renderChart(range) { chart = new Chart(ctx, { type: “line”, data: { labels: data.range.labels, datasets: [ { label: “Sales”, data: data.range.sales, borderColor: “blue” }, { label: “Refunds”, data: data.range.refund, borderColor: “red” } ] } }); } document.getElementById(“range”).addEventListener(“change”, (e) => { renderChart(e.target.value); }); renderChart(“q1”); </script></body></html>
Fix requirements:
Fix all data access issues that prevent the chart from switching correctly.
When switching between Q1 / Q2, do not repeatedly create multiple Chart instances and cause a memory leak.
The page needs to be responsive, and the width must not overflow on mobile.
Add a KPI area that displays the current quarter's total sales, total refunds, and net sales.
Add buttons to switch between bar chart and line chart.
Add empty state and error protection. If a non-existent quarter is passed in, the page should display a friendly message.
Finally, briefly mark in code comments which key bugs were fixed.
Effect before fixing:
Result after the fix:https://weixin.qq.com/sph/AS07Vq2uc
The code fix is very complete. KPI, chart type switching, responsiveness, and empty states were all added, which shows the model understood the bug-fixing requirements and also proactively improved the user experience.
GLM's front-end bug-fixing ability is good: it can understand the original problem, fix the core bug, and proactively complete the product experience.
case 5 Web page creation
I think aesthetics are also a reflection of a model's ability, so let's have GLM-5.2 generate an official website page and see.
Prompt:
Please output a complete single-file HTML, including HTML, CSS, and JavaScript, with no backend dependency. You may use the CDNs of GSAP, Three.js, and Lucide Icons, but do not use UI template libraries.
Theme: Create an official website homepage for an AI note-taking product named "LumaNote".
Product background:
LumaNote is aimed at graduate students, product managers, consultants, and content creators. Core features include: automatically organizing meeting recordings, turning long documents into structured notes, extracting viewpoints from multiple sources, generating traceable citations, and syncing notes to Notion and Obsidian.
Page requirements:
The first screen must directly showcase the product, and must not use vague large headlines. It needs a realistic main visual of the product interface; you may use HTML/CSS to create a note-taking software interface, or use Canvas / Three.js for an interactive display.
The first screen includes the product name, a clear one-sentence positioning statement, a primary button, and a secondary button.
The page must contain at least 5 complete sections: first screen, core workflow, feature highlights, target users, pricing plans, and FAQ.
The core workflow must show the chain of "import materials → automatic organization → generate cited notes → sync tools," and must not merely list feature points.
There must be at least 6 feature highlights, and each highlight must have an icon, title, and brief explanation.
The target users section must write different scenarios for 4 types of users, and the copy must not repeat.
The pricing plans include a free version, professional version, and team version, and each tier must have a price, who it is suitable for, and main features.
The FAQ must have at least 5 questions.
The page needs top navigation and must support smooth scrolling to the corresponding section when clicked.
It must be adapted for mobile, and there must be no horizontal scrolling, text overflow, or button obstruction.
Design requirements:
The overall style should look like a mature SaaS official website: restrained, clean, and premium.
Do not use large purple-blue gradients, floating colorful light orbs, emoji icons, or templated bento cards.
Card corner radius must not exceed 8px.
The main visual on the first screen must not be just a decorative image; it must be possible to see how the product processes notes and citations.
Use a unified font hierarchy, whitespace, and color system.
Interactions should have details, such as navigation highlighting, FAQ expansion, button hover, and workflow step switching or animations.
All copy should be in Chinese, with a tone like a real product official website, and should not be written like AI-flavored promotional copy.
Output requirements:
Only output the complete HTML code.
Write all CSS and JS in the same file.
Do not explain the design approach.
The code must be able to be saved directly as .html and opened and run in a browser.
The official website page generated by GLM-5.2:
When I first opened it, I thought I had clicked into some AI tool website. AI being able to make a webpage with such impressive aesthetics feels too unreal.
The warm paper-colored background, dark primary buttons, thin borders, and low-saturation brown accent color are very comfortable together. It has already escaped the pit of only stacking gradient cards.
case 6 Chinese writing
The Chinese writing level of large models is really something ordinary people care a lot about, since many office workers need AI to write some copy for them.
Prompt:
Please write a 1200-1500 Chinese-character WeChat official account article based on the material below.
Topic: One year after AI tools entered the company, where they are truly useful and where they are not
Background material:
A 12-person content team began systematically using AI tools last year. The team mainly produces WeChat official account articles, short video scripts, industry material organization, and simple data analysis. After one year of use, weekly output increased from 3 articles to 5, and material organization time decreased by about 40%, but the first-draft rework rate did not drop noticeably. The team found that AI is best suited for material summarization, alternative titles, table cleaning, interview outlines, and first-draft structure; it is least suited for directly writing opinions, judging industry trends, and replacing editors in making final calls. After newcomers became dependent on AI, articles took shape faster, but the opinions often became shallower. Senior editors used AI more like an assistant, which could save time, but they would not give up human judgment.
Writing requirements:
Title should be self-chosen, and do not use clickbait.
Start directly with a specific scene, and do not use clichés like "with the development of AI" or "in this era."
The article should have personal judgment and cannot be written as a neutral report.
It must clearly explain: where AI helped, where it did not help, and why the same tool has different effects in the hands of newcomers and veterans.
Write at least 3 specific work scenarios.
Do not use "empower, reshape, ecosystem, closed loop, underlying logic, paradigm, dimensionality reduction strike."
Do not use the sentence pattern "not... but..."
Do not write every paragraph as short punchy sentences.
Give a specific suggestion at the end, and do not elevate it.
The tone should be natural, like a retrospective written by a real content team leader.
It was pretty fast, and it finished in less than two minutes!
The article reads fairly smoothly overall, and the opening can also hold the reader.
The contrast between newcomers and veterans is a big plus. It has the feel of real management experience, and is more memorable than simply discussing the pros and cons of the tool.
If the full score is 100, I can give GLM-5.2's writing ability 85.
case 7 instruction following
Many models often get our instructions wrong. Let's see whether GLM-5.2 has this problem.
Prompt:
Please process the text according to the following rules. The rules are ordered from high to low priority, and when there is a conflict, only obey the higher-priority rule.
Rule A: The final answer may only output 4 bullet points.
Rule B: Each bullet point must be fewer than 18 Chinese characters.
Rule C: The numbers in the original text must be retained.
Rule D: Do not use "improve", "optimize", or "build".
Original text:
This system is expected to go online in 30 days. The goal is to improve customer service response speed, optimize the ticket assignment process, build a unified service entry point, and reduce the proportion of manual processing to 40%.
Pretty good, 4 bullet points, each under 18 Chinese characters, numbers retained, and all prohibited words avoided.
Case 8 Classic Trap Question
Prompt: I'm going to wash my car. My home is 50 meters from the car wash. Should I drive there or walk there?
Not bad, it didn't fall into the trap, and it even kindly suggested that I could come back first and pick up the car after it's washed.
Case 9 PPT Creation
Prompt:
Prompt: Please create a PPTX of no more than 8 pages based on the material below. The theme is "Implementation Plan for AI Tools in a Content Team." Requirements: Include a cover page, current problems, goals, process design, role division, risk control, pilot plan, and closing page. Use a steady business style, no cartoon illustrations. Keep only necessary text on each page; do not cram in paragraphs. Include at least 1 flowchart and 1 table. Generate an editable PPTX file and export preview images to check the layout. The material is as follows:
Project background:
The company is a SaaS service provider serving B2B clients, with main customers from manufacturing, retail, education, and professional services industries. The content team is responsible for WeChat official account articles, customer cases, product white papers, short video scripts, sales materials, and event materials.
Over the past year, content demand has increased significantly. The marketing department hopes to increase monthly content output from the current 18 pieces to 30 pieces, including:
8 in-depth WeChat official account articles.
4 customer cases.
12 short video scripts.
4 industry material compilations.
2 sales support materials.
The current team has already tried using AI tools, but mainly relies on personal habits, with no unified process. Some editors use AI for material organization and title alternatives, while some editors hardly use it. Output quality is unstable, and review standards are not unified.
Team size and roles:
The content team has 12 people in total:
1 content lead, responsible for topic direction, final review, and cross-department communication.
3 senior editors, responsible for in-depth articles, customer cases, and white papers.
3 junior editors, responsible for material organization, first drafts, and short content rewriting.
2 short video directors, responsible for scripts, storyboards, and voice-over copy.
1 designer, responsible for cover images, infographics, and PPT visuals.
1 operations person, responsible for WeChat official account publishing, data collection, and community distribution.
1 data analyst, responsible for content performance analysis and monthly reports.
Current main problems:
Material organization takes a long time.
An in-depth article takes an average of 6 to 8 hours for material collection, excerpting, and verification.
First draft quality fluctuates greatly.
First drafts written by junior editors are often structurally complete, but the viewpoints are not clear enough, with a rework rate of about 38%.
Titles and summaries rely on experience.
Different editors write very differently, and the same article often requires repeated revisions of 4 to 6 versions of the title.
Customer case production is slow.
After interview recordings are transcribed into text, key points need to be manually organized. On average, a case takes 7 days from interview to finished draft.
Insufficient content reuse.
A white paper is rarely broken down into short video scripts, sales pitches, or community short posts, and material utilization is not high.
Risk control is unstable.
AI-generated content occasionally has issues such as factual errors, unclear citations, exaggerated product effects, and overly marketing-oriented tone.
Existing data:
Current average monthly output: 18 pieces of content.
Target average monthly output: 30 pieces of content.
Average production cycle for in-depth articles: 3.5 days.
Average production cycle for customer cases: 7 days.
First draft rework rate: 38%.
Average time spent on material organization: 6 to 8 hours per piece.
Average number of title revision rounds: 4 to 6 rounds.
Average reading completion rate within 7 days after content publication: 42%.
Monthly ad hoc material requests from the sales team: about 15 times.
Implementation goals:
Increase monthly content output to 30 pieces within 3 months.
Reduce the material organization time for in-depth articles by 40%.
Shorten the production cycle for customer cases from 7 days to 4 days.
Reduce the first draft rework rate from 38% to below 25%.
Establish unified AI usage guidelines and review checklists.
Reuse each key piece of content in at least 3 formats, such as WeChat official account articles, short video scripts, and sales pitches.
List of available tools:
ChatGPT or similar large models: used for material summaries, outlines, title options, and first draft rewriting.
Perplexity or similar search tools: used for public information retrieval and source tracking.
Feishu Docs: used for collaboration, version management, and approval workflows.
Notion or knowledge base tools: used to store industry materials, customer cases, and prompt templates.
Jianying or CapCut: used for splitting short video scripts and first draft subtitles.
Excel or Google Sheets: used for content data statistics.
Midjourney or Jimeng: used for concept images and cover direction references, but formal commercial images must be confirmed by a designer.
Grammarly or Chinese proofreading tools: used for checking typos, grammatical errors, and punctuation.
Suggested process:
Topic selection stage: the content lead determines the theme, target readers, and core viewpoints.
Material stage: junior editors use AI to organize material summaries, and source links must be retained.
Outline stage: senior editors determine the article structure and main viewpoints.
First draft stage: AI assists in generating paragraph drafts, and the author is responsible for judgment and rewriting.
Review stage: use the fact-checking checklist, brand tone checklist, and sensitive expression checklist.
Reuse stage: split long articles into short video scripts, community short posts, and sales pitches.
Review and retrospective stage: operations and data analysis collect reading, conversion, and completion rate data weekly.
Suggested role division:
Content lead: determines topic priorities, reviews core viewpoints, and approves publication.
Senior editor: responsible for article judgment, outlines, and final revisions.
Junior editor: responsible for material organization, first draft generation, and source annotation.
Short video director: splits long articles into scripts, voice-over scripts, and storyboards.
Designer: responsible for visual style, cover images, and infographics.
Operations: responsible for publication scheduling, distribution channels, and organizing comment feedback.
Data analysis: responsible for performance tracking, monthly reports, and topic suggestions.
Risk control requirements:
All facts, data, and citations must be manually reviewed.
AI-generated content cannot be published directly.
When customer names, contract information, or sales data are involved, they must not be entered into public AI tools.
Product capability descriptions must be confirmed by product or pre-sales.
Content in sensitive industries such as healthcare, finance, and law requires additional review.
All AI-generated images must be checked for copyright and commercial use risks.
The final viewpoints of an article must be confirmed by the author personally; AI conclusions alone cannot be adopted.
Budget:
The pilot phase budget is 90,000 yuan, with a period of 3 months.
Budget breakdown:
AI tool accounts: 30,000 yuan.
Internal training and prompt template development: 20,000 yuan.
Knowledge base organization and workflow configuration: 15,000 yuan.
Design and video assistance tools: 15,000 yuan.
Reserved funds: 10,000 yuan.
Schedule:
Week 1: Confirm the pilot scope, select tools, and set up account permissions.
Week 2: Organize commonly used prompt templates and review checklists.
Weeks 3 to 4: Select two content types, WeChat official account articles and customer cases, for a small-scale pilot.
Weeks 5 to 8: Expand to short video scripts and sales materials, and begin weekly reviews.
Weeks 9 to 10: Adjust the workflow based on data and supplement risk control rules.
Weeks 11 to 12: Form a formal SOP, output a pilot report, and provide budget recommendations for the next phase.
Pilot scope:
The first phase covers only 4 content types:
In-depth WeChat official account articles.
Customer cases.
Short video scripts.
Sales support materials.
Temporarily excluded:
Executive bylined articles.
Major brand launch press releases.
Content involving undisclosed customer data.
Industry reports with relatively high legal risk.
Metrics:
Monthly content output volume.
Average production cycle per piece of content.
Time spent organizing materials.
First draft rework rate.
Number of headline revision rounds.
7-day read completion rate after publication.
Sales team ratings of material usability.
Number of issues found in AI content review.
Expected results:
After the 3-month pilot, the content team should have formed a reusable AI workflow. AI mainly handles material organization, structural drafts, headline alternatives, content reuse, and preliminary data screening. Core viewpoints, fact-checking, customer expression, and final publication decisions remain the responsibility of humans.
In terms of task requirements, it meets the standard. It can be seen that the understanding of the project content is very thorough, and the aesthetics are also fairly acceptable. It can already be used, and with a little more fine-tuning by hand, it can be taken directly for reporting.
02. Some Sharing
After testing GLM-5.2, it feels like the previous rankings may really have no fluff. I think the task results are all very impressive, at the top level of domestic models. Not only can it run and be used, it is also comfortable to use.
Back when I was working, organizing materials, writing the first draft of code, building pages, structuring PPTs, and creating test cases all had to be polished bit by bit. Now these can be handed to a model to run a first pass, and people can put their energy back into judgment and trade-offs.
My assessment of GLM-5.2 is: high ceiling, and stable completeness too. It is already worth putting into daily workflows for serious trial use. As for whether it can stay long term, that still depends on how the model performs in details, stability, and cost during high-frequency use over the next few weeks.
When connecting to the API in the future, it may be impossible to tell whether what is connected is GLM-5.2 or Claude oups.
Original link:GLM-5.2 hands-on test: Chinese models have really reached the first tier