Install
On this page

Install

From the Magento root, run these commands as the filesystem owner. Install the metapackage from your configured Composer repository, then check the connection.

Add the package

  1. Run composer require arlanix/ai-assistant.
  2. Run bin/magento setup:upgrade.
  3. In production mode, run bin/magento setup:di:compile.
  4. In production mode, run bin/magento setup:static-content:deploy with your deployment's locales.
  5. Run bin/magento cache:flush.

Check cron

Make sure your deployment runs Magento cron. The following jobs use the default cron group.

Job Schedule What it cleans
arlanix_ai_usage_expire */5 * * * * Marks stale requests as timed out. Their reservations still count toward the applicable limits.
arlanix_ai_usage_cleanup 40 3 * * * Removes old usage entries and budget counters.
arlanix_ai_history_cleanup 50 3 * * * Removes expired chats, actions, personal-data mappings and temporary files.
arlanix_ai_debug_log_cleanup 20 4 * * * Removes debug entries past retention.

Verify a model call

  1. Configure the provider in the admin.
  2. Run bin/magento arlanix:ai:ping to send a short request using the configured model and key.

If the command fails, see Troubleshooting.

Remove the package

  1. Make a backup of the database and any assistant records you need to keep.
  2. Run composer remove arlanix/ai-assistant.
  3. Run bin/magento setup:upgrade.
  4. In production mode, repeat the compilation step.
  5. In production mode, repeat the static content deployment step.
  6. Run bin/magento cache:flush.