Analytics and conversations
Inbox
OAssist -> Inbox lists every conversation from oas_conversations with:
- Channel, started at, message count.
- Customer (email/name if known) or anonymous session.
- Status:
open,closed,escalated. - Total cost and token usage per conversation.
- Satisfaction score (1-5) if the customer left feedback.
Click a row to see the full transcript: every message, every tool call with arguments and response, every citation linking back to indexed sources.
Analytics tab
Shows aggregate metrics over selectable periods:
- Conversations (total, escalated, by channel).
- Messages per conversation (median, p90).
- Token spend ($ per day).
- Tool usage (which tools fire most often).
- Intent breakdown (auto-detected, from
oas_intents). - CSAT (average satisfaction score).
- Top topics (clustered from message content).
Tests tab
Define evaluation suites: a set of test prompts paired with expected behaviours (must call this tool, must mention this product, must not refuse, etc.). Run the suite against your current configuration to validate before pushing changes. Test results store in oas_audit for regression tracking.
Cost tracking
Every LLM call records tokens_in, tokens_out, and cost in oas_messages. Cost is computed from your provider's published rates (configurable per provider). Aggregate cost per conversation lives in oas_conversations.cost_estimate. Daily total in oas_budget.total_cost.
Prompt cache
Identical prompts (same hash of system prompt + user message + tool definitions) are cached in oas_cache for 24 hours. Cache hits return instantly with zero token cost. Hit rate is shown on the Analytics dashboard. Disable cache per request via the API.
REST API
Namespace: /wp-json/oassist/v1/. Key endpoints:
POST /chat- send a message, receive a response (server-sent events for streaming).GET /conversations- list conversations.GET /conversations/{id}- full conversation with messages.POST /escalations/{id}/assign- assign an escalation to a WP user.POST /knowledge/reindex- trigger reindex.
Authenticate with WP Application Passwords or an OAssist API key.

