dashboard.aiAnalytics
AI metrics over a chosen time window. Powers /analytics. Returns messages-by-direction (volume), AI-layer distribution (which layer handled what), and the auto-reply rate — the V1 spec's "AI-Auto-Reply-Rate" KPI: share of inbound guest messages answered by a rule|llm message within 24 h. Read-only query.
Input parameters
| Field | Type | Required | Notes |
|---|---|---|---|
windowDays | integer | no | Default: 30 |
Output fields
| Field | Type | Required | Notes |
|---|---|---|---|
windowDays | integer | yes | |
inbound | integer | yes | |
outbound | integer | yes | |
autoOutbound | integer | yes | |
manualOutbound | integer | yes | |
escalated | integer | yes | |
autoReplyRate | number | yes | Share (0..1) of inbound messages in the window followed in the same conversation by a rule|llm outbound message within 24 h. Scheduled messages are not replies; several auto messages count once. |
autoAnswered | integer | yes | |
layerCounts | object | yes | Message count per ai_layer value ('rule' | 'llm' | 'manual' | 'escalated' | 'auto_received'), plus 'unknown' for rows with a NULL ai_layer. Only layers present in the window appear. |
dashboard.jobZustand
State of the background jobs NOW: per queue the last success and failure, counters for the last 24 h, schedule, and whether a monitored reconciliation is overdue — e.g. “is the WhatsApp reconciliation running?”. Problems first. Error texts only from jobs of this property. Owner only. Read-only query.
Input parameters
Returns object.
Output fields
| Field | Type | Required | Notes |
|---|---|---|---|
stand | string | yes | |
probleme | integer | yes | |
jobs | array of object | yes | |
jobs.queue | string | yes | |
jobs.status | enum | yes | One of: fehler, ueberfaellig, ok |
jobs.letzterErfolg | string · nullable | yes | |
jobs.letzterFehler | string · nullable | yes | |
jobs.fehler24h | integer | yes | |
jobs.erfolge24h | integer | yes | |
jobs.fehlerText | string · nullable | yes | |
jobs.cron | string · nullable | yes | |
jobs.alterMinuten | integer · nullable | yes | |
jobs.schwelleMinuten | integer · nullable | yes |
dashboard.navZaehler
Two numbers for the sidebar grouped by area: `postfachOffen` = conversations waiting for a reply (the same count as `handover.briefing.messagesUnanswered`: per booking, last message from the guest, excluding cancellations and conversations marked done by hand); `aufgabenDringend` = urgent tasks that are neither done nor cancelled (like `dashboard.summary.tasksUrgent`). Any signed-in role. Read-only.
Input parameters
Returns object.
Output fields
| Field | Type | Required | Notes |
|---|---|---|---|
postfachOffen | integer | yes | |
aufgabenDringend | integer | yes |
dashboard.summary
Get the operator dashboard's summary KPIs (occupancy, revenue, etc.).
Input parameters
Returns object.
Output fields
| Field | Type | Required | Notes |
|---|---|---|---|
inboundLast24h | integer | yes | |
tasksOpen | integer | yes | |
tasksUrgent | integer | yes | |
tasksUrgentUeberfaellig | integer | yes | |
tasksUrgentOffen | integer | yes | |
tasksNeu24h | integer | yes | |
staysToday | integer | yes | |
staysUpcoming7d | integer | yes | |
aiConfigured | boolean | yes | |
kiZustand | enum | yes | One of: ok, kein_schluessel, aus, budget_erreicht, budget_weich, fehler_gehaeuft |
kiFehler24h | integer | yes |
dashboard.today
Operator home snapshot: inbound messages in the last 24h, open tasks, urgent tasks, stays checking in/out today, and stays arriving in the next 7 days. Read-only.
Input parameters
Returns object.
Output fields
| Field | Type | Required | Notes |
|---|---|---|---|
inboundLast24h | number | yes | |
tasksOpen | number | yes | |
tasksUrgent | number | yes | |
staysToday | number | yes | |
staysUpcoming7d | number | yes | |
aiConfigured | boolean | yes |