Talk to the draft prompt (plus any saved corrections) like a real conversation. Nothing here reaches a real customer — the trace panel on the right shows exactly what happened on the last message.
Replay a real chat
Pulls a past customer conversation from Sales Intelligence (read only) and, at each customer message, shows what your salesperson actually said next to what GrGr would say. Uses the draft prompt, approved corrections and the testing model, the same as the chat playground. Nothing is sent to anyone. Nothing is saved except corrections you choose to make (redacted, then pending your review) and the cost log.
Customer context
Search by phone. Read-only: consent status, summary, current facts (labelled), operational state, tags + scope, and the last 20 messages labelled العميل / فهد / الموظف. Nothing is ever sent to the customer, and viewed text is never logged — only who looked up whom (ops.access_log).
All leads
Every lead, WhatsApp and TikTok (D111). One query per load, one ops.access_log row. Phone shows the last 4 digits only; names show for TikTok leads — WhatsApp leads show «عميل واتساب» until C11 stores names. The last-message column arrives with C11.
| # | Source | Lead | Phone | Status | Progress | Waiting on | Created | Waiting since | Rank reason |
|---|
Reply prompt (draft — not live)
Editing here never changes what real customers get. A real change still needs a commit, tests, and a deploy.
Run fixed scenarios
Runs the same 6 known-tricky cases against the draft + corrections, all at once.
Previous saved drafts
Learned examples — review queue
Rate a chat reply 👎 (or one from a live thread) and save a correction — it lands here as pending and changes nothing yet. Approving one is what folds it into every future reply, sandbox and real — that's the one gate between a correction and a live customer seeing it. Text shown here is redacted before it's ever stored.
Recent ai.runs
| time | prompt | version | valid | output / error |
|---|
Live customer threads
Fetched live from Whatomate for one real WhatsApp number — read-only history, nothing here is ever sent to the customer. Rate a reply 👎 and save a correction the same way as in the chat playground.
Testing model
Affects only this dashboard's chat playground and scenario runs. Real customers never see this.
Currently:
Production model — affects real customers
Changes what every real customer gets starting with their very next message. No deploy, no test run, no code review — the safety net every other change in this repo goes through does not apply here.
Currently:
TikTok leads (D76)
Connect the TikTok ad account, subscribe the lead webhook, and mark when a campaign is live (the 4-hour no-leads alert counts 09:00–23:00 Riyadh only while this is on). Tokens are never shown here.
loading…
Connect TikTok ad accountLearning log
Every example ever saved, in order — a history, not a queue. Approve/reject still happen in the Corrections tab; this is read-only.
Live — last hour
Auto-refreshes every 60s. Handoff counts cover 24h; "waiting" means no staff reply since the handoff. Spend is the LiteLLM key's own numbers when reachable, else ai.runs — the source line says which.
Kill switch — stops ALL replies and model calls
ON means every customer turn returns an empty reply (reply_source kill_switch) and no model call is made, until it is turned off. Survives container recreation. Every toggle is logged with your account.
Currently:
Silent accounts — per-number silence (D70)
Whatomate account names the agent never answers: no reply, no model call — the lead is still recorded and محمد gets one Telegram note per lead per day. Em answers these customers in the WhatsApp Business app. Empty = inert (every number answers normally). Takes effect on the next message, no redeploy. Copy the name from the inbound log line's account=… — never retype it (the match is exact).
Currently:
Voice notes — fallback vs listen (D52)
fallback: first voice/non-text note gets the fixed "send it as text" line, a second hands off to محمد (silence). listen: transcription is NOT built yet — it stays locked (behaves exactly like fallback) until the STT benchmark passes. Takes effect on the next message, no redeploy; every toggle is logged.
Currently:
System status
No container restart count or deployed commit hash yet — this process has no Docker socket (correctly), so those need a build-time/orchestration hook to add later.
OpenRouter balance
Live from OpenRouter's credits API (the account key, server-side — a LiteLLM virtual key cannot read it). Zero credits stops every AI call with a 402: this tile turning red below the threshold is the early warning.
Reply retry rate — 14 days
Share of reply calls where the model answered in prose instead of the JSON envelope and the corrective retry re-asked (2026-09-30). A retried call costs roughly twice a clean one — this rate is that cost, made visible.
Health board
Usage — last 14 days
Tokens and cost are real, from ai.runs. Cost (D18, 2026-09-28) comes from LiteLLM's own per-request price calculation (the x-litellm-response-cost response header) — not a price table kept in this repo, so it stays correct as OpenRouter's pricing moves. A run from before this change, or one LiteLLM had no price entry for, contributes $0 to that day's total rather than breaking it.
| day | requests | tokens in | tokens out | cost (USD) |
|---|
Effective prompt — what a real customer gets right now
The real, deployed reply prompt plus every currently-approved example, exactly as server.js composes it this instant.
Guardrail trips
Real drafted replies the guard actually blocked — the customer got the fallback message, not this text.
Recent errors
Live logs
The container's own console output, most recent first — captured in memory, resets on redeploy.