Install
openclaw skills install brek-aiIntegrate with Brek Partner Core Chat API for hotel-search and booking assistant flows. Use when an agent needs to create or continue Brek chat sessions, send user events safely, enforce anti-abuse call controls, and run payment setup or payment confirmation without collecting raw card data.
openclaw skills install brek-aiExecute Brek through /api/partner/v1/core-chat.
Use this execution order:
POST /sessions) with a stable actor.actorId.POST /events).GET /sessions/{sessionId}).Do not share one session across different users.
Require these inputs before calling Brek:
BREK_BASE_URLBREK_PARTNER_API_KEYactorId (stable partner-side end-user ID)workspaceId or tenant context if your product uses workspacespartnerId (stable partner tenant ID for idempotency and billing grouping)clientActionId for each write-like event kindIf one required input is missing, stop and request it.
If BREK_PARTNER_API_KEY is missing:
Apply these guardrails before every upstream call:
references/call-control.md.idempotencyKey for all write-like event kinds.429 with retry-after and exponential backoff.x-request-id, x-partner-id, x-ratelimit-limit, and x-ratelimit-remaining.Never retry booking or payment-confirm actions without the same idempotencyKey.
When kind is one of:
command_book_by_option_idaction_book_optionaction_confirm_price_changeaction_confirm_payment_cardaction_cancel_bookingAlways include idempotencyKey.
Generate idempotencyKey as:
<partnerId>:<sessionId>:<kind>:<clientActionId>If partnerId is unavailable in your runtime, use stable tenant context (for example workspaceId) and keep the key format deterministic.
Handle payment in two layers:
Follow references/payment-and-billing.md for both layers.
Hard rules:
paymentMethodId from provider-hosted fields.action_confirm_payment_card and booking actions.Map Brek response as:
data.result.status -> state machine key for UI and orchestrationdata.result.message.text -> user-visible assistant textdata.result.artifacts -> structured payload (shortlist, payment setup URL, booking metadata)400: request validation failed. Fix payload.401/403: API key issue. Stop calls. Tell user to rotate or provision key through their internal owner or approved support channel.404: session not found or wrong tenant.409: actor/session mismatch. Recreate correct session.429: throttle locally and retry by retry-after.5xx: retry with backoff, then open breaker.Read only what you need:
references/api-templates.mdreferences/call-control.mdreferences/payment-and-billing.md