Daily cut-off windows
Press clippings are collected in three windows per day. Each window represents a distinct export-and-upload cycle:| Window | Coverage period |
|---|---|
| Morning | Overnight coverage through the start of the business day |
| Midday | Morning session through noon |
| Afternoon | Full-day close |
Exporting from WhatsApp
Open the monitored group
In WhatsApp (mobile or desktop), navigate to the press clipping group managed by the monitoring team.
Export chat without media
Scroll to the bottom and select Export chat. When prompted, choose Without media. This produces a
.txt file containing only message text and metadata.Uploading the file
Navigate to the ingestion view in the app. The Upload area accepts a single.txt file per session.
onFileSelected() handler
When you select a file, the onFileSelected() handler runs the following checks before proceeding:
- No-file check — if
input.filesis empty (no file was selected), an error message is stored and processing halts. - MIME type check — the file must have type
text/plain. Any other type triggers an error message and halts processing. - Content read — the handler reads the file using the browser’s
FileReaderAPI and, on success, callsparseContent()with the raw text.
Only
.txt files are supported. The MIME type must be text/plain.Error states
No file selected
No file selected
If the file picker is opened and closed without selecting a file,
input.files?.length is falsy. The handler sets errorMessage to 'No se seleccionó ningún archivo.' and stops processing. Nothing is uploaded.Wrong file type
Wrong file type
If you select a file whose MIME type is not
text/plain — for example, a .zip export that includes media, or a .pdf — the handler sets errorMessage to 'Por favor, selecciona un archivo .txt' and stops. The file is not read and parseContent() is never called. Select the correct WhatsApp text-only export and try again.File read error
File read error
If the browser’s
FileReader encounters an I/O error while reading, the reader.onerror callback sets errorMessage to 'Error al leer el archivo.'. This can happen if the file is locked by another process or the device storage is unavailable. Try exporting and transferring the file again.What happens after upload
Once a valid file is read,parseContent() is invoked with the full text content. This triggers the parsing engine, which splits the log into individual messages, extracts structured fields from each one, and populates the ingestion view with the results.
Parsing
How the raw text is split into structured message objects.
Categorization
How parsed messages are matched to government areas using keywords.