Generating units, categories and attributes
Three modules, three generators, one pattern. Each stages its output for review before anything is written.
| Screen | Button | Permission |
|---|---|---|
| Units of measure | AI Suggestions | Generate Unit of Measurement using AI |
| Product categories | AI Suggestions | Generate Product Category With AI |
| Product attributes | AI Generate | Create Attributes with AI |
1. Units of measure
Describe the business; the generator proposes the units that business counts in. A cloud kitchen gets plates, bowls and portions alongside the metric basics.
Discover on the same screen scans your existing data for unit codes already in use but not formally defined, and adds them. It costs no credits. Try it before generating.
2. Product categories
Proposes a classification tree from a description of what you sell.
The generator proposes categories; it does not reliably build a hierarchy for you. Expect to set parents yourself on the category screen afterwards.
3. Product attributes
Proposes attributes with their values — Spice Level: Mild / Medium / Hot / Extra Hot. This is the generator with the highest hit rate, because option sets are conventional within an industry.
Check two things on every generated attribute before approving:
| Check | Why |
|---|---|
| The technical code | It is the stable handle for analytics and the API. Generated codes are usually sensible but rarely match an existing convention |
| It has ≥ 2 values | A single-value attribute produces no meaningful variation |
4. The review step
All three generators show their output before writing. Approve the rows you want, discard the rest.
There is no second confirmation. An approved unit is a unit — it appears in every dropdown at once. Removing it afterwards is a delete, not an undo, and anything already pointing at it keeps pointing.
5. Troubleshooting
| Symptom | Cause |
|---|---|
| No AI button | Missing …createwithai, or the AI utility is not entitled for the org — see the three gates |
| Output is generic | The business description was generic. Name your actual products |
| A generated language is invisible | The list screens show Bengali / English / Hindi only |
| Generation failed after spending credits | Retry; the cost of a failed call is not automatically refunded |
| Categories arrived without nesting | Expected — set parents by hand |