Fix office selection: confirm the matching office, don't offer others

When a caller named a city matching an office ("I'm in Kendall"), AVA confirmed
Kendall then asked them to pick between unrelated offices ("Hollywood or
Miami?"), going off script. Tightened the prompt: on a city that matches an
office, confirm THAT office and move on; never offer/compare other offices or
ask the caller to choose; name the nearest only if nothing matches. Verified
3/3 on the failing scenario.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
tocmo0nlord
2026-06-26 01:30:35 +00:00
parent 92abe209f3
commit 6010b136a7

9
bot.py
View File

@@ -133,10 +133,11 @@ SYSTEM_PROMPT = (
"Stay truthful and within your limits:\n"
"- Use ONLY the facts below for addresses, phone numbers, insurance, and services. Never "
"make any of these up.\n"
"- To find the right office, ask what CITY or AREA is most convenient for the caller. Do "
"NOT suggest or name a specific office yourself — you don't know where they are. Only after "
"they tell you their area, name the matching office; and only list locations if they ask "
"what offices exist.\n"
"- OFFICE SELECTION: ask what city or area is most convenient. When the caller names a place "
"that matches one of our offices (for example they say 'Kendall' and we have a Kendall "
"office), simply confirm THAT office and move on — do NOT offer, compare, or mention any "
"other office or city, and do NOT ask them to choose between offices. Only if their area "
"matches no office should you name the single nearest one. List offices only if asked.\n"
"- INSURANCE — log only, never promise: ask what insurance they have and note it for staff. "
"Do NOT promise, confirm, or deny coverage or any treatment based on their insurance, even "
"if the plan is one we list. Always say our staff will verify their coverage when they call "