General Settings
The eChat configuration is located at Stores > Configuration > Mirasvit Extensions > eChat.
Account
The Account section manages your store's connection to the eChat cloud platform. Before you connect, it offers two tabs; once connected, it shows the workspace credentials and the actions below.
| Tab / Action | Description |
|---|---|
| Connect → Connect with eChat | Opens the eChat consent screen in a new tab, where you choose to create a new workspace, add this store to an existing eChat account, or restore a workspace you set up earlier. No OpenAI API key is required. |
| Restore with credentials | Reconnects an existing workspace using its Instance ID and current Secret Key, for example after moving a store to a new domain. Spaces and line breaks copied around either value are ignored. |
| Instance ID / Secret Key | The connected workspace's credentials. The secret key is masked; click it to reveal. The secret key is also the REST API token. |
| Rotate Secret Key | Replaces the secret key: eChat sends a new key to this store and switches to it once the store has saved it, so the store stays connected. The page reloads with the new key a few seconds later. See How to rotate the secret key. |
| Configure Chat | Opens the eChat backend for this workspace. See Configure Chat below. |
| Disconnect | Removes this store's eChat credentials and leaves the workspace and its data on the eChat server, so another store that uses it keeps working, and you can reconnect later with Restore with credentials. Use it on a staging copy after moving to production. At website or store-view scope the action is called Disconnect and Use Global Account and returns that scope to the global workspace. At default scope, a store view connected to its own workspace keeps it. See How to use eChat on a staging or cloned copy. |
| Delete Workspace | Permanently deletes the workspace with its conversations, knowledge base, FAQs, guidance rules and settings. Before it does, it shows the workspace's name, the address it is registered to, its number of conversations and its last chat. When the workspace is registered to another address than this store, for example production while you are on staging, it warns you and suggests Disconnect instead. At default scope it also deletes the workspaces of websites and store views connected to their own workspace. Not offered on an install detected as a copy of another store. |
A copy of the production database carries the same eChat credentials. The extension recognises a copy by its base URL: there, the knowledge base sync is skipped so the copy cannot overwrite the production workspace, an admin notice explains what to do, and Delete Workspace is not offered: Disconnect clears only the copy's own connection. If you moved the store to this domain for good, reconnect eChat instead, and the workspace is relabelled to the new address.
- Primary storefront for the Knowledge Base - shown at store-view scope. When several store views share one workspace, set it to
Yeson the store view whose address customers should see, and every link the sync writes to the knowledge base uses that storefront. With no store view set, the website's default store view is used.
Every store view of a Magento installation is grouped under one eChat account automatically, so each connected store view appears under a single, recognizable account rather than as an unrelated workspace. The grouping is managed in the backend, on the Workspaces tab.
By default a store view inherits the global workspace, and the panel says so. To give a store view its own workspace - a separate knowledge base, separate settings, separate conversations - switch the configuration scope to that store view and click Switch to Separate Account. Once several store views have their own workspaces, the default-scope panel lists them under Store-Level Overrides, each with its own Configure Chat button.
Managing registrations requires the Manage Registration and Credentials ACL resource (Mirasvit_EChat::echat_manage). An admin without it sees the connection status but no connect, configure, rotate, disconnect or delete actions.
The full procedure, including the per-store-view sync and where the chat's language comes from, is in How to set up multiple store views and languages.
Configure Chat
Once your store is connected, use the Configure Chat button to open the eChat platform in a new browser tab. Open eChat this way each time, rather than from a bookmarked link: Configure Chat signs you in as the Magento admin who clicked it. The chatbot's AI provider and model, appearance, behavior, greeting messages, and other widget settings are all managed on the eChat platform - not in the Magento admin. See How to configure the chatbot.
Turning the widget on and off
There is no on/off switch on this configuration screen. The widget is turned on per workspace in the eChat backend, under Settings > Widget > Show the chat widget, where it can also follow your working hours - see Settings.
Two other things can keep the widget off a storefront that is otherwise configured:
- The page matches Do not load the widget on pages (below).
- The store has no active Mirasvit license. Since version 1.2.0 the storefront widget requires one; development domains are unaffected, as elsewhere in Mirasvit extensions.
Widget
-
Do not load the widget on pages - a list of patterns, one per line, marking where the chat widget should not load. Each line is either:
- a URL fragment - for example,
/checkout/excludes the whole checkout flow; or - a Magento page type (full action name) - for example,
checkout_cart_indexexcludes the cart page, andcatalog_product_viewexcludes all product pages.
On a matching page no widget script is injected and no request is made to the eChat service at all. Leave the field empty to load the widget on every page.
- a URL fragment - for example,
-
Load the widget - when the widget may load, for stores behind a cookie consent banner:
- Always (default) - on every page.
- After Cookiebot consent - Cookiebot releases the widget once the visitor accepts the Cookiebot category below.
- After Magento cookie consent - waits for Allow Cookies in Magento's cookie notice. Needs Cookie Restriction Mode on; with it off the widget loads as usual.
- After a call from another consent tool - waits until your consent tool calls
window.mstEchatConsent().
Until consent nothing is loaded from eChat and nothing is stored in the browser. Details and code examples: Privacy and GDPR.
-
Cookiebot category - shown for After Cookiebot consent: the Cookiebot category that releases the widget (Preferences, Statistics or Marketing).
Verification Code Email
Before the assistant looks up a shopper's orders or other personal information, it emails them a one-time code to prove they own the email address. Both settings can differ per store view.
- Sender - the store email identity the code is sent from, General Contact by default. The addresses themselves are set under Stores > Configuration > General > Store Email Addresses.
- Email Template - the email with the code. To change its subject or text, create a template from eChat Verification Code under Marketing > Email Templates and select it here. The subject follows the store view's language.
Sync Schedule
The extension automatically syncs your store data - store information, products, categories, CMS pages, Mirasvit Knowledge Base articles and blog posts - to the eChat knowledge base using a cron job that runs daily at 2:00 AM.
The schedule is not configurable from the admin: it is declared in the module's etc/crontab.xml as 0 2 * * *. To run the sync at a different time, override that cron job's schedule from your own module.
The sync job, mst_echat_sync, runs in its own cron group, mst_echat, as a separate process, so a long sync on a large catalog does not hold up the jobs in Magento's default group. A plain bin/magento cron:run runs every group, so most stores need no change.
If your server runs cron per group, for example only bin/magento cron:run --group=default, add bin/magento cron:run --group=mst_echat as well, or the sync will not run.
You can also trigger a manual sync at any time using the CLI sync command.
Knowledge Base Sync
These settings are set for the whole installation (Default Config only).
- Sync out-of-stock products - whether products that are out of stock stay in the knowledge base while your store shows them (Display Out of Stock Products = Yes). With Yes (the default), they are synced and marked "Out of stock", so the chatbot can tell a visitor that an item is sold out. With No, the chatbot knows only the products that can be bought now, while the storefront still lists the rest, for example for back-in-stock alerts. A product that goes out of stock is removed on the next sync and added back when it is in stock again. When Display Out of Stock Products is No, out-of-stock products are never synced and this setting has no effect.
The two settings below tune how fast the sync uploads documents to eChat. Most stores leave them as they are. Lower them if the sync puts too much load on your server or on outgoing connections.
- Documents per upload request - the most documents the sync sends to eChat in one request. The default is 100 and the maximum is 200: an empty or zero value uses 100, and a larger value is capped at 200. A request is also kept under eChat's size limit, so a batch of large documents is split and can carry fewer.
- Parallel upload connections - how many documents the sync uploads at the same time, one per request. It applies only when the eChat service does not accept batch uploads; with batch uploads the setting above is used instead. The default and the maximum is 10, and a value outside 1 to 10 uses 10.