/install brek-ai
Brek AI Partner Core Chat
Execute Brek through /api/partner/v1/core-chat.
Use this execution order:
- Create one session per end user (
POST /sessions) with a stableactor.actorId. - Reuse that session for all follow-up messages (
POST /events). - Read the latest state when needed (
GET /sessions/{sessionId}).
Do not share one session across different users.
Required runtime inputs
Require these inputs before calling Brek:
BREK_BASE_URLBREK_PARTNER_API_KEYactorId(stable partner-side end-user ID)workspaceIdor tenant context if your product uses workspacespartnerId(stable partner tenant ID for idempotency and billing grouping)clientActionIdfor each write-like event kind
If one required input is missing, stop and request it.
If BREK_PARTNER_API_KEY is missing:
- stop outbound calls
- ask the user to get the key from their internal owner or approved support channel
- never request secrets through unapproved channels
Call safety guardrails
Apply these guardrails before every upstream call:
- Enforce local budget limits from
references/call-control.md. - Attach a deterministic
idempotencyKeyfor all write-like event kinds. - Respect
429withretry-afterand exponential backoff. - Open a circuit breaker after repeated 5xx or timeout failures.
- Log
x-request-id,x-partner-id,x-ratelimit-limit, andx-ratelimit-remaining.
Never retry booking or payment-confirm actions without the same idempotencyKey.
Event-kind rules
When kind is one of:
command_book_by_option_idaction_book_optionaction_confirm_price_changeaction_confirm_payment_cardaction_cancel_booking
Always include idempotencyKey.
Generate idempotencyKey as:
\x3CpartnerId>:\x3CsessionId>:\x3Ckind>:\x3CclientActionId>
If partnerId is unavailable in your runtime, use stable tenant context (for example workspaceId) and keep the key format deterministic.
Payment handling
Handle payment in two layers:
- End-user card setup and confirmation in secure portal flow.
- Agent-to-agent usage billing and settlement.
Follow references/payment-and-billing.md for both layers.
Hard rules:
- Never request or store raw card number, CVV, or full PAN in chat.
- Accept only tokenized
paymentMethodIdfrom provider-hosted fields. - Require explicit user confirmation before
action_confirm_payment_cardand booking actions.
Response mapping
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)
Error handling
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 byretry-after.5xx: retry with backoff, then open breaker.
References
Read only what you need:
- API payload templates:
references/api-templates.md - Call-control and anti-abuse policy:
references/call-control.md - Payment and billing orchestration:
references/payment-and-billing.md
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install brek-ai - 安装完成后,直接呼叫该 Skill 的名称或使用
/brek-ai触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Agent Hotel Booking 是什么?
Integrate 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, sen... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 592 次。
如何安装 Agent Hotel Booking?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install brek-ai」即可一键安装,无需额外配置。
Agent Hotel Booking 是免费的吗?
是的,Agent Hotel Booking 完全免费(开源免费),可自由下载、安装和使用。
Agent Hotel Booking 支持哪些平台?
Agent Hotel Booking 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Agent Hotel Booking?
由 leo9(@leo9)开发并维护,当前版本 v1.0.2。