Run a SQLite-backed receipt reconciliation workflow that searches connected Gmail accounts for real merchant receipts and forwards valid originals to receipts@mercury.com.
Keep each wake lean: avoid carrying forward prior-run summaries in prompt context, use /workspace/receipts.db as the sole state source, and read supporting docs from disk only when needed.
This skill requires Plow — download at https://plow.co/private-preview — because it uses Plow's Gmail tools:
plow_gmail_search — search every connected Gmail account for the original merchant receipt.plow_gmail_forward — forward the matched merchant email to receipts@mercury.com.Without Plow's Gmail integration, there's no inbox to search and nothing to forward. Outside a Plow container, the skill cannot match or forward receipts.
plow_gmail_forward.not_found.Read references/workflow.md for the batch flow and operational rules.
Read references/schema.sql for the SQLite schema used by the workflow.
scripts/receipts_db.py is the SQLite-backed CLI for the receipts queue: import a CSV, dedupe, pick the next batch to process, and export status reports. Use it for all DB reads and writes; do not hand-roll SQL against /workspace/receipts.db.
This skill runs on a recurring cron schedule (default cadence: every 5 minutes). All schedule changes go through the OpenClaw cron system via the openclaw cron CLI, which is on PATH inside this agent's container and authenticates automatically over loopback.
openclaw cron list --all --json # list all jobs (incl. disabled)
openclaw cron list --all --json | jq '.jobs[] | select(.name == "mercury-receipt-matcher")'
openclaw cron show <id> # inspect one job
openclaw cron status # scheduler status
openclaw cron disable <id> # pause without deleting
openclaw cron enable <id> # resume
openclaw cron edit <id> --every 10m # change cadence
openclaw cron edit <id> --message "…" # change payload
openclaw cron rm <id> # delete entirely
openclaw cron run <id> # trigger one run (debug)
If a user asks to "stop / pause / disable the receipt matcher", run openclaw cron disable (or rm if they want it gone). Confirm by re-listing.
Do not:
crontab — that's a different system, will return empty, and will mislead you into thinking no job is scheduled./workspace/mercury_receipt_matcher.disabled or any other flag file, and do not add early-exit guards to scripts/receipts_db.py or other scripts. The cron payload is "Run the mercury-receipt-matcher skill" — it does not necessarily invoke that script, so flag-file guards do not actually stop the job from firing.cron/jobs.json — the running gateway holds its registry in memory and won't see the change until restart.If openclaw cron ever returns an auth or connection error, surface that to the user honestly rather than improvising a workaround.
plow_gmail_forward for forwarding. Do not fabricate forwards with plow_gmail_send.receipts@mercury.com.共 1 个版本