Grok Bot 定时任务省费技巧:先检查再唤醒
作者算账称 5 分钟一次的定时任务每月跑 8640 次多为空转,建议先做廉价变更检查、只在有变化时唤醒 Grok Bot,并给出可粘贴的重构提示词。
THIS IS THE CHEAPEST GROK BOT TRICK I'VE FOUND ALL YEAR i just ran the numbers on my routines and found the leak. the idea: stop paying the model to check the clock. let a cheap check look first, and only wake the bot when something actually changed. same jobs and way fewer runs, because the check holds the schedule and the model only sees real work. you just tell your routine this: "check first, run only on change" here's the math: → a 5-minute routine fires 8,640 times a month → most of those runs find nothing new → every empty run still bills you like a real one → $397 a month vs $33 hourly, 12x for the same job the model only shows up at three moments: → when the check sees a real change → when an event pings it: Slack, GitHub, a webhook → when a risky action needs your yes in the morning check looks. events ping. model works. the change check is the same move one layer down: the runs that need no thinking (nothing new, same file, same inbox) end before any model call, and the bot only wakes for the ones that matter the full tree > clock fires on your schedule > cheap change check runs first > no change: stop, almost zero cost > change found: full Grok Bot run > risky actions wait as drafts overnight > you log every run, the app keeps only the last 20 paste the tree and this prompt into Grok Bot ↓ "Rebuild my routines around this tree: 1. Show every routine with its schedule, runs per month and how many runs found no change. 2. Add a cheap change check before every full run, and stop the run when nothing changed. 3. Switch anything that can be event-driven from a clock to a Slack, GitHub or webhook trigger. 4. Keep risky actions as drafts between 22:00 and 08:00, and log every run to a CSV. Show me every change first. No edits until I say go." ↳ http://docs.x.ai/grok-bot/skills-routines-and-automations#trigger-work-from-an-event save it, your bill drops from $397 to $45.
这条是引用着另一条写的:x.com/gippp69/status/2109235458383216811