Hi all, we have been building a WhatsApp ordering bot for restaurants for four weeks (self-hosted n8n, PostgreSQL, Azure OpenAI gpt-6-luna, WhatsApp Cloud API). It takes text and voice notes, suggests a meal that fits the budget, builds the cart, offers an add-on and hands over to payment. It is still not stable, and I would like your honest opinion on the architecture. HOW IT WORKS TODAY 1. WhatsApp webhook -> short collect window -> voice notes are transcribed. 2. Names and addresses are replaced by placeholders before the LLM sees the text. 3. ONE LLM call per message, with a system prompt of about 25,000 characters (about 13,000 input tokens) and a strict JSON schema. This single call has to understand the guest, decide what is missing (people, budget, preferences), propose a plan, change the cart, pick an add-on and write the reply. 4. PostgreSQL functions then validate everything (prices, cart, required choices, evidence for each decision). If validation fails, there is one correction call to the model. If that fails too, the guest gets a fallback message. 5. The conversation state (draft order) is stored per chat for 24 hours. WHAT GOES WRONG - Every fix moves the failure somewhere else: eight different break points in about 15 hours. Examples: the output shape was rejected. The model treated "suggest something" as "no preferences". A menu item called "Käse" was masked as a person's name. A price function raised an exception and the guest got "technical error". After that fix, the bot asked for the delivery mode again although it was known. - Old state leaks: a wrong assumption from an earlier message is stored and reused hours later. - It works on our four scripted test messages and fails on the first free-form real message. - Speed: a voice note takes 25 to 30 s until the reply (about 10 s until it is transcribed, about 8 s of preparation before the model call, 5 to 9 s for the model, plus 8 to 9 s if a correction call is needed). Text takes 12 to 21 s. Our goal is 10 s.