Version 5.0 β’ Documentation
A production-ready, self-hosted AI chat platform with Grok, OpenAI, Telegram, WhatsApp and Viber. Includes read-only demo account, CSRF protection, responsive design and full SEO microdata. Landing translated 100% in 8 languages.
CRM AI Consultant is a universal two-way AI chat system that allows you to connect an intelligent widget to any website (WordPress, Tilda, pure HTML, Laravel, etc.).
Each website has completely individual settings: chat design, communication channel, AI model, API keys, and its own conversation history.
demo / demo read-only access for clientsSee full details in changelog-en.html
Use demo / demo at admin/login.php to show the admin panel to clients without allowing edits, deletions or password changes.
crm-ai-consultant/
βββ index.php β Main widget file (serves JS config + handles all AJAX)
βββ config.php β Main system configuration (database, constants)
βββ version.php β Current version
βββ documentation.html β Full documentation (this file)
βββ changelog.html β Version history
βββ crm-ai-error.log β Error log (auto-created)
β
βββ admin/
β βββ index.php β Main admin dashboard (list of all sites)
β βββ sites.php β Edit site settings
β βββ conversations.php β View all chat history
β βββ login.php β Admin login
β βββ navigation.php β Admin header
β βββ footer.php β Admin footer
β βββ icon.php β Bot icon picker modal
β βββ settings_*.php β Channel settings (telegram, grok, openai, etc.)
β
βββ sites/ β Individual site settings + prompt files
β βββ cache/ β Cached site settings (for speed)
β
βββ conversations/ β All chat histories stored in MySQL
β
βββ channels/
β βββ telegram.php β Telegram handler
β βββ grok.php β Grok (xAI) handler
β βββ openai.php β OpenAI GPT handler
β βββ whatsapp.php β WhatsApp handler
β βββ viber.php β Viber handler
β
βββ assets/
β βββ chat.js β Main chat widget script
β βββ style.css β Chat widget styles
β
βββ includes/
βββ functions.php β Core functions (save messages, routing, caching)
βββ get-messages.php β AJAX: get conversation messages
βββ get-conversation.php β AJAX: full conversation view (for admin)
/ai/crm/ folder on your serversites/ and sites/cache/https://bilohash.com/ai/crm/admin/demo / demo1. Add a new website in the admin panel
2. Fill in the settings (especially the system prompt!)
3. Copy the generated code
4. Paste it on your website before the </body> tag
5. Click the "Check" button in the admin panel
Each website has its own unique site_id, generated automatically from the domain.
Example: mapsme_no, bilohash_com
The fastest and most stable channel. Messages arrive in your Telegram.
Automatic replies powered by artificial intelligence.
Business API support (in development).
Business API support (in development).
Each website can have a fully custom design: colors, bot icon, title, subtitle, widget position (left/right), greeting text, and auto-open settings.
Check the file crm-ai-error.log in the /ai/ folder
Make sure the script is placed before </body> and the site_id is correct.
Check that the channel is configured correctly and the API keys are valid.