Skip to main content

Generating units, categories and attributes

Three modules, three generators, one pattern. Each stages its output for review before anything is written.

ScreenButtonPermission
Units of measureAI SuggestionsGenerate Unit of Measurement using AI
Product categoriesAI SuggestionsGenerate Product Category With AI
Product attributesAI GenerateCreate Attributes with AI

1. Units of measure​

Figure 1 — The unit generator.

Describe the business; the generator proposes the units that business counts in. A cloud kitchen gets plates, bowls and portions alongside the metric basics.

Units have a second, cheaper option

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​

Figure 2 — The category generator.

Proposes a classification tree from a description of what you sell.

Generated categories arrive flat unless the tree already exists

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​

Figure 3 — The attribute generator.

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:

CheckWhy
The technical codeIt is the stable handle for analytics and the API. Generated codes are usually sensible but rarely match an existing convention
It has ≥ 2 valuesA 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.

Approving writes real records immediately

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​

SymptomCause
No AI buttonMissing …createwithai, or the AI utility is not entitled for the org — see the three gates
Output is genericThe business description was generic. Name your actual products
A generated language is invisibleThe list screens show Bengali / English / Hindi only
Generation failed after spending creditsRetry; the cost of a failed call is not automatically refunded
Categories arrived without nestingExpected — set parents by hand