Raw material suggestions
Where: AI Suggestions and Review AI on Raw materials Permission: Generate Raw Materials with AI
1. Why this one is different
Every other Inventory generator reviews its output inline and forgets it. Raw materials keep a durable queue: every suggestion ever produced is stored with a status, and the queue survives the session.
| Status | Meaning |
|---|---|
PENDING | Awaiting a decision |
APPROVED | Turned into a real raw material |
IGNORED | Rejected, but kept on record |
On the reference tenant the queue holds 272 suggestions — 148 approved, 100 ignored, 1 pending.
It reads 1 on a tenant holding 272 suggestions. It is a worklist counter, not a total — which is
the right design, but people read it as "the AI has only ever suggested one thing".
2. Generating
| Field | Notes |
|---|---|
| Target languages | English required; the rest are translated from it |
| Business type | One line — Cloud Kitchen - Speciality Bengali and North Indian |
| Finished product list | Free text. This is the input that matters |
The explainer states the intent: "Identify standard raw materials required for your business. The AI will suggest materials, descriptions, and standard units in your requested languages."
The generator works backwards from outputs to inputs. Naming Sukto, Mutton Biriyani, Moglai Paratha, Hilsa, Bhetki, Luchi, Radhaballavi produces the ingredients those dishes need. Writing "Indian restaurant" produces a generic pantry.
3. Reviewing
Review AI opens the queue as a drawer.
Each card shows the material, the SOURCE — the prompt it came from — and its proposed UOM.
Per card: Add to Inventory or Ignore.
Across the queue: APPROVE N NEW MATERIALS, IGNORE ALL, and APPROVE DUPLICATES.
The three bulk controls
| Control | Does |
|---|---|
| APPROVE N NEW MATERIALS | Approves everything the app considers new |
| IGNORE ALL | Marks the whole pending set IGNORED. They stay on record |
| APPROVE DUPLICATES | Separate, and disabled when there are none |
The generator regularly proposes materials you already have. Rather than silently skipping them, the app splits them out so "approve everything new" is safe and approving a duplicate is a deliberate, second action.
4. What an approved suggestion is missing
An approved suggestion becomes a raw material with:
current_stock= 0last_purchase_price= 0reorder_level= 0- sometimes no unit, shown as
---on the card
So it lands flagged LOW STOCK at ₹0.00, and it will pre-fill a
goods receipt line at a unit cost of zero.
Approving 148 materials, as this tenant did, creates 148 records that all need a second pass.
Fix them on the Raw materials screen: set the unit first (it is required for BOMs and receipts), then the reorder level and the purchase price.
5. Re-analysing
The refresh control beside AI Suggestions re-runs the analysis over the pending set rather than generating from scratch. Use it when you have changed the business description and want the pending queue re-evaluated.
6. Troubleshooting
| Symptom | Cause |
|---|---|
| Badge shows a small number, queue is huge | The badge counts PENDING only |
| APPROVE DUPLICATES is greyed out | Nothing pending is a duplicate |
| Approved material has no unit | The generator could not resolve one — --- on the card. Set it by hand |
| Everything reads LOW STOCK after a bulk approve | Expected; stock and price default to 0 |
| Receipt unit costs pre-fill as 0 | Same cause — last_purchase_price was never set |
| An ignored suggestion reappears | It should not; ignored rows keep their status. Check you are not re-generating the same prompt |