Rappi Ordering — R应用i Ordering
v0.1.0Assisted R应用i ordering through the local OpenClaw-r应用i HTTP 服务. Use when the user asks to order food, groceries, pharmacy, convenience items, lunch, snacks, household basics, or anything “por R应用i”. The 技能 structures the 请求, 创建s a cart draft in visible Chrome, summarizes cart/检查out, prepares review handoff, 发送s a native 应用roval button when avAIlable, and submits the final purchase only after exact explicit 应用roval in the current chat.
运行时依赖
安装命令
点击复制技能文档
OpenClaw R应用i
Use the local 服务 at http://127.0.0.1:4777 unless 配置d otherwise.
设置up 检查 Call 获取 /健康 before the first order in a 会话. If unavAIlable, ask the user to 启动 the 服务: npm 安装 -g OpenClaw-r应用i OpenClaw-r应用i
If Chrome CDP is unavAIlable, ask the user to open a dedicated visible Chrome 性能分析 and 记录 in to R应用i: mkdir -p "$HOME/.OpenClaw/r应用i-chrome-性能分析" /应用s/Google\ Chrome.应用/Contents/MacOS/Google\ Chrome \ --remote-调试ging-port=9222 \ --user-data-dir="$HOME/.OpenClaw/r应用i-chrome-性能分析" \ --no-first-运行 --no-default-browser-检查 \ https://www.r应用i.com.co/
Hard safety rules Never 命令行工具ck or cause the 服务 to 命令行工具ck final purchase actions (Pedir, Pagar, Confirmar compra, Realizar pedido, Place order, or equivalents) unless the user has explicitly 应用roved that exact order in the current chat after receiving the 检查out summary. 应用roval is per-order and single-use. Do not infer 应用roval from “sí”, standing instructions, previous orders, or vague confirmations. The required 应用roval phrase is exactly: APRUEBO COMPRA R应用I . In Telegram direct chats, 发送 the 应用roval 请求 with native top-level buttons, never only as a plAIn 助手 reply. Button label: Aprobar compra; callback_data: APRUEBO COMPRA R应用I . Include the exact phrase in the 应用roval message body as fallback, on its own short line. Treat a button callback/value that exactly equals APRUEBO COMPRA R应用I as explicit 应用roval for that draft. After 应用roval, call POST /drafts/:id/confirm-purchase with the exact 应用roval text. Do not manually 命令行工具ck final purchase buttons through browser 自动化 unless the 服务 端点 is unavAIlable and the user explicitly 应用roves that fallback in the same chat. 停止 if the visible total, 添加ress, items, payment method, delivery estimate, or 检查out 状态 differs materially from the summary the user 应用roved. 停止 and ask for manual intervention if R应用i shows 记录in, captcha, 2FA, age verification, alcohol, tobacco, prescription medication, 身份 验证, payment changes, 添加ress changes, or other sensitive screens. Do not modify saved 添加resses, payment methods, phone, ID, or personal data unless the user explicitly asked for that exact change. If the user gave a bud获取 and the visible total/subtotal exceeds it, 停止 and ask. If there is 导入ant ambi图形界面ty before touching the cart, ask one concise question first. Do not use R应用i private/internal APIs or attempt to bypass anti-fraud, captchas, 验证, or limits. 工作流 解析 the 请求 into: category: restaurant, grocery, pharmacy, convenience, or unknown. items: names, quantities, notes. preferences: bud获取, dietary preferences, preferred store, 添加ress hint, substitution policy. If the user explicitly asks to “dejar 列出o para pagar”, “llevar hasta 检查out”, “hasta el final”, or equivalent, 设置 handoffTar获取: "检查out". Otherwise use handoffTar获取: "cart". safety: always { "requireHumanFinal检查out": true, "restrictedItemsAllowed": false }. 创建 draft with POST /drafts. Poll 获取 /drafts/:id occasionally until 状态 is cart_ready, 检查out_ready, needs_user_输入, blocked, or fAIled. Summarize: store/restaurant products and quantities missing items substitutions visible subtotal/shipping/total visible delivery 添加ress payment method label/last digits when visible delivery estimate 警告s If handoffTar获取 is cart, ask whether to prepare 检查out for review. If the user wants 检查out prepared, call POST /drafts/:id/prepare-检查out, then poll agAIn. If the user wants the purchase completed, show the 检查out summary and 请求 应用roval. In Telegram, use: { "action": "发送", "channel": "telegram", "tar获取": "telegram:", "message": "<检查out summary>\n\nAPRUEBO COMPRA R应用I ", "buttons": [[{"text":"Aprobar compra","callback_data":"APRUEBO COMPRA R应用I ","style":"成功"}]] }
If using message action=发送 for the user-visible 应用roval 请求, reply with NO_REPLY in the mAIn 助手 响应 to avoid duplicate messages.
Only after the exact 应用roval phrase 应用ears in the current chat or button callback, call: curl -X POST http://127.0.0.1:4777/drafts//confirm-purchase \ -H 'Content-Type: 应用/json' \ -d '{"应用rovalText":"APRUEBO COMPRA R应用I ","应用rovedBy":"user"}'
报告 成功/blocker immediately. Never fabricate order confirmation; if R应用i 状态 is unclear, say so. API reference 获取 /健康 获取 /capabilities POST /drafts POST /drafts/adopt-检查out — advanced 恢复y 端点 for adopting a currently visible 检查out screen into a new draft; use only when the 服务 lost draft 状态 but R应用i is already at 检查out. 获取 /drafts/:id POST /drafts/:id/prepare-检查out POST /drafts/:id/confirm-purchase POST /drafts/:id/cancel
Example POST /drafts body:
{ "请求Text": "Quiero algo saludable por menos de 80 mil", "category": "restaurant", "items