SOLUTION
AI โซเชียล · ตัวละครคอมแพเนียน
แชทกับตัวละคร 1-on-1 ห้องตัวละครหลายตัว โมเมนต์ เศรษฐกิจของขวัญและรั้วความปลอดภัย — self-host ครบชุด
The challenge
การทำผลิตภัณฑ์ AI คอมแพเนียนต้องพร้อมทั้งฐาน IM เอนจินตัวละคร ความจำ ความปลอดภัยตามข้อกำหนด และการสร้างรายได้ — สร้างเองตั้งแต่ต้นใช้เวลาอย่างน้อยหกเดือน แถมยังตามจังหวะพัฒนาของแพลตฟอร์มไม่ทัน
Engine architecture built for character social
| Design point | How it works | What you get |
|---|---|---|
| Character engine | Persona + long-term memory + relationship summaries, one runtime per character | Characters remember and have personality — not stateless prompts |
| Auto-banter | After a reply, the floor passes to another character (random pick), capped by depth + budget | One human line and the characters chat among themselves |
| Moment generation | Scheduled per character with daily caps, output guard + safety classifier | Characters have their own feed — a retention hook that brings users back |
| Gift economy | Catalog pricing + row-locked wallet transactions + idempotent per-message charging | Monetization loop where credits never drift |
| Safety guardrails | Fail-closed word lists + LLM six-risk semantic classifier (observe-only mode available) | Minor / self-harm / criminal content is blocked — with a calibration period first |
| Deployment shape | One Go binary, PostgreSQL + Redis; shares the foundation with the CS edition | Deploy standalone or combined, no lock-in |
How Balala helps
แชทกับตัวละคร 1-on-1: บุคลิก + ความจำระยะยาว + ตอบกลับแบบสตรีมมิ่ง
ห้องตัวละครหลายตัว: ขับเคลื่อนด้วย @mention + รับคำอัตโนมัติ + ตัวละครคุยกันเอง
โมเมนต์ตัวละคร: โพสต์อัตโนมัติ + ไลก์ + AI ตอบคอมเมนต์ + ให้ทิป
เศรษฐกิจของขวัญ: ราคาตามแคตตาล็อก + กระเป๋าเครดิต + การตัดเงินแบบ idempotent
ตัวละครที่ผู้ใช้สร้างเอง (UGC): โคลนจากเทมเพลต + โควตาต่อผู้ใช้
ข้อความเชิงรุก: ตัวละครทักทายเมื่อแชทส่วนตัวเงียบไปสักพัก
รั้วความปลอดภัย LLM: จัดประเภทความเสี่ยงเชิงความหมายหกกลุ่ม + คลังคำเฝ้าระวัง
รองรับหลายแบ็กเอนด์: OpenAI-compatible / DeepSeek / Dify / Coze