How to 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.
Sync all data types
bin/magento mirasvit:echat:sync
This command syncs all data sources: store information, products, categories, CMS pages and Mirasvit Knowledge Base articles. Each source lands in its own knowledge base category, which the extension creates on the first document.
One failing source is logged and skipped rather than stopping the run, and a source with nothing to send creates no empty category.
Sync a specific data type
Use the --type option to sync only a specific data type:
bin/magento mirasvit:echat:sync --type=product
bin/magento mirasvit:echat:sync --type=category
bin/magento mirasvit:echat:sync --type=cms_page
This is useful when you've made changes to only one type of content and want a faster sync.
Preview a sync without sending anything
Add --dry-run to see what would be sent, without creating or updating anything in the knowledge base:
bin/magento mirasvit:echat:sync --dry-run --limit=5
Each document is listed with its identifier, name and content length. --limit stops after the given number of documents per source, which keeps the output readable on a large catalog.
Documents are matched by identifier, and each source owns its own identifiers (product.42, cms_page.7, and so on). Anything stored under those identifiers is replaced on every run, so an edit made by hand in the backend's Knowledge Base screen does not survive the next sync - at 2:00 AM at the latest.
To add content that the sync leaves alone, give it an identifier of your own. See Knowledge Base.
Your store's own content can be added to the chatbot's knowledge base as well - see How to add a custom data source.