How to Use AFCD nutrient definitions in n8n
Returns AFCD's nutrient catalog and definitions. Use it to check what a nutrient means and which units apply before comparing foods.
Prompts to try with AFCD nutrient definitions in n8n
Copy an example into n8n, or ask in your own words.
Each quarter, use AFCD nutrient definitions to review iron, sodium, and vitamin D entries and report changed definitions or units.
Every Monday at 9am: use AFCD nutrient definitions to look this up and give me the result as a table.
Pull the latest numbers from AFCD nutrient definitions and tell me what changed since last week.
Check AFCD nutrient definitions and summarize what you find in three bullet points.
Pull the newest data from AFCD nutrient definitions and give me the result as a table.
How to set up AFCD nutrient definitions in n8n
Pick the way that suits you. Each takes about two minutes.
Use the Spiral skill
- Send n8n this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use Spiral's MCP server
- Create a key
Create a key under API keys in the console.
- Add an MCP Client node
In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:
https://api.spiral.ai/mcp
- Pick a tool
The node lists Spiral's tools. In an MCP Client node pick one, such as run, and give it its arguments:
{ "provider": "fal", "model": "fal-ai/flux/schnell", "input": { "prompt": "a lighthouse at dawn" }, "wait": true } - Run AFCD nutrient definitions in a workflow step
Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds AFCD nutrient definitions, prices it and runs it each time the step fires.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run AFCD nutrient definitions
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "afcd-foodstandards-gov-au/foods/list_nutrients", "input": { "query": "<query>" } }'
Then paste one of the prompts above: n8n finds AFCD nutrient definitions on Spiral, shows the price and runs it.
AFCD nutrient definitions providers and prices
Spiral runs AFCD nutrient definitions through Alexandria. Open a card for today's price, with every fee included.
What can you do with AFCD nutrient definitions in n8n?
Keep an Australian food reference collection ready for editorial or product review. A scheduled agent can compare AFCD categories, definitions, and selected food records across retrievals and report the differences.
Compare breakfast cereals
Identify the ready-to-eat cereal category, list its foods, and resolve named cereals. Check nutrient definitions, rank the entries by iron, and inspect the selected food profiles and sampling notes.
Build a cheese reformulation reference
Find AFCD's cheese categories and enumerate the reference foods. Match named cheese types, check sodium definitions and units, then compare sodium values and inspect the underlying profiles.
Create an Australian food reference browser
Use the category hierarchy and category inventories for navigation, food search for lookup, nutrient definitions for explanations, nutrient comparisons for sorting, and individual profiles for the detail view.
Explain nutrient terminology with food examples
Build an explanation of AFCD nutrient terms using the definitions, foods with reported values, and selected full profiles. Keep each nutrient's units visible alongside the examples.
Review changes to a food reference collection
Periodically compare retrieved categories, food inventories, nutrient definitions, rankings, and selected profiles with earlier observations. Produce a review queue when AFCD descriptions or values change.
Compare food preparation descriptions
Find raw and cooked food entries, examine their descriptions, and compare selected nutrients using the documented definitions. Keep preparation differences explicit when presenting the results.
More on AFCD nutrient definitions and n8n
Overview
AFCD nutrient definitions in other agents
Questions about AFCD nutrient definitions in n8n
Can n8n use AFCD nutrient definitions?
Yes. Add Spiral to n8n as an MCP server, and n8n can find and run AFCD nutrient definitions like any built-in tool.
How much does AFCD nutrient definitions cost in n8n?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.
Do I need an Alexandria account to use AFCD nutrient definitions in n8n?
You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs AFCD nutrient definitions on its own Alexandria account.
How long does it take to set up AFCD nutrient definitions in n8n?
About two minutes: create a key, then add an MCP Client node, then pick a tool.
Does n8n wait while AFCD nutrient definitions runs?
AFCD nutrient definitions runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.
Which foods does AFCD cover?
AFCD covers 1,588 foods commonly available in Australia. Its coverage is a reference selection of Australian foods, rather than a complete inventory of products sold worldwide.
How many nutrients can AFCD describe?
AFCD reports up to 268 nutrients per food. The nutrient documentation explains the units, derivation, assumptions, and limitations used for those components.
What changed in the latest AFCD dataset?
Release 3 incorporated new analytical data for 118 foods and an updated vitamin D dataset. That update describes the dataset as a whole; individual sampling notes provide the evidence behind a particular food.
Are all AFCD values laboratory measurements?
Laboratory analysis is the primary source, but a food's derivation can also identify calculated, borrowed, or label-based data. Sampling notes can include how many samples were purchased and where and when they were purchased.
Are nutrient comparisons based on serving size?
AFCD's nutrient comparison tables report values per 100 g. A ranking therefore compares equal food weights, which can differ substantially from the amounts someone would serve.
Start using AFCD nutrient definitions in n8n
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into n8n:
set up https://spiral.ai/SKILL.md


