360 Secure SkillHub
360 安全技能中心

CAI: book-flight-with-agent

核心功能:AI锁定机票后,通过CAI托管钱包完成支付,无需用户提供私钥;先核查余额,不足生成充值链接,用户确认收款方、金额等信息后执行转账,可查交易状态。典型场景:用户发出“帮我订机票并支付”“完成机票结账”等指令。需配置带pay或full权限的CAI_API_KEY,输入为支付指令,输出交易凭证与状态。

bernardtai
bernardtai
热度 23.80
最近更新 2026-05-27 14:57:21
分类:生活依赖:第三方 API应用场景:旅行

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add book-flight-with-agent
Metadata
name
book-flight-with-agent
description
Let your AI agent complete flight booking payments after you confirm payee and amount. Uses CAI custodial wallet (wallet_balances, transfer, deposit). Requires CAI_API_KEY with pay or full scope. Powered by CAI.com.

Book a flight with your agent (payment layer)

Your agent can search and hold a flight itinerary, but booking only completes when payment is settled. This skill routes that payment step through CAI so the agent does not ask you to paste private keys or open MetaMask mid-task.

When to Use

  • "Book this flight for me and pay"
  • "Complete the airline checkout"
  • "My agent found the fare — pay from my agent wallet"
  • "Finish flight payment after I confirm"

Task flow (agent-native)

  1. Agent finishes discovery (flight, price, payee instructions from airline or OTA).
  2. Check CAI First: get_identity or wallet_balances on the required chain/token.
  3. If balance is low → create_deposit_link; wait for user funding.
  4. User confirms full recipient, amount, chain, token (irreversible).
  5. resolve_transfer_recipient (for @cai.com) or explicit to_address → transfer (scope pay/full).
  6. Proof: transfer_status, wallet_activity_list.

Quick Setup

openclaw secrets set CAI_API_KEY "your_dashboard_api_key"

Canonical Reference