- persona_prompts OPENER RULE: openers must be a direct question OR declare
interest ('สนใจ/สอบถาม'); explicitly forbid 'ลองดู / ลอง / มาลอง / แค่มาดู /
กดดู / แวะดู' (trying/browsing) phrasing which Thai customers don't use
- fix_openers.py: rewrite browse/try openers into a polite natural interest
opener ('สวัสดีครับ/ค่ะ สนใจสอบถามสินค้าครับ ขอรายละเอียดได้ไหม'), leaving
openers that already ask a question or say สนใจ untouched
- persona_prompts OPENER RULE: never open with dots/ellipsis and never end
an opener by dismissing/belittling the product (but ไม่คิดจะซื้อ, แค่มาดูเล่น,
ก็แค่มาเมิน, ไม่ได้จะซื้อ...) — Thai openers stay politely interested
- fix_openers.py: strip leading dots("..") and remove trailing dismissive
clauses ('ตามไม่คิดจะซื้อหรอกนะ' etc.) so existing personas are normalized
to a natural interest opener; update docstring
Deterministic, conservative: only rewrites openers that lead with a casual
interjection (เฮ้/เอ้/เอ่อ/เอ๊ะ/อืม/เออ/นี่ๆ/ว่าไง/hey/hi/hiya/yo) or a bare
politeness word (ครับ/ค่ะ). Leaves natural Thai and English openers untouched.
Prints before -> after. Run in the container console:
cd /app/backend && python3 scripts/fix_openers.py