What problem does it solve?
OCS (Open Chat Studio) resources like chatbots, pipelines, collections, and sessions accumulate orphaned per-opp copies after Connect opportunities close, wasting storage and incurring unnecessary embedding API costs. Manually identifying and safely deleting these orphans is error-prone, as accidental deletion of shared resources like the golden template chatbot or shared collection would break all active opportunities.
Core Features & Use Cases
- Orphan Detection: Diffs OCS inventory against the current opportunity live set to identify unowned chatbots, pipelines, collections, and sessions.
- Safe Automated Cleanup: Auto-deletes only per-opp clones (chatbots, their paired pipelines, and per-opp collections) while explicitly protecting the golden template and shared collection, with soft-close support for expired sessions.
- Dual Mode Operation: Runs in report-only recommend mode to surface triage results for human approval, or execute mode to perform only pre-approved deletions and session closures.
- Use Case: A team managing 20 active Connect opportunities can use this skill to automatically clean up leftover OCS resources from closed opportunities, reclaiming storage and reducing embedding costs without risking damage to shared assets.
Quick Start
Use the sweep-ocs skill to generate a triage report of orphaned OCS artifacts for your current Connect opportunity.