360 Secure SkillHub
360 安全技能中心

CAI: book-flight-with-agent

该技能负责航班预订流程中的付款环节:先查询 CAI 托管钱包的身份与余额,余额不足时生成充值链接等待用户注资,再在用户确认收款方、金额、链和代币后通过 CAI 执行转账,并用转账状态与钱包活动记录作为凭证。需要 CAI_API_KEY(pay 或 full scope),依赖 CAI 外部服务,不含航班搜索本身。

分类:生活
bernardtai
bernardtai
热度 21.32
最近更新 2026-05-27 14:57:21

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add bernardtai/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