कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

brek-ai

leo9 द्वारा

Search & Research
330clawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Integrate with Brek Partner Core Chat API for hotel-search and booking assistant flows.

विवरण

यह स्किल क्या करती है

Connects to the Brek Partner Core Chat API to run hotel-search and booking assistant flows. Manages session lifecycle per end user, routes typed events with idempotency keys, enforces anti-abuse call controls, and handles payment confirmation without touching raw card data.

Bundles idempotency enforcement, rate-limit backoff, circuit breaking, and PCI-safe payment routing into one skill, so you don't build those guardrails from scratch against the Brek API.

इसे कब इस्तेमाल करें

  • Starting a hotel-search session for a new traveler
  • Sending a booking event with a deterministic idempotency key to avoid duplicate reservations
  • Redirecting a user to a provider-hosted payment portal instead of collecting card details in chat
  • Cancelling an existing booking through the agent API
  • Throttling retries and opening a circuit breaker after repeated 5xx failures from Brek

उदाहरण वर्कफ़्लो

इनपुट

User asks: Find me a hotel in Paris for March 20-22 and book the cheapest option

एजेंट
  1. 1

    POST /sessions with stable actorId to create a new Brek chat session

  2. 2

    POST /events with a hotel-search query; read data.result.artifacts for the shortlist

  3. 3

    Present shortlist to user and collect their chosen option ID

  4. 4

    POST /events with kind=command_book_by_option_id and idempotencyKey=<partnerId>:<sessionId>:<kind>:<clientActionId>

  5. 5

    Return payment setup URL from artifacts; await tokenized paymentMethodId before sending action_confirm_payment_card

आउटपुट

Booking confirmation object with reservation metadata returned in data.result.artifacts

आवश्यकताएँ

  • BREK_BASE_URL environment variable
  • BREK_PARTNER_API_KEY (obtain from your internal Brek account owner or approved support channel)

इंस्टॉलेशन

clawhub install leo9/brek-ai

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक