Buyma Order Automation
by @innoucon-blip
automate buyma order processing for regular daily runs and ad hoc order-range runs. use when chatgpt needs to access buyma in chrome, check or fill receipt m...
clawhub install buyma-order-automationπ About This Skill
name: buyma-order-automation description: automate buyma order processing for regular daily runs and ad hoc order-range runs. use when chatgpt needs to access buyma in chrome, check or fill receipt memo numbers, download or use a provided buyma csv, write the tmazon order workbook, enrich rows from prior workbook history, and send the result by naver mail before a deadline or after an ad hoc request. stop immediately and notify by telegram with file attachment on buyma, csv, or mail failure.
Overview
This skill supports two modes:
1. Regular daily draft creation
2. Ad hoc range creation
Core rules
Base file selection
Select the base order workbook in this order:
1. latest file in ~/.openclaw/workspace/buyma_order/orders/incoming/
2. latest file in ~/.openclaw/workspace/buyma_order/orders/current/
3. ~/.openclaw/workspace/buyma_order/templates/tmazonORDERLIST_template.xlsx
Output file naming
Always save output as:
tmazonORDERLISTYYMMDD_start-end.xlsx
Example:
tmazonORDERLIST260307_123450-123470.xlsx
Receipt memo numbering
Always check memo state for target orders.
See references/memo-rules.md.
Workflow
1. Determine run mode: regular daily or ad hoc range
2. Select base workbook
3. Access BUYMA in Chrome default profile
4. Check and input receipt memo numbers for target orders
5. Download shipping CSV (or use provided CSV fallback)
6. Parse CSV using scripts/parse_buyma_csv.py
7. Build draft workbook using scripts/build_order_sheet.py
8. Fill F using Chrome auto-translated Korean product names (browser placeholder step)
9. Enrich I/J/M from prior workbook history using scripts/enrich_from_history.py
10. Validate output using scripts/validate_output.py
11. Save output using scripts/compose_output_filename.py
12. Send by Naver Mail in Chrome (browser placeholder step)
13. Update state using scripts/update_state.py
14. On BUYMA/CSV/mail failure, stop immediately and notify via Telegram with file attachment if available
Browser placeholder steps
This package intentionally leaves browser-only steps as placeholders:
Use these references:
references/workflow.mdreferences/failure-rules.mdreferences/run-modes.mdScript entrypoints
scripts/select_base_file.pyscripts/parse_buyma_csv.pyscripts/build_order_sheet.pyscripts/enrich_from_history.pyscripts/validate_output.pyscripts/compose_output_filename.pyscripts/update_state.py