Skip to main content

AI Core / Copilot

The Mahtos Core AI is a proactive copilot offered as an add-on. It assists users in the POS, Store Manager and Business Owner portals.

Components

  • Central configuration: the copilot is configured by your vendor (rules, dosing, activation).
  • Dosed signal engine: suggestions emitted at a controlled pace. The current implementation is a deterministic stub with a planned swap point toward a provider (e.g. Gemini).
  • Discreet popups: suggestions appear non-intrusively (POS, SM, BO).
  • Suggestions IA history: log of issued recommendations.
  • Deterministic POS Rx alert: sensitive case handled by rules (see AI & Rx alerts).

Alert sounds (fallback)

The default sound files (/sounds/*.mp3) may not exist. The playAlertSound() function (in src/lib/ai/sound.ts) first tries to play the URL then falls back to a tone generated via the Web Audio API. It is used by the AiCopilot component and by the AiCore preview button.