Complete AI Training
Sign inGet my AI kit

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

AI agent for food scientists

Nutrition Label Calculation Agent

Accurate, compliant nutrition and allergen labeling for each formula version

Nutrition Label Calculation Agent: what goes in, what the agent does and what you get

What it does

Every recipe change means a new nutrition panel, ingredient list and allergen statement, and a mistake can lead to a recall. When a formula is created or changed, this agent pulls nutrient and allergen data for each ingredient, using supplier specs before database values. It calculates per-serving values, adjusting for moisture lost during cooking. It applies the label rounding rules for your market and builds the ingredient list in weight order, declaring allergens from sub-ingredients too. When lab analysis is available, it compares results. If the difference is above tolerance, it checks ingredient data and loss factors and recalculates. The food scientist and regulatory staff approve the label before it goes to packaging. Edge case: a seasoning blend containing wheat is caught and declared, even though wheat is not a main ingredient.

How it works

Follow the arrows from top to bottom. The orange dashed arrow is the loop: when a check fails, the agent goes back and tries again.

Start and resultWhat it doesA check on its own workWaits for your OKGoes back and retries
Yes, continueApprovedNo 1 STARTS WHEN Formula created or changed 2 USES A TOOL Pull nutrient and allergen data for each ingredient 3 DOES Calculate per serving values with cooking losses 4 DOES Apply rounding rules and build ingredient andallergen list 5 USES A TOOL Compare with lab analysis if available 6 CHECKS THE RESULT Do calculated values match lab results withintolerance? If not: check ingredient data and loss factors, thenrecalculate. Back to step 2. 7 YOU APPROVE Food scientist and regulatory approve the label 8 RESULT Label file released to packaging
Read the steps as a list
  1. Formula created or changed
  2. Pull nutrient and allergen data for each ingredient
  3. Calculate per serving values with cooking losses
  4. Apply rounding rules and build ingredient and allergen list
  5. Compare with lab analysis if available
  6. Do calculated values match lab results within tolerance?If not: check ingredient data and loss factors, then recalculate. Back to step 2.
  7. Food scientist and regulatory approve the labelThe agent waits here for your OK.
  8. Label file released to packaging

How it decides

It uses supplier data first, then databases, applies market rounding rules, and flags differences from lab results above tolerance.

  • Use supplier spec values before database values
  • Declare allergens from sub-ingredients
  • Flag lab differences above tolerance

Make it yours

Every agent is a starting point. You choose these settings for your own situation.

  • Market labeling rules
  • Lab tolerance (default 20%)
  • Data source priority
  • Label output format

What keeps you in control

It always asks you first

  • Releasing label artwork data

Hard limits

  • Never releases labels without approval
  • Never guesses allergen status

It stops when

  • Done: label approved
  • Stop: supplier spec missing for an ingredient; request it

Set it up

We guide you through the set-up, step by step

Members get the full set-up guide for this agent. No technical skills needed: you copy, paste and upload.

10 minto set it up in your AI
5 AIsChatGPT, Claude, Copilot, Gemini, Grok
  • One set of instructions to paste into your AI, with the clicks for ChatGPT, Claude, Microsoft 365 Copilot, Gemini and Grok
  • The agent then walks you through connecting your own data, one source at a time
  • A downloadable copy with the flow chart, the rules and the full guide
Get access to this agent

An example run

What happensA reformulated cracker launched on March 30 cut sodium. The calculated value was 180 mg per serving, but the lab showed 230 mg, outside the 20% tolerance. The agent checked inputs and found the cheese powder spec was two years old. With the current spec, sodium came to 225 mg, matching the lab. The allergen list added milk from the powder. Regulatory approved the label.

More agents for food scientists