Install
openclaw skills install kura-booking使用 e-pai-ke.com (E排客) 進行餐廳預約管理、叫號查詢、登入及取消訂位。適用於藏壽司等使用 E排客 系統的餐廳。
openclaw skills install kura-booking本 Skill 用於自動化操作 E排客 (e-pai-ke.com) 進行餐廳的登入、尋找、查詢及預約管理。
e-pai-ke/notes.md。使用 browser 工具的 evaluate 行動注入 JS 進行登入,以避免表單填充失效:
const emailInput = document.querySelector('input[placeholder="電子郵件"]') || document.querySelector('input[type="text"]');
const passwordInput = document.querySelector('input[placeholder="密碼"]') || document.querySelector('input[type="password"]');
const loginButton = Array.from(document.querySelectorAll('button')).find(b => b.textContent.includes('登入')) || document.querySelector('.login_btn');
if (emailInput && passwordInput && loginButton) {
emailInput.value = 'YOUR_EMAIL';
passwordInput.value = 'YOUR_PASSWORD';
loginButton.click();
}
https://e-pai-ke.com/。查看店鋪頁面中「指定時間預約」與「預約未到候補」的「現在叫號」及「最快可候位時間」。
.res_btn)。https://e-pai-ke.com/reservationA。若內建 browser 工具不穩定或出現逾時,建議使用 Playwright 獨立腳本進行操作。
cancel_kura.js)const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch({ headless: true });
const context = await browser.newContext();
const page = await context.newPage();
// 1. 登入邏輯 (參考 e-pai-ke/notes.md)
// 2. 導航至 https://e-pai-ke.com/reservationA
// 3. 定位預約卡片並點擊「取消」與「確認取消」
await browser.close();
})();
locator 配合 hasText 進行複雜條件過濾,避免誤刪或找不到元素。page.screenshot() 捕捉失敗畫面。button 帶有 [disabled] 屬性。該時段尚未開放候位或候位名額已滿 或 每個帳號每次僅能預約一筆。