π¦ ClawHub
Roty Tiffin Skill
by @horngtan
Parse "Roty input" messages from authorized Telegram users to create Roty tiffin orders via HTTPS POST without UI automation.
TERMINAL
clawhub install add-tiffin-order-roty-inputπ About This Skill
name: add-tiffin-order-roty-input description: "POST-only: Parse 'Roty input' messages and create Roty orders via HTTPS POST (no Playwright/UI automation)."
Add Tiffin Order - Roty Input (POST-only)
Trigger
Run when an inbound message contains the exact phrase "Roty input" (case-insensitive).Important
https://newdailyorderandcartcreation-818352713629.australia-southeast1.run.appExecution (MANDATORY)
When triggered, you MUST call the dispatcher script and use its output. Do NOT manually construct curl or JSON payloads.Run:
python3 /data/.openclaw/workspace/skills/add-tiffin-order-roty-input/scripts/handle_message.py
Rules:
Authorization (Telegram)
from.id is in:data/allowed_users.json under admins or vendors.
Behavior
1. Parse messy input into: - customerName - userAddress - deliveryDates (must resolve at least 1 date; otherwise ask a follow-up) - product selection + modifiers - specialRequests 2. Build payload in the exact API shape (see build_payload.py). 3. Send POST immediately (no "Dry-run vs Live" prompt), unless: - address missing, OR - no dates resolved, OR - product not matched In those cases, ask only for the missing piece. 4. On success: confirm with cartNo.Scripts
scripts/handle_message.pyscripts/parse_roty_input.pyscripts/match_product_and_modifiers.pyscripts/pricing_engine.pyscripts/build_payload.pyscripts/post_order.pydata/products_roty.jsondata/allowed_users.json