The WhatsApp & Device module covers pairing, live chat, AI agent, broadcast, and integration with external services. Key points (see Indonesian version for details):
- Device = WhatsApp session (instance in WA engine); Agent = AI agent config (prompt, QnA, follow-up)
- No inbound webhook from WA engine — engine writes directly to MySQL
chat_inbox&chat_list; dazoapp reads viaLiveChatController::connectSqlDB() - Socket.IO (
useSocket.js) connects on every page load for real-time updates - Production host inconsistent:
engine.dazo.idvsengine-wa.dazo.id LiveChat/Index.vueis a 5,681-line god componentAgentAiController(1,477 lines) manages AI agent config: prompt, QnA, follow-up, welcome messages- 5 template/response models:
TemplateMessage,ResponseTemplate,Chatbot,Flow,WellcomeMessage