Sales Intelligence Admin
Admin operations for AI-generated sales intelligence per listing. Supports list, read, manual upsert (locks human review), AI (re)generation, human edit/review, booking-stats update, lock/unlock, and delete.
📄️ List sales intelligence (paginated)
Newest updates first. Returns `data`, `total`, `page`, `size`.
📄️ Get sales intelligence for a listing
Returns existing intelligence; generates fresh AI content if absent or stale and not human-reviewed.
📄️ Manual admin upsert
Creates or overwrites sales intelligence for a listing and locks it as human-reviewed (AI regeneration won't overwrite). Use `/unlock` to release the lock.
📄️ Delete sales intelligence
Hard-deletes the row. The next read will regenerate fresh AI content.
📄️ Unlock for AI
Clears the human-review lock so subsequent AI regeneration can overwrite.
📄️ AI-generate for one listing
Forces AI regeneration. Skips if the row is human-reviewed.
📄️ AI-generate for ALL active listings
Fans out across every active listing. Skips human-reviewed rows.
📄️ AI-generate in bulk
Triggers AI regeneration for the given listing ids. Skips human-reviewed rows.
📄️ Update booking stats
Sets the ops-managed booking stats block (bookingsThisMonth, lastBookedAgo). Independent of AI content.
📄️ Human review / edit
Sets `human_reviewed=true` on the row so AI regeneration won't overwrite it.