How to
This section contains guides for common tasks related to the AI Chatbot - eChat extension.
๐๏ธ Sync data manually
The extension syncs your store data to the eChat knowledge base automatically via a daily cron job (at 2:00 AM). However, you can trigger a manual sync at any time using the CLI.
๐๏ธ Configure chatbot
The chatbot's provider, behavior, and appearance are configured in the eChat backend, not in the Magento admin panel. This page is the short route; the eChat backend section documents every screen.
๐๏ธ Add a custom data source
The eChat extension syncs store information, products, categories, CMS pages, Mirasvit Knowledge Base articles and blog posts from Mirasvit Blog MX, Mageplaza Blog or Magefan Blog to the chatbot's knowledge base. If your store holds content the chatbot should also know about - a blog, brand pages, product manuals, a custom entity - you can add it with a small module of your own.
๐๏ธ Add a custom chatbot tool
This page is for developers and describes eChat 1.6.0 and later. No configuration is needed in the Magento admin panel - a tool becomes available as soon as the module that ships it is installed.
๐๏ธ Customize widget appearance
Colors, position corner, titles, and messages are set in the eChat backend - see Widget settings. Everything else about how the widget sits on the page - the distance from the screen edge, the size of the chat window, its stacking order against your own fixed elements - is done with CSS in your Magento theme.
๐๏ธ Track chats in analytics
The chat widget pushes its events to window.dataLayer on your store page. Google Tag Manager reads them there and sends them to GA4, Mixpanel or any other tool it is connected to. In that tool you can compare the visitors who chatted with all visitors: their purchases, revenue and conversion rate, for each of your stores.
๐๏ธ Embed the chat in a page
By default the chat opens from the floating button in the corner of the screen. With the eChat: Inline Chat widget you can place the chat directly in the page content instead, for example on a Service Center or Contact page, where the conversation is the main thing on the page.
๐๏ธ Set up multiple store views
A store that sells in several languages usually wants the chatbot to answer in each of them, from that language's own content. The AI Chatbot - eChat extension supports this with one eChat workspace per Magento store view: each workspace has its own knowledge base, its own widget settings and greeting texts, and its own conversation history, while all of them stay grouped under a single eChat account.
๐๏ธ Rotate the secret key
The Secret Key is what your Magento store and your Knowledge base REST API scripts use to connect to eChat. Rotate it if it may have been exposed, or on a schedule. A rotation never disconnects your store: it switches to the new key only once the store has saved it.
๐๏ธ Use a staging or cloned copy
A staging or development store is usually built from a copy of the production database. That copy also carries production's eChat connection: the same Instance ID and Secret Key. Without protection, the copy's sync would write its own content and URLs into production's eChat workspace, and the production chatbot could start sending visitors to the staging site.
๐๏ธ Troubleshooting
The chat widget does not appear on the storefront
๐๏ธ Upgrade extension
Follow these steps to update the extension via ัomposer:
๐๏ธ Disable extension
Using these steps you can disable or remove extension.