Guides
Install the Magento 2 module
Install with Composer, click Connect to Ottla, then choose where the assistant appears. No API keys to copy.
On this page
The Ottla module adds the AI shopping assistant, instant search, recommendation rows and the rest of Ottla to your Magento 2 store. It keeps your catalogue in sync with Ottla too. Install it with Composer, click Connect to Ottla, wait for the first sync to finish, then choose where the assistant appears. No API keys to copy and no theme edits.
This is the whole manual, from system requirements to uninstall. If you just want the short version, the quick start guides you through the essential four steps.
Requirements
| Component | Supported |
|---|---|
| Magento | Magento Open Source or Adobe Commerce 2.4.6 to 2.4.9 |
| PHP | 8.2 to 8.5 |
| Catalogue search engine | Nothing to change. Ottla runs its own search and keeps the Elasticsearch or OpenSearch engine every Magento 2.4 store already has as its fallback. |
| Cron | Magento cron must run. The module uses its own cron groups, ottla and ottla_full, as separate processes. |
| Themes | Luma, blank and themes built on them; Hyvä 1.3 to 1.5, including Hyvä Checkout and Hyvä CSP (see the Hyvä guide). No Alpine, jQuery, RequireJS or Tailwind dependency. |
| Adobe Commerce | The add-on ottla/module-adobe-commerce, or ottla/module-b2b on B2B stores, covered in Adobe Commerce and B2B below. |
Install
-
Install with Composer
Require the module from your Magento project root, then run
bin/magento setup:upgradeandbin/magento cache:flush. In production mode, runbin/magento setup:di:compileandbin/magento setup:static-content:deploy -fbefore the cache flush, as you would for any module.composer require ottla/module-connector bin/magento setup:upgrade bin/magento cache:flush -
Check what setup changed
setup:upgradeswitches on theottla_sessioncache type and puts the Ottla Category Product Positions indexer on Update by Schedule. Keep it there: on Update on Save it misses imports and bulk changes. After changing the module’s configuration later, usecache:flushrather thancache:clean.
Connect to Ottla
-
Open the Ottla settings
Go to Stores → Configuration → Ottla → Settings. The Setup status panel at the top lists what is left to do, and stays useful long after launch.
-
Choose the region
Choose United Kingdom from Connection‘s list. The European Union and United States regions are in the list too; they are coming soon, so please don’t choose them yet.
-
Click Connect to Ottla
Click Connect to Ottla. Sign in to the Ottla console that opens and choose your workspace, then approve the connection.
-
Let the first sync start
Back in Magento, the module saves the connection, switches Enable Ottla to Yes and schedules the first full sync. It begins with the next sync run, within about 15 minutes. Order history follows in batches every 5 minutes.
Once connected, the same group has four buttons:
| Button | What it does |
|---|---|
| Re-authorise | Repeats the approval while connected. New keys are issued and nothing is interrupted; the old keys stop working a few minutes later. |
| Rotate shopper key | Issues a new key the store uses to tell Ottla which shopper is signed in. The old one keeps working for 15 minutes. |
| Disconnect | Asks Ottla to revoke the keys, then clears the connection in Magento. If Ottla cannot be reached, the message says so: remove the connection in the console as well. |
| Test connection | Checks both keys and this store’s address, reports clone protection, cron and cache types, and which switched-on features are live. |
The buttons need the admin permission Ottla_Connector::connect. A role with only the settings permission sees the connection status without them.
Place the assistant
First create an advisor in Storefront → Widgets in the console. That is where its look, its wording and its mode live: a chat bubble, a sidebar or an inline panel. Then tell Magento where it appears, in Stores → Configuration → Ottla → Settings → AI Advisor, by adding a row to Where the advisor appears for each place:
- Widget: the advisor from your console.
- Pages: what type of page, for example all pages, product pages or category pages.
- Side: which edge of the screen a chat bubble or sidebar attaches to.
- Target selector: a CSS selector. If filled in then the widget appears inline inside that element.
- URL contains and URL excludes: show this row only on (or never on) pages whose address contains some text. An exclude always wins.
“All pages” never includes the checkout or the order confirmation page; add a row for those if you want the advisor there. Show Ottla on the storefront must be on, which it is by default. No theme edits are needed.
Catalogue sync
Catalogue changes arrive in Ottla every 2 minutes for price and stock updates, and every 15 minutes for product data, by default. A full sync runs every night (by default at 02:00) and deletes anything that has been removed from Magento. Changes are picked up as they happen: saves (product, category, CMS page, review, customer group and price rule), mass updates, imports, deletes, and Magento’s stock and price indexers.
The module sends:
- products, with their attributes that shoppers see on the storefront or search or filter by, and their prices and stock levels;
- categories, CMS pages (including static blocks placed on them) and approved reviews;
- promotions, shipping methods and rates, and contact details for each store view;
- order history, but with customers replaced by pseudonymous references (see data and privacy).
It will also export relevant data for any of the following modules if they are present: Amasty Advanced Reviews, MageWorx Reviews, Amasty FAQ, Amasty Store Locator, Magefan Blog, Elementary Product Downloads (the PDF and Word .docx files attached to your products) and HelloBrave Category Content (category information and buying guides). MageWorx FAQ, Mageprince FAQ and Elementary FAQ exports can be enabled via the module. Any other documents (such as datasheets and instruction booklets) stored externally to Magento are not exported and should instead be added via Catalogue → Documents or via API.
You can watch progress in Catalogue → Sync history in the console or Sync status in these Magento settings. You can also manually run any sync:
| Command | What it does |
|---|---|
ottla:sync:all [--delta] |
Everything, in order. A full run also removes items Ottla holds that the run did not see. With --delta, only pending and failed items. |
ottla:sync:products [--delta] |
Products, with their prices and stock |
ottla:sync:categories [--delta] |
Categories |
ottla:sync:cms [--delta] |
CMS pages |
ottla:sync:promotions [--delta] |
Promotions from your Magento price rules |
ottla:sync:orders [--backfill|--delta|--reset] |
Order history. The backfill resumes where it stopped; --reset starts again from the oldest order. |
ottla:sync:status [--errors] |
A summary per data type, the latest errors, and why sync is blocked if it is |
ottla:doctor [--website=<id>] [--json] |
Every diagnostic check. Exits with code 1 when a check fails. |
ottla:privacy:erase |
Sends an erasure request for a customer, an email address or a visitor id |
Commands pace themselves to the key’s rate limit, so a large sync slows down rather than being refused. If Ottla stops one part way (a rate limit, a revoked key, a billing problem), it prints HALTED: <reason>, keeps everything it had not sent and exits with code 1: run it again later. While the Ottla account is past due, syncing pauses and picks up again once it is settled.
Staging and copies
A copy of your production database carries the live connection, so a staging site could overwrite your live catalogue in Ottla. Clone protection stops that. Sync is blocked when the environment looks non-production:
- Magento is in developer mode;
- the storefront host is on a local tool domain or test domain, such as
.test,.localor.localhost; - the host is an IP address or
localhost; - the host has a whole label
dev,staging,stage,stg,uat,qa,test,preprodorsandbox.
Only whole labels count, so dev-shop.co.uk is not blocked. A copy that does sync from a different store address is refused with 409 store_url_mismatch and must be re-authorised. To let a real, separate environment sync, set this in its own app/etc/env.php:
// app/etc/env.php
return [
// ...
'ottla' => [
'allow_non_production_sync' => true,
],
];
A value in the database is ignored, so the setting never travels with a database copy. Test your integration covers staging in more detail.
Several websites and brands
One connection covers the whole Magento installation. Each website with Enable Ottla set to Yes is sent as its own brand, so a shopper on one website never gets another website’s products, prices or answers. Each store view is sent as a language of its brand, with its own URLs and values. Set Enable Ottla to No for a website (a feed or staging website, say) to leave it out entirely.
Sync status includes a Websites and brands table. It shows which websites you’re syncing, each brand’s currency, which store views (languages) you’re sending for it and their storefront URLs.
Adobe Commerce and B2B
The core module installs on Magento Open Source and Adobe Commerce alike. On Adobe Commerce, add the Adobe Commerce module too, in the same way (and with the same production mode steps). On Adobe Commerce with B2B, add the B2B module instead: Composer installs the Adobe Commerce module with it.
# Adobe Commerce
composer require ottla/module-adobe-commerce
# Or, on Adobe Commerce with B2B (it brings ottla/module-adobe-commerce with it)
composer require ottla/module-b2b
bin/magento setup:upgrade
bin/magento cache:flush
The Adobe Commerce module detects changes to your Catalog Permissions, customer segments and scheduled staging updates, and sends only what changed.
The B2B module adds company, company credit and quote help in the assistant, company buy-again, “Request a quote” through negotiable quotes, and handing a conversation to the company’s sales representative. It also brings customer-group catalogues and prices: shoppers see only the products and prices their group may see. Until the first visibility sync finishes, affected groups see no Ottla products at all, which is deliberate. Settings are in the Adobe Commerce and B2B group, which shows only the options your installed Adobe Commerce modules support.
Live store data
Stores → Configuration → Ottla → Live store data lets the assistant ask your store behind the scenes for fresh answers while it’s chatting to a shopper. Every switch is off until you turn it on.
| Switch | What the assistant can do |
|---|---|
| Live prices and stock | Quote the shopper’s own price (customer group, tier and special prices) and current stock. Always on for a website where customer-group prices are active. |
| Live delivery quotes | Ask your shipping methods what delivery costs for a product and a postcode. |
| Order status | Answer “where is my order?” from the real order. Guests give the order number and the email address used for it. |
| Account details for signed-in shoppers | List a signed-in shopper’s recent orders, saved addresses and wish list. |
| Order help for your support team | In a live chat, on Pro and Enterprise, let your agent resend the order confirmation or share tracking. There are no refunds, cancellations or address changes. |
Ottla calls your store for these, so your storefront should be served over HTTPS. If a firewall restricts incoming calls, contact us for the addresses to allow. Account details are personal data: check your privacy notice covers them before you switch them on.
Upgrade
-
Update the module
Update it with Composer, then run
bin/magento setup:upgradeandbin/magento cache:flushagain. In production mode, runbin/magento setup:di:compileandbin/magento setup:static-content:deploy -fbefore the cache flush, as you would for any module.The command updates every Ottla package you installed. The add-ons require the same minor version as the core module, so they move together.
composer update 'ottla/*' bin/magento setup:upgrade bin/magento cache:flush -
Check Setup status
Open Stores → Configuration → Ottla → Settings. If Setup status asks you to re-authorise, click Re-authorise.
-
Switch on new features where you want them
A store that was already connected keeps newly added storefront features off until you switch them on, so an upgrade never changes what shoppers see by surprise. Check them per store view after upgrading. Live on your store in Setup status lists each feature and, if it is not live, why.
The module works with the current and the previous Ottla platform version, and features the platform does not offer yet stay hidden. If Ottla ever needs a newer module, its responses say so with 426 module_upgrade_required and the admin shows a notice.
Disable or uninstall
# 1. Disconnect first, in Stores → Configuration → Ottla → Settings → Connection
# 2a. Disable only: Magento keeps the module's tables and settings
bin/magento module:disable Ottla_Connector
# 2b. Or uninstall a Composer install, removing its tables, settings and connection keys
bin/magento module:uninstall Ottla_Connector --remove-data
Disconnect first so Ottla revokes the keys and stops expecting the store. Disabling keeps the module’s tables and settings for later; uninstalling with --remove-data removes them, including the connection keys. Settings you pinned in app/etc/env.php or config.php are files, so remove those by hand. Remove any add-on first (Ottla_B2b, then Ottla_AdobeCommerce, and Ottla_GraphQl if you added it), because each one depends on the core module.
Troubleshooting
Start with bin/magento ottla:doctor, or click Run diagnostics in Sync status and diagnostics. The module logs to var/log/ottla.log.
| Symptom | Likely cause | What to do |
|---|---|---|
| Nothing syncs and Sync status says “Sync blocked” | Clone protection: developer mode or a non-production host | On a real environment, allow it in app/etc/env.php (see Staging and copies) |
| Nothing syncs and there is no cron row | Magento cron is not running | Start cron, then check Setup status |
| A changed setting has no effect | Stale configuration cache | bin/magento cache:flush, not cache:clean |
A command prints HALTED: ... 429 |
Another process used the key’s rate limit | Run the command again later |
| 401, 409 or 426 noted in the admin | A revoked key, a changed store address or an upgrade needed | Re-authorise, or upgrade the module |
| A billing notice, and syncs stop | The Ottla account is past due or the workspace is suspended | Resolve it in Settings → Plan and billing in the console, then click Test connection |
| Items stay “Sent, not confirmed yet” | Ottla is still processing them | Wait: they settle within 48 hours |
| Search or listings show Magento’s own results | Ottla did not answer in time, or the feature is not live for you | This is the expected fallback; ottla:doctor shows which |
| The assistant does not appear | Not connected, Show Ottla on the storefront off, no placement row, or no widget | Setup status names the missing piece |
| “Customers also viewed” stays empty | No consent signal, or product-view analytics switched off | See cookie consent |
| The Recommended sort ignores your positions | The positions indexer is on Update on Save | bin/magento indexer:set-mode schedule ottla_category_positions |
| A CSP error in the browser console | An Ottla address missing from your Content Security Policy | See Content Security Policy |
FAQ
Frequently asked questions
Do I need to create API keys?
No. When you click Connect to Ottla, it generates the keys and the module stores them. There is no API key to paste into the Magento admin.
Which Magento and PHP versions are supported?
Magento Open Source and Adobe Commerce 2.4.6 to 2.4.9, on PHP 8.2 to 8.5.
Does it replace Magento’s search?
By default, instant search replaces the search box dropdown on a new installation. Magento’s own search remains underneath as a fallback, and you can switch each search feature off per store view.
Will a staging copy overwrite my live data?
No. Clone protection blocks sync on hosts that look non-production unless you allow it in that environment’s app/etc/env.php.
Does the module slow my store down?
Its scripts load asynchronously, without shifting the page. All storefront requests go through your own store with a short timeout. Should Ottla become slow or unavailable, your customers see Magento’s own search and pages instead of an error.
What if I run several websites?
A single connection for your install. Each website you enable is treated as a separate brand with its own products, pricing and answers.
Next
Hyvä themes and Hyvä Checkout
Theming variables, CSP entries and what changes when using Hyvä.
Configure the widget
Mode, colours, copy and behaviour.
JavaScript events and consent
Trigger the assistant from your own buttons and control the visitor cookie.
Go-live checklist
Things to check before every shopper sees it.