🤖 KARS AI company brain
Central AI for the KARS One apps. Read-only on all 5 app databases. Every answer is filtered to the asker's privilege before it is returned.
Database connections
| App | Database | Status |
|---|---|---|
| contract | kars_contract | ● error: connection to server at "postgres-staging" (172.20.0.2), port 5432 failed: FATAL: database "kars_contract" does not exist |
| helpdesk | kars_helpdesk | ● error: connection to server at "postgres-staging" (172.20.0.2), port 5432 failed: FATAL: database "kars_helpdesk" does not exist |
| portal | kars_portal | ● error: connection to server at "postgres-staging" (172.20.0.2), port 5432 failed: FATAL: database "kars_portal" does not exist |
| quoting | kars_quoting | ● error: connection to server at "postgres-staging" (172.20.0.2), port 5432 failed: FATAL: database "kars_quoting" does not exist |
| sales | kars_sales | ● error: connection to server at "postgres-staging" (172.20.0.2), port 5432 failed: FATAL: database "kars_sales" does not exist |
| sparepart | kars_sparepart | ● error: connection to server at "postgres-staging" (172.20.0.2), port 5432 failed: FATAL: database "kars_sparepart" does not exist |
Engines
| Engine | Status |
|---|---|
| External API (default) | ● configured via AI_API_URL |
| Local LLM (optional) | ○ disabled — set LOCAL_LLM_ENABLED=1 |
Simple lookups go to the local engine when enabled; complex analysis always uses the external API.
Try it (uses a demo identity — real calls come from the apps)
The /api/ask endpoint requires an HMAC-signed identity from one of the 5 apps. Use the integration snippets in integrations/ to add the "Ask AI" button.
Health: /health
⚠️ Human approval gate
The AI may draft quotes, reports and suggested actions, but it must never send anything to a client without a human approving the draft first. Drafts are staged in the kars_ai.drafts table with status pending until an admin approves or rejects them.