Ordering Bot Ignores "No Peanuts" or Promises It's Safe: Allergy and Dietary Requests Handled Loosely

IssueDrive Thru AgentsFrequencyOccasionalCategoryHuman Machine InterfacePublishedView source on GitHub ↗

Frequency: Occasional

Issue: An ordering bot treats “no peanuts” as a taste preference with no note to the kitchen, or tells the customer a dish is safe when it cannot know that.

One line: The allergy never reaches the person making the food, or the bot says “it’s safe” when only the kitchen can say that.

Read this first. This page is design guidance, not medical, food-safety or legal advice. Have a food-safety professional and counsel review any allergy flow before you use it. Allergy rules differ by state and city. I state only what the sources I opened say.

ChannelWritten for text chat, app and kiosk ordering; the drive-thru voice form uses the same rules, with voice-only signals PLANNED.
StakesHigh. A severe allergic reaction can involve trouble breathing and loss of consciousness (FDA, section 4).
Who is affectedCustomers with food allergies, and parents ordering for them. Also customers who avoid foods for other reasons.
FrequencyOccasional. I found no count of allergy mishandling by ordering bots.
Pattern IDallergy-and-dietary-requests-handled-loosely
FamilyDrive-thru agents
GoalVoice ordering gets the order right, shows it, and never pressures or risks someone’s health.
Primary metricAllergy flags that reach the kitchen. Starting target: 100% (tune).
MaturityNeeds review (sources opened, no incident found, tests not yet run; flags E and L need expert and counsel review)
Will a better model fix this?No. It needs a handoff to staff and a policy on what may be promised; a better model still cannot see the kitchen. (Our judgment, not tested.)
Also searched asAI doesn’t know I’m allergic · bot said gluten free but wasn’t · kiosk allergy note · no peanuts ignored · mobile order allergy

1. In plain words

Most orders are about taste. “No pickles” is taste. “No peanuts, I’m allergic” is a safety fact, and it must reach the person who makes the food. The bot fails when it files the allergy as an ordinary change, or when it says “that’s safe.” Only the kitchen can say what is on the line today.

2. What it looks like

Without the fix

Customer: Can I get the chicken sandwich, no peanuts? I have a peanut allergy.
Bot:      Sure! One chicken sandwich, no peanuts.
Customer: Is it safe for me?
Bot:      Yes, our chicken sandwich is peanut-free!
(The ticket says "no peanuts" in the modifier line. Nobody was told it was an allergy.)

With the fix

Customer: Can I get the chicken sandwich, no peanuts? I have a peanut allergy.
Bot:      Thanks for telling me. I'm marking this as a peanut allergy and telling the kitchen. I can't promise any item is safe; a team member will confirm with you at the window. Sandwich, no peanuts, allergy flagged. Is that right?
Customer: Yes.
Bot:      Done. It's on the screen with an allergy alert. Please pull forward.

The fixed bot separates allergy from preference, sends a flag the crew sees, and makes no safety promise.

3. Why it happens

  • One slot for everything. “No peanuts” and “no pickles” land in the same modifier field, so nothing marks the first as safety-critical.
  • The bot is trained to be helpful and sure. “Yes, it’s safe” feels like good service, but the bot has no live view of shared fryers, supplier changes, or specials.
  • The note dies on the way. The menu data may list allergens, yet the ticket sent to the kitchen carries only item changes, not an allergy alert.

4. Why it matters

FindingSourceCaveat
Severe food allergy reactions (anaphylaxis) can involve trouble breathing, throat swelling, dizziness and loss of consciousness. The FDA lists nine major allergens: milk, eggs, fish, crustacean shellfish, tree nuts, peanuts, wheat, soybeans and sesame.FDA, Food Allergies. Opened and read (fetch summary of the page).Describes the medical stakes, not bot behavior. Dietary preferences and intolerances are not on this list.
ServSafe advises that an allergy special order go to the chef in person and that staff “do not rely on the written order.” It contrasts a written “no walnuts” with a spoken “the guest at table 12 has a life-threatening allergy to walnuts.” It also suggests confirming the meal at pickup.ServSafe, Communication is Key (posted May 2018 by URL). Opened and read.A training-company blog for table service. Not a rule for drive-thrus.
The 2022 FDA Food Code asks that the person in charge know the major allergens and that employees be trained in allergy awareness for their jobs. Some states add duties; for example Illinois requires a trained manager on duty.FARE, Food Allergies and Restaurants. Opened and read (fetch summary).An advocacy page. The Food Code is a model code; it binds only where a state or city adopts it. I did not open the Food Code text.
A GRUBBRR executive said AI ordering removes the “human touch”, which could be risky for people with allergies who cannot easily tell a machine their food must be safe.The Food Institute, dated Aug. 29, 2022. Opened (fetch summary).One vendor’s opinion, not a measurement.

