AI Assistant

Ask about products, sales, purchases, stock, or balances. Answers are grounded in your own data and respect your permissions.

@if (! $this->isAvailable())
The AI assistant isn't configured yet. Add ANTHROPIC_API_KEY to your .env file to enable it. The rest of the ERP works normally without it.
@else
@forelse ($messages as $message)
$message['role'] === 'user'])>
$message['role'] === 'user', 'bg-gray-100 dark:bg-gray-900/40 text-gray-800 dark:text-gray-100' => $message['role'] === 'assistant', ])>
{{ $message['content'] }}
@if (! empty($message['tools']))
@foreach ($message['tools'] as $tool) {{ $tool }} @endforeach
@endif
@empty
Try: "which products are low in stock?" or "show complete history of <a product>"
@endforelse
Thinking…
@endif