The 8-block structure I use for restaurant AI phone agent prompts, feedback wanted

Reddit r/AI_Agents News

Summary

A user shares an eight-block structure for crafting prompts in restaurant AI phone agents, emphasizing key insights like external knowledge bases and tool-result guardrails to improve reliability.

I build voice agents that answer restaurant phones, take bookings, handle collection orders, deal with allergen questions. After enough of these, the prompts converge on the same shape regardless of platform (Vapi, ElevenLabs, Retell, whatever), so I wrote it up as eight blocks: identity, context, personality/tone, response rules, tasks/workflows, tools, guardrails, examples. A few things that mattered more than I expected going in: Keeping facts out of the prompt. Menu, hours, prices, today's sold-out items, all of that goes in a knowledge base the agent reads from, not baked into the prompt text. Otherwise every price change risks a behavioral regression somewhere else in the prompt. The tool-result guardrail. "Never confirm a booking, change, or order that the tool did not return as successful" sounds obvious written down, but it's the single guardrail that prevents the worst failure mode, an agent confidently confirming a table that doesn't exist because it treated a tool error as success. Order matters. Guardrails go near the end and get repeated, because rules stated once tend to get skipped near the end of a long call. Identity and context go first so the model knows who it is before what to do. Curious what this sub would add or do differently, especially anyone who's shipped voice agents for other verticals. What guardrail bit you that isn't obvious until it breaks?
Original Article

Similar Articles

Prompting fundamentals

OpenAI Blog

OpenAI Academy guide on prompting fundamentals that teaches users how to write clear, effective prompts to get better responses from ChatGPT through techniques like being specific, adding context, specifying output format, and breaking down complex tasks.