Nutrition Admin Flow

Pillar 2 of 11 · Specs · Allergens · Nutritionals · BOM swap · 6 tools · Single-model · R2 PDFs linkable

01 User Input 02 Routing & Pre-checks 03 Tool Layer 04 Spec Sources 05 Response User Question "Is RS7245 peanut-free?" Pillar = nutrition_admin R85 ROLE_FILTERS · spec scope Intent classifier allergen_disclosure · review_spec_she… Decision Few-shot R89 · spec precedents PII / Off-topic R75-D guardrails get_spec_sheet + get_item_attribute_validated list_items_by_claim + get_annotation Single-model council_mode=single (faster) spec_items (curated) human-reviewed baseline items (NS mirror) live attributes R2 spec PDFs signed-URL links Citations API spec sheet + PDF link Response claim verdict + source PDF ai_audit_log + chat_messages Legend User UI Worker / agent D1 table / store CF binding Tool / action External system Policy / gate

Tools available (6)

  • • get_spec_sheet
  • • get_item_attribute_validated
  • • get_spec_versions
  • • list_items_by_claim
  • • get_annotation
  • • list_contacts

Canonical patterns

  • • review_spec_sheet
  • • allergen_disclosure
  • • nutritional_impact
  • • switch_bom_item
  • • update_spec_ingredient

Source ranking

  • • spec_items (curated) authoritative
  • • items (NS) for live attributes
  • • R2 PDFs for source-of-truth document
  • • Annotations for human override notes