KopiBot AI / Dokumentasi HTML
Semua Dokumen GitHub Repo Kembali ke Landing Page
☕ AI Agent Coffee Shop Commerce Platform

Platform AI untuk otomatisasi order, customer service, loyalty customer, Customer CRM, Customer Portal, dan manajemen multi cabang coffee shop.

🚀 Features

  • AI Chatbot Order Menu
  • WhatsApp / Telegram / Discord Integration
  • Multi Branch Management
  • AI Upselling & Promo Recommendation
  • Order via Website & Chat Apps
  • Variant Product & Topping Support
  • Loyalty Point, Customer CRM, dan Customer Portal
  • Multi Currency, Tax & Timezone
  • AI Customer Interaction Automation

💻 Tech Stack

PHP Native • MySQL • OpenAI • Anthropic
WhatsApp Gateway • REST API • LLM AI

☕ Suitable For

Coffee Shop • Cafe • Restaurant • Bakery • Beverage Store

Dibuat & Dikembangkan oleh

Kukuh TW

📧 Email: kukuhtw@gmail.com

📱 WhatsApp: wa.me/628129893706

🌄 Instagram: @kukuhtw

X/Twitter: @kukuhtw

Facebook: facebook.com/kukuhtw

LinkedIn: linkedin.com/in/kukuhtw

GitHub: github.com/kukuhtw/toko_kopi

🌐 Demo: botlelang.com/toko_kopi

© 2026 Kukuh TW. All rights reserved.

Markdown ke HTML

> ## ☕ AI Agent Coffee Shop Commerce Platform > Platform AI untuk otomatisasi order, customer service, loyalty customer, dan manajemen multi cabang coffee shop.

Customer-Facing Agent Architecture

## ☕ AI Agent Coffee Shop Commerce Platform Platform AI untuk otomatisasi order, customer service, loyalty customer, dan manajemen multi cabang coffee shop. Dibuat & Dikembangkan oleh: Kukuh TW 📧 Email: kukuhtw@gmail.com 📱 WhatsApp: https://wa.me/628129893706 📷 Instagram: @kukuhtw 🐦 X/Twitter: @kukuhtw 👍 Facebook: https://www.facebook.com/kukuhtw 💼 LinkedIn: https://linkedin.com/in/kukuhtw 🌐 Demo: https://botlelang.com/toko_kopi © 2026 Kukuh TW. All rights reserved.

Dokumen ini merancang evolusi dari chatbot intent-based saat ini menjadi customer-facing hybrid agent yang lebih natural seperti agent modern, tetapi tetap aman untuk use case order dan checkout.

Tujuan

Prinsip Utama

  1. Commerce core tetap deterministic

ChatbotEngine tetap menjadi sumber kebenaran untuk cart, promo, checkout, dan order lifecycle.

  1. Agent layer fokus ke reasoning

Agent tidak langsung menulis state sensitif. Agent hanya:

  1. Tool-gated mutation

Perubahan state hanya boleh lewat tool yang eksplisit dan bisa diaudit.

  1. Policy first

Sebelum tool mutating dijalankan, PolicyEngine memutuskan apakah aksi aman, perlu klarifikasi, atau harus di-handoff.

  1. Memory bounded

Untuk customer-facing bot, memory disimpan terbatas dan terstruktur:

Komponen Baru

1. ConversationModeRouter

File: app/Agent/Routing/ConversationModeRouter.php

Tugas:

2. CustomerAgentKernel

File: app/Agent/CustomerAgentKernel.php

Tugas:

3. ToolRegistry + ToolInterface

Files:

Tools awal yang disiapkan:

Evolusi berikutnya:

4. PolicyEngine

Files:

Tugas:

5. CustomerMemoryStore

Files:

Tugas:

Skema Database Awal

Migration file:

Tables:

Tujuan tabel:

Integrasi Bertahap dengan Engine Lama

Fase 1

Fase 2

Tambahkan adapter di depan ChatbotEngine:

  1. detect intent seperti biasa
  2. build context
  3. route via ConversationModeRouter
  4. jika transactional -> ChatbotEngine
  5. jika advisory -> CustomerAgentKernel

Fase 3

Tambahkan tool mutating yang aman:

Tetap dengan policy guard sebelum execute.

Fase 4

Tambahkan reflection ringan:

Perbedaan dengan Arsitektur Lama

Lama

Baru

Guardrails yang Disarankan

  1. Agent tidak boleh menghitung harga final sendiri.
  2. Agent tidak boleh mengarang promo atau stok.
  3. Agent tidak boleh memulai checkout jika customer masih ragu.
  4. Agent tidak boleh menulis ke cart tanpa tool mutating yang eksplisit.
  5. Saat confidence rendah, agent harus klarifikasi atau handoff.

Use Cases yang Cocok

Use Cases yang Harus Tetap Deterministic

Langkah Implementasi Berikutnya

  1. Tambahkan adapter CustomerConversationService di atas ChatbotEngine.
  2. Daftarkan CustomerAgentKernel ke flow webhook/chat web.
  3. Tambahkan tool mutating satu per satu.
  4. Tambahkan observability untuk agent_tasks dan agent_task_steps.
  5. Tambahkan halaman dashboard untuk melihat log advisory agent.