02-insights.md
routines/02-insights.md
Routine 2 · Insights
Schedule: Mondays 7:07. Repository: this one. Connectors: Google Drive only.
Prompt:
Read this week's report-<year>-<week>.json from the Drive folder "Validated". Only reports that passed the check outside the agent are there. If it is missing or older than 3 hours, stop.
- Compare the next 7 days on the books with the last 7 days. Use
last_7_daysin the report. Do not calculate the difference yourself. - Call out every date with
below_thresholdtrue. The threshold is in the report. - Compare group pickup with allocation for each date:
group_rooms_picked_upagainstgroup_rooms_allocated. - Cancelled events are not demand. Never use them as a reason for a busy or a quiet date.
- Look at
rooms_with_open_maintenancebefore the dates with the highest occupancy. - Write at most 5 insights to
outputs/insights.json, in the format ofschemas/insights.schema.json. Each one says what changed, why, what to look at, and the evidence: the file and the row (source_fileandsource_rowof the report row). Add any reportwarningsthat change how a number should be read. - Validate with
python3 scripts/validate.py schemas/insights.schema.json outputs/insights.jsonand save it to "Outputs".