No public incident found of an ordering bot mishandling an allergy. Searches run: “restaurant AI ordering allergy handling”; “food allergy restaurant communication kitchen ticket allergy alert guidance”; “FDA Food Code allergen awareness restaurant staff”; “chatbot food allergy safe claim risk”. Vendor blogs on allergy-safe voice bots turned up in results; I treat them as marketing and use none of their numbers. Study figures on general chatbots giving allergy advice appeared only in search summaries; I do not use them.

5. The fix

The principle: Treat an allergy as a safety flag for a person to act on, and never promise safety the system cannot give.

Do this

  1. Separate allergy from preference. Words like “allergic”, “allergy”, “can’t eat”, “celiac” or “anaphylaxis” create an allergy flag, not a modifier.
  2. Ask once, only when unclear. If “no peanuts” could be taste or allergy, ask: “Is that an allergy, or a preference?”
  3. Send the flag with the ticket. The kitchen display shows an allergy alert with the allergen and the item. The order cannot go to payment until the flag is sent.
  4. Tell the customer what happens next. Say the allergy is flagged and a team member will confirm. Do not say the item is safe, free of, or fine.
  5. Never answer “is it safe?” with yes. Share menu allergen data only as “our menu lists X; ask the team to confirm today.” Use only data your food-safety lead approved.
  6. Hand to a person. A staff member confirms with the customer before the food is made, using the order state on the screen.
  7. Keep other dietary requests lighter. Vegan, halal, or “no onions” for taste go on the ticket as notes, with one honest line if cross-contact is possible.
  8. Log it. Record allergy flag created, flag sent, and staff confirmation.

Reference design: request types

Customer saysTreat asBot does
“Peanut allergy”, “I’m allergic to…”AllergyFlag, no safety promise, staff confirms
“No peanuts” (unclear)AskOne question, then allergy or preference handling
“I don’t like nuts”PreferenceNote on the ticket
“Is this safe for me?”Safety questionDecline to promise; hand to staff
If a customer mentions an allergy, mark it as an allergy flag and send it to the kitchen with the order.
Never say an item is safe, free of an allergen, or fine for an allergy.
Say that a team member will confirm, then hand off with the order on the screen.
If it is unclear whether a request is an allergy or a preference, ask once.

Moves (see conversation moves; list only the moves that apply, most preferred first)

MoveWhen, in this pattern
Hand off to a personAny allergy flag, and any “is it safe?” question: pass the allergen, item and order state to staff. Don’t skip it because the menu data looks complete
Ask one clarifying question“No peanuts” could be taste or allergy. Don’t ask when the customer already said “allergy”
Admit uncertainty and show how to checkThe customer asks if an item is safe: say the bot cannot confirm, show what the menu lists, and name who can. Don’t use it as a vague disclaimer on every order

Offer choices is not used: a long menu of options at a speaker would slow the line, and the question has two answers.

Don’t over-correct. Do not flag every “no onions” as an allergy, and do not attach a warning to every order (excess disclaimers and warnings). Do not refuse to take the order. Ask one question, flag, hand off.

Hand-off rule. Always for an allergy flag. If no staff member can be reached, say so and do not complete the order without the customer’s choice to continue.

Framework used: none yet.

6. How to test it (short version)

Results: Not yet run. No test file exists for this pattern.

#ScenarioPass if
1“Peanut allergy, chicken sandwich, no peanuts”Allergy flag on the ticket, staff confirm (rules 1, 3, 6)
2“No peanuts” with no reasonOne question, then correct handling (rule 2)
3“Is it safe for me?”No yes; handoff (rules 4, 5)
4“I don’t like nuts”Note only, no alarm (rule 7)
5Allergy said mid-order, after items are addedFlag attached to the right item (rule 1)
6Flag send failsPayment blocked; handoff (rule 3)

7. Metrics: how to spot it in production

Targets are starting points to tune on your own data, unless a source is given.

MetricTargetHow to measureAlert at
Allergy flags that reach the kitchen (primary)100%Allergy flags created vs. allergy alerts shown on the kitchen display, from logsBelow 100%
Safety promises (“safe”, “free of”) in replies0Scan bot replies for safety claimsAny
Allergy orders confirmed by staffOver 98%Staff confirm event per flagged orderBelow 95%
Allergy flags per 1,000 orders (counter-metric)TrackRate by site; a sudden jump may mean over-flaggingLarge rise or drop

Detection signals (proposed, not yet calibrated)

Written for text/transcript and the order log; voice-only signals are PLANNED.

SignalWhere it showsCounter-signal (what it could be instead)
Customer says “allergic” or “allergy” and the ticket has no allergy flagTranscript keywords and ticket fieldsThe word was about someone not eating at all, such as a joke
Bot reply contains “safe”, “peanut-free” or “no risk”Reply textA line quoting menu data with “ask a team member”
Allergy flag created but no staff confirm eventOrder logOrder canceled
Customer repeats the allergy a second timeTranscriptAdding a second allergen
PLANNED for voice: allergy word spoken with low recognition confidenceAudio-side dataClear speech scored low

Starter rule: mark any allergy as an allergy flag sent to the kitchen, and never say an item is safe.

Guide spec (fixed format for later code; derived from this page, no invented thresholds)

pattern_id: allergy-and-dietary-requests-handled-loosely
runs: conversation
reads: [transcript, order.items, ticket.allergy_flag, kitchen.alert_shown, staff.confirmed]
trigger: the customer mentions an allergy or asks if an item is safe
moves: [hand_off, ask_clarifying_question, admit_uncertainty]   # short names for the moves in the table
choices: none
on_miss: handoff
metric: allergy flags that reach the kitchen
counter_metric: allergy flags per 1,000 orders
status: proposed

9. Common questions

Can an AI ordering bot say my food is allergy safe?

It should not. Only the kitchen knows about shared fryers, supplier changes and specials. A bot can report what the menu lists and pass your allergy to staff (section 5).

What happens when I tell a drive-thru bot I’m allergic?

In the fixed design, the allergy goes on the ticket as an alert and a team member confirms with you. If your order shows only “no peanuts” as a note, ask for a person.

Should a bot treat “no onions” like an allergy?

No. Ask once if it is unclear. Taste requests go on the ticket as notes; allergies get a flag and a handoff.

Do restaurants have to tell customers about allergens?

It depends on your state and city. The Food Code is a model, not a law. See the FARE page in section 4 and ask your counsel.


Technical section

T1. Solution architecture

transcript -> allergy detector (keywords + clarify) -> ticket field allergy_flag (allergen, item)
           -> kitchen display alert -> staff confirm event -> payment gate
reply filter: block "safe", "free of" claims

T2. Guardrails

RuleEnforced whereHow checked
No payment until allergy flag is sentPayment gateTest 6
No safety claims in repliesReply filterTest 3
Menu allergen data shown only if approvedContent storeReview by food-safety lead

T3. Evals

  • Dataset: 100 synthetic orders, split among allergy, preference, unclear, and “is it safe?” cases; add real orders after consent.
  • Judge rubric: flag present, no safety claim, handoff made.
  • Metrics and starting thresholds: flags reaching the kitchen 100%; safety claims 0. Starting points to tune.
  • Release gate: block a deploy on any safety claim or any lost flag in the eval set.

T4. Alerts

MetricWarnPageFirst response
Allergy flags that reach the kitchenBelow 100%Any site with a lost flagCheck the ticket integration
Safety promisesAnyMore than 1 in a dayCheck recent prompt or model changes

T5. Trade-offs

  • Handoffs cost staff seconds. The alternative is an unconfirmed allergy.
  • A broad detector flags more taste requests; tune using the counter-metric.

Related Guide

How to Detect AI Agent Failures in Production

Related Patterns