{% extends "core/base.html" %} {% load static %} {% block topbar_title %}SwiftPOS AI Assistant{% endblock %} {% block content %}
SwiftPOS AI Brain
Connected to {{ request.company.name }} Database

Hello {{ user.get_full_name|default:user.username }}! Welcome to your SwiftPOS AI Brain. 🧠

I am connected to your company database with advanced company-wide capabilities. You can ask me to perform or analyze the following:

Analyze Sales & Financials — Check today's sales summary, margins, taxes, or gross profit.
Track Stock & Inventory — Query low/out-of-stock items or look up price and stock quantities.
Log Operating Expenses — Directly log business expenses under Transport, Rent, Utilities, etc.
Draft Purchase Orders — Draft a purchase order automatically for matching suppliers and items.
Manage Customers & CRM — Register new clients, list top spenders, or view debtor outstanding balances.
Supplier Directory — Fetch supplier contact information, addresses, and active balances.
Configure System Settings — View printer configurations, custom receipt headers/footers, and edit profiles.

How can I help you manage {{ request.company.name }} today?

Loading prompt shortcuts...
AI Knowledge Log
Recent administrative requests to the AI Brain.
{% for log in chat_history %}
{{ log.user.get_full_name|default:log.user.username }} {{ log.created_at|date:"M j, g:i A" }}
{{ log.prompt }}
{{ log.response }}
{% empty %}
No logs found.
{% endfor %}
{% endblock %} {% block extra_js %} {% endblock %}