Settings
Configure the analysis engine and manage local data.
Google Gemini analysis
Optional — the app works fully offline without a key
Paste a free Gemini API key (get one at aistudio.google.com/apikey) to analyze messages with Gemini 2.5 Flash. The key is stored only in your browser and sent per-request — it never touches the server's storage.
Models change (and get discontinued) — CCG Portal queries the Gemini API for what is actually available under your key, so you always pick a working one.
Offline analyzer
Built-in — zero API cost, deterministic results
- Classifies every message into complaint / suggestion / idea / praise / request / other using a keyword + sentiment engine tuned for Pakistani English and Roman Urdu.
- Tags 14 sectors (electricity, water, roads, health, education, police, corruption, taxes, garbage, agriculture, gas, inflation, employment, digital), urgency, intensity, locations and government entities.
- Detects exact and near-duplicate complaints (token + character-gram similarity) across all files.
- Flags persistent issues, infers root causes, computes severity and volume trends, and drafts policy interventions.
- With a Gemini key, the top issues get an AI-written policy brief replacing the template recommendations.
WhatsApp integration
Receive WhatsApp messages (text + voice) directly into the analysis pipeline
Connect a Meta WhatsApp Business Cloud API number: CCG Portal exposes a webhook that receives messages (including voice notes, which Gemini transcribes) and feeds them into the live analysis file automatically. Text is analyzed in English, Roman Urdu and Urdu script.
Appearance
Theme and font-size preferences are stored in your browser
Theme
Font Size
AI Fallback Provider
OpenAI-compatible endpoint used when Gemini is unavailable or over quota
Data management
Local SQLite store — everything lives on this machine