Use Cases (अपडेट: 21/8/2026)

Claude Code से होटल बुकिंग CSV का क्लाउड हैंडऑफ प्रीफ्लाइट

क्लाउड पर देने से पहले होटल CSV में निजी डेटा, सहमति, object key और मानव स्वीकृति जांचें।

Claude Code से होटल बुकिंग CSV का क्लाउड हैंडऑफ प्रीफ्लाइट

शुक्रवार दोपहर रिसेप्शन पूरी बुकिंग वाले सप्ताहांत की तैयारी कर रहा है और मार्केटिंग विक्रेता ताजा booking CSV मांगता है। कोई स्टाफ होटल सिस्टम से CSV डाउनलोड करता है, पर क्लाउड में रखने से पहले पता चलता है कि object key में अतिथि का ईमेल बचा है। दूसरी पंक्ति के cancellation note में परिवार की जानकारी है। असली समस्या upload करना नहीं है। समस्या यह है कि कौन सी पंक्तियां होटल से बाहर जा सकती हैं, कौन से मूल्य हटाने हैं, और किसने मंजूरी दी है।

होटल और पर्यटन की reservation data में केवल तारीख और कमरा नहीं होता। उसमें नाम, ईमेल, फोन, साथ आने वाले लोग, stay plan, amount, भोजन की मांग, accessibility note और free text हो सकता है। Cloud handoff का मतलब है फाइल को ऐसी जगह रखना जहां दूसरा team या vendor network से ले सके। यह उपयोगी है, लेकिन CSV body, object key, signed link और भेजा गया email अलग-अलग risk surface बन जाते हैं।

यह लेख Claude Code से hotel booking CSV के लिए preflight contract बनाता है। यहां contract कानूनी contract नहीं है। यह columns, accepted values, object key naming, consent field, delete date और human review की repeatable technical agreement है। title live cloud integration का वादा नहीं करता। नीचे का code केवल local fixed fixture पढ़ता है और AWS S3, Google Cloud Storage, Cloudflare R2 या किसी service को call नहीं करता।

मुख्य बातें

  • यह workflow lodging और tourism teams के लिए है जो booking CSV को cloud handoff से पहले तैयार करते हैं।
  • Claude Code columns, dates, consent, object keys और redacted manifest बना सकता है।
  • इंसान purpose, vendor scope, retention, contract terms और sensitive notes पर निर्णय लेते हैं।
  • tested boundary केवल local JavaScript syntax और fixture execution है। authentication, network, upload, permissions और deletion test नहीं हुए।
  • एक ही primary CTA है: internal rule बनाने के लिए training और consultation।

workflow: booking CSV को cloud handoff manifest में बदलना

पहले artifacts साफ होने चाहिए: reservation system से exported CSV, vendor को देने का business purpose, cloud object key naming rule, planned delete date और reviewer checklist। raw CSV को email attachment बनाकर भेजने या shared bucket में डालने के बजाय team पहले local check चलाती है और manifest बनाती है। manifest planned files, delete date और review status बताता है, पर guest names नहीं दिखाता।

official sources जरूरी हैं क्योंकि workflow coding agent और cloud storage के बीच है। Claude Code permissions के लिए Anthropic की settings और permissions documentation देखें। storage design के लिए AWS S3 security best practices और Google Cloud Storage signed URLs पढ़ें। उनसे short expiry, least privilege और access review को checklist में बदला जा सकता है।

flowchart TD
  A[booking CSV local रखें] --> B[Claude Code columns और values जांचे]
  B --> C[object key और consent जांचे]
  C --> D[redacted manifest बनाएं]
  D --> E[इंसान purpose और vendor scope approve करे]
  E --> F[approval के बाद upload]

पास के विषय travel agency workflow और tourism cloud image metadata में हैं। यह लेख बीच की समस्या पर है: booking CSV को external sharing में देने से पहले mistake रोकना।

Claude Code का दायरा और इंसान का निर्णय

Claude Code repeatable input contract जांच में उपयोगी है। missing columns, checkout date का checkin से पहले होना, nonnumeric amount, yes न होने वाला consent, email जैसा object key और review वाली rows वह पकड़ सकता है। वह booking ID, object key, checkin, checkout, delete date और reviewer flag वाला manifest भी बना सकता है।

इंसान handoff की suitability तय करते हैं। manager को देखना होगा कि guest को कौन सा explanation दिया गया, vendor contract storage और subprocessors cover करता है या नहीं, free-text requests देना जरूरी है या नहीं, health, religion, family status या accessibility जैसी sensitive information आई है या नहीं, और vendor को row-level data चाहिए या aggregate report काफी है। Claude Code output review evidence है, legal conclusion या privacy approval नहीं।

safe pattern यह है कि preflight stage में Claude Code को upload credentials न दें। read-only local folder और fictional या redacted sample से शुरू करें। upload command, cloud credentials, signed URL creation और permission change को अलग human-approved step में रखें। deny rules और narrow working directory accidental reads और unplanned commands घटाते हैं।

तीन उपयोग मामले

उपयोग मामला 1: OTA booking export में missing columns ढूंढना

Input: booking ID, guest name, email, checkin, checkout, amount, consent और object key वाला CSV। OTA online travel agency है; कई channels वाले hotels में column names और date formats बदलते रहते हैं।

Output: missing columns, empty values, invalid dates, reversed stay dates और nonnumeric amounts की table। owner re-export, local fixture correction या row exclusion चुन सकता है।

मानव जांच: हर booking channel का permitted purpose समान है या नहीं देखें। stay instructions की consent marketing email, analysis या vendor processing की consent नहीं है।

उपयोग मामला 2: object keys से personal data हटाना

Input: hotel-a/2026-08/[email protected] जैसे candidate keys, guest names, emails और phones। object key storage-side file identifier है, path जैसा।

Output: email, phone-like string या name fragment वाली keys flag होंगी। safe key hotel-a/2026-08/booking-BK001.csv जैसी होगी।

मानव जांच: booking ID vendor को देना सुरक्षित है या नहीं देखें। अगर ID से PMS में guest मिल सकता है, तो अलग handoff ID चाहिए।

उपयोग मामला 3: vendor handoff manifest बनाना

Input: checked CSV, business purpose, deletion date, vendor name और approval checklist।

Output: redacted manifest, delete date, review status और unresolved error count। यह CSV body नहीं, upload approve करने की ledger है।

मानव जांच: भेजने से पहले vendor contract, purpose, retention, support contact और escalation route देखें। यह भी देखें कि vendor को सभी rows चाहिए या summary report।

copy-paste prompt

Hotel booking CSV को cloud handoff से पहले preflight reviewer की तरह जांचें।

Goal:
CSV, object keys, consent field और delete date जांचकर ऐसा manifest बनाएं जिसे upload से पहले इंसान approve कर सके।

Input:
- CSV column names:
- Booking CSV sample:
- Business purpose:
- Vendor:
- Delete date:
- Object key naming rule:
- Human approval criteria:

Output:
1. Missing columns और invalid values
2. object keys में personal data जैसा कुछ है या नहीं
3. missing consent rows
4. redacted handoff manifest
5. human judgment वाली pending items
6. pre-upload checklist

Constraints:
- real cloud service से connect न करें
- examples में personal data न रखें
- legal conclusions न दें
- generated artifact में ClaudeCodeLab, /training/, या site-owned CTA न डालें

executable check code

अगर save करना हो तो अपने repository में tools/hotel-booking-handoff-preflight.mjs path रखें। इसका मतलब यह नहीं कि इस repository में helper file मौजूद है। code केवल fixed fixture पढ़ता है; cloud SDK, CLI, API, credential या network request नहीं करता।

const requiredColumns = [
  "booking_id",
  "guest_name",
  "email",
  "checkin",
  "checkout",
  "amount_jpy",
  "consent",
  "object_key"
];

const bookingCsv = `booking_id,guest_name,email,checkin,checkout,amount_jpy,consent,object_key
BK001,Aoi Sato,[email protected],2026-09-01,2026-09-03,42000,yes,hotel-a/2026-09/booking-BK001.csv
BK002,Ren Mori,[email protected],2026-09-05,2026-09-04,31000,yes,hotel-a/2026-09/booking-BK002.csv
BK003,Mika Ito,[email protected],2026-09-08,2026-09-10,not-a-number,no,hotel-a/2026-09/[email protected]`;

function parseCsv(text) {
  const [headerLine, ...rows] = text.trim().split("\n");
  const headers = headerLine.split(",");
  return rows.map((line) => {
    const values = line.split(",");
    return Object.fromEntries(headers.map((header, index) => [header, values[index] ?? ""]));
  });
}

function isIsoDate(value) {
  return /^\d{4}-\d{2}-\d{2}$/.test(value) && !Number.isNaN(Date.parse(value));
}

function validateRows(rows) {
  const errors = [];
  const manifest = [];

  for (const [index, row] of rows.entries()) {
    for (const column of requiredColumns) {
      if (!(column in row) || row[column].trim() === "") {
        errors.push(`row ${index + 1}: missing ${column}`);
      }
    }

    if (isIsoDate(row.checkin) && isIsoDate(row.checkout) && row.checkin >= row.checkout) {
      errors.push(`row ${index + 1}: checkout must be after checkin`);
    }

    if (!Number.isFinite(Number(row.amount_jpy))) {
      errors.push(`row ${index + 1}: amount_jpy must be numeric`);
    }

    if (row.consent !== "yes") {
      errors.push(`row ${index + 1}: consent must be yes before handoff`);
    }

    const hasPersonalKeyPattern = /@|(?:^|[^\d])(?:\+?\d{2,}[- ]\d{2,}[- ]\d{3,})(?:[^\d]|$)/.test(row.object_key);
    if (hasPersonalKeyPattern || row.object_key.includes(row.guest_name.split(" ")[0].toLowerCase())) {
      errors.push(`row ${index + 1}: object_key may contain personal data`);
    }

    manifest.push({
      booking_id: row.booking_id,
      object_key: row.object_key,
      checkin: row.checkin,
      checkout: row.checkout,
      delete_after: "2026-10-31",
      reviewer_required: true
    });
  }

  return { errors, manifest };
}

const rows = parseCsv(bookingCsv);
const result = validateRows(rows);
console.log(JSON.stringify(result, null, 2));

यह code सिर्फ यह साबित करता है कि local fixture में columns, dates, amount, consent और object key patterns जांचे जा सकते हैं। यह cloud permissions, signed URL generation, upload success, vendor receipt, retention या deletion साबित नहीं करता। इन boundaries को मिलाने से team “local checked” को “safely shared” समझ लेती है।

Pitfall: कारण और सुधार

कारण 1: हर channel अलग column names देता है। एक export guest_name और दूसरा name देता है; एक arrival, दूसरा checkin देता है। mapping table के बिना Claude Code समानता assume न करे। सुधार: one-page column map बनाएं और conversion से पहले-बाद review करें।

कारण 2: object keys को बहुत readable बनाना। नाम, email, phone, room note या cancellation reason path में आ जाए तो file खोले बिना personal data दिखता है। सुधार: booking ID, month folder और neutral filename रखें; manifest में guest name न रखें।

कारण 3: consent को एक checkbox में मिलाना। stay instruction, promotional email, vendor processing, survey resend और multi-property analysis अलग purposes हैं। सुधार: purpose-wise consent columns बनाएं और unauthorized rows रोकें।

कारण 4: upload success को safety मान लेना। upload success सिर्फ service द्वारा object accept होना साबित करता है। सुधार: local preflight, post-upload permission review और retention review अलग रखें।

छोटा ROI मापन

savings invent न करें। एक सप्ताह तक CSV re-export count, vendor rejection emails, upload से पहले fixed rows, approval minutes और missing consent से stopped rows दर्ज करें। इससे rework घटा या नहीं दिखेगा।

ROI को तुरंत revenue claim की तरह न देखें। इसे rework और risk reduction से देखें: minutes per handoff, rejected file correction minutes, approval time unresolved rows, और vendor से पहले पकड़ी गई issues। हर hotel का volume अलग है, इसलिए benchmark दावा नहीं किया गया।

सामान्य प्रश्न

Q. क्या real booking CSV सीधे Claude Code में डाल सकते हैं?

A. पहले minimum redacted sample से शुरू करें। production data चाहिए तो internal rules, contracts, permission boundaries, logging और retention पहले तय करें।

Q. क्या signed URL अपने आप safe है?

A. signed URL time और action limit कर सकता है, पर recipient, expiry, permissions और forwarding भी जरूरी हैं। official storage docs पढ़ें और short expiry तथा least privilege रखें।

Q. hotel कौन सा cloud चुने?

A. यह product comparison नहीं है। standard platform, audit logs, permission model, deletion operation और vendor receiving method के आधार पर चुनें।

Q. मदद कब लेनी चाहिए?

A. booking CSV को outsourcing, campaigns, analysis या multi-property sharing में इस्तेमाल करने से पहले। अगर staff हर सप्ताह वही checks discuss करता है, training और consultation इसे clear internal rule बना सकता है।

मैंने वास्तव में क्या जांचा

2026-08-21 को मैंने JavaScript code को node --input-type=module -e से executable रखा और confirm किया कि fixed fixture error list और manifest JSON देता है। यह syntax और local runtime check है। cloud authentication, signed URL creation, upload, permission changes, vendor receipt या deletion test नहीं किए गए।

मैंने heroImage के लिए /images/hero/hero-040.webp चुना, जो site/public/images/hero/hero-040.webp से मेल खाता है, और slug, frontmatter dates, internal links, CTA और official URLs जांचे। अगला practical step है real CSV नहीं, बल्कि तीन-row redacted sample बनाना और required columns तथा object key rule को hotel policy के अनुसार बदलना।

#claude-code #hotel #booking-csv #cloud #privacy
मुफ़्त

मुफ़्त PDF: Claude Code cheatsheet

Email डालें और commands, review habits तथा safe workflow वाली एक-page PDF पाएँ.

हम आपका data सुरक्षित रखते हैं और spam नहीं भेजते.

Masa

लेखक के बारे में

Masa

Claude Code workflow और team adoption पर काम करने वाला engineer.