DEVELOPER REFERENCE

Documentation & API Hooks

Lightweight REST architecture, client-side event dispatchers, and zero-dependency PHP backend handlers.

Frontend Data Attributes

Control widget opening, context setting, and modal toggles directly in HTML markup using simple attributes like data-chat-trigger and data-chat-topic.

REST Endpoint Payload

Submit asynchronous query requests to your server endpoint via standard POST requests returning clean, lightweight JSON response blocks.

Client Event Hooks

Listen for custom JavaScript window events such as chat:open, chat:message_sent, and chat:escalated to feed your local web analytics.

SQLite Retrieval Schema

Direct table mappings for TF-IDF and BM25 scoring without needing external database drivers or extra extensions.

Correcting & Tuning Answers

When a visitor's question turns up a weak or missing match, add it as a trained Q&A pair from the admin dashboard so the same question is answered directly next time, no code or redeploy required. You can also adjust how readily the assistant offers a handover to a person, from immediate to only after it has struggled with the same conversation more than once.

Integration Architecture Summary

My Chat Assistant relies on vanilla Web APIs and native PHP array responses. All requests are processed synchronously or asynchronously using standard fetch() methods, preventing blocking main-thread UI operations.

Request Dev Package