Blueprint
Safety checkedAutomate Non-Refundable Rate Plans
Avoid manual SQL checks and risky rate-plan changes with a preview-and-approval process that rechecks live property state before writing. Verify applied changes through run logs and a fresh status check, with changed properties safely skipped.
Install Prompt
Copy this prompt and paste it into your AI agent to install.
What problem does this solve?
Automates applying and removing hotel non-refundable rate plans for selected properties and date ranges. It supports hotel operations staff replacing manual SQL checks, plan-creation jobs, and API calls with a preview, approval, and verification workflow.
How does it work?
- Request a read-only status or preview in Claude Code, or start the parameterized Jenkins job with property IDs, action, periods, and environment.
- Review the preview of changes, plan creation or reactivation, numbered steps, and expected guest-facing result. In chat, explicitly confirm the exact preview; in Jenkins, an authorized approver approves it.
- The tool re-reads live property state before writing and skips properties whose state changed. It creates missing plans through a separate job when needed, then applies the saved approved preview.
- Verify the results with the run log and a fresh status check. Output: applied rate-plan changes with verification results, or a report of skipped or failed changes.
What's the biggest win?
Applies NRP changes across selected properties using approved previews, live-state checks, and post-change verification.
What's required to run this?
- Python CLI tool using the standard library, with
show,preview, andapplycommands. - Claude Code skill file: provides chat command mapping, safety rules, date rules, and special cases.
- Jenkins parameterized pipeline: accepts property IDs, action, periods, and environment; uses a restricted approver list.
- Separate plan-creation job: creates missing NRP plans in batches of one build per plan type, for up to 50 properties.
- Offline unit tests use fake APIs.
What are the constraints?
Properties with deliberate manual setups are listed as show-only and must never be applied to. If a property already has NRP, the workflow asks whether to replace or add rather than choosing a default. It rejects overlapping periods, merges back-to-back periods, drops ended periods, and keeps a running period from today. A null sell window does not take a plan off sale; deactivation is required. New plans may not appear on the website if their room-type mappings differ from the sibling plan.
Tools in this Blueprint
About This Blueprint
- Industry
- Computer Software
More Blueprints to explore
Audit stale Hive cards, rescue active threads, and clean up after your yes
Avoid archiving work that only looks abandoned: recent comments and sub-card activity surface active threads before stale cards get cleaned up. Review clear Keep, Complete, Reschedule, and Archive buckets, then approve changes and verify each update in Hive.
Check which active Hive projects are on time, and flag status mismatches
Catch slipping milestones before an executive review, without opening every project one by one. A ranked scorecard surfaces overdue work, missing updates, and status mismatches, then lets you approve corrections directly in chat.
Flag scope creep on a client project in Hive
Catch budget drift before small client requests erase project margins. Compare kickoff-era work with later additions, logged hours, and estimates, then review flagged cards before approving a change order or status update.