Skip to main content

Put 120 monthly follower checks on a script; Grok Bot reviews on Friday

XXPasdawan | AI agents (@sboudis)2026-11-29

Content and writingSource read in fullRead first

Previous case: A cheap checker outside Grok Bot wakes a webhook routine only when there is work

Overview

The author tracks daily follower counts on LinkedIn, Instagram, X, and TikTok, puts about 120 monthly checks on a script, and keeps Grok Bot for a Friday review that needs interpretation.

Workflow

Trigger: The author tracks followers on four platforms and wants the model used only when a change needs interpretation. The author says LinkedIn, Instagram, X, and TikTok are checked every day. A separate model run for every platform check would turn that calendar into 120 runs in a 30-day month. A script now collects the counts and feeds a private dashboard every day, and the author gets one summary each Friday; the daily collection runs without an AI model (author's claim, not reproduced). This article is the next cut after the already catalogued case x-sboudis-webhook-wake-routines, which moved the clock out of Grok Bot and woke an agent when there was work; this write-up does not retell that method. The eight prompts, three worked examples, and seven-day plan below are the method the author shows for building that split. The worked examples use sample inputs.

By hand: Split the lookup from the review. Tracking followers hides two jobs: one produces a record, and the other helps decide which change deserves attention. The author suggests writing the lookup as a sentence with a finish line, such as saving today's verified count for each platform or recording that the reading is missing, and writing the review as a separate sentence with a reader and a decision. If a sentence can be turned into exact rules and tested by hand, hand that job to a script. If the review only needs to print the numbers in a readable table, use a template. The first suggested prompt, to paste into the main Grok Bot, is:

Review YOUR_RECURRING_JOB for YOUR_READER. For every step, list the input, the rule or judgment required, and the expected output. Put exact lookups, arithmetic, and copying into a script specification. Put fixed formatting into a template specification. Write one review question that could justify a model call. If the question has no clear reader or decision, flag it for clarification. Work from the description only. Draft the plan without changing anything.

By hand: Count the wake-ups before arguing about the price of a wake-up. The author mentions running about 29 Grok Bot agents and, in the earlier article, watching routines pile up until a usage bar emptied. Here the next cut is that a count can arrive every day and still give the model no work to do. The arithmetic in the article is:

4 platforms × 1 check per platform per day × 30 days = 120 platform checks per 30-day month

Hypothetical design: 1 Grok Bot run per platform check 120 platform checks × 1 run per check = 120 model runs

The same 120 platform checks can be designed as 120 model runs, 30 model runs, or 0 model runs:

Separate calls: 4 daily model runs × 30 days = 120 model runs One daily batch: 1 daily model run × 30 days = 30 model runs Script collection: 0 daily model runs × 30 days = 0 model runs

All three designs still have 120 platform checks.

The author says those numbers describe the schedule. A bill estimate would need the usage associated with the reader's own runs and the terms of the plan. The author suggests opening the agent's info pane with Cmd+Shift+I, looking through its Routines list, counting how often a routine triggers, and keeping platform checks and model turns in separate columns. Look at Settings > Usage & Billing when reviewing usage, and keep a tally of the test runs, because an account-wide usage figure alone cannot tell what one workflow cost. One audit trick is to write the result of an idle run beside the trigger count. The second suggested prompt is:

Audit YOUR_ROUTINE_LIST for YOUR_DATE_RANGE. Use trigger frequencies and grouping only when supplied. For each job, show the number of checks and the number of model runs as separate columns. Mark unknowns. Flag any routine whose whole job can be written as exact rules, and show the arithmetic for a script-only scenario. Do not estimate prices or change routines. Return an audit draft.

By hand: Make Grok Bot defend the model call. The author's rule is that if the answer can be written as a rule and settled against the input, the scheduled step belongs in code. Underline verbs such as read, copy, subtract, and sort, and write the exact rule, including the condition that stops the calculation. A question such as which movement is worth investigating before Monday has a reader, a deadline, and a choice; a request for insights does not. Counts alone can establish an observed difference between dates. Connecting a change to a post needs evidence about posts. When the evidence ends, the draft needs to stop.

Bot: Worked example 1 (sample inputs, not a live account). Say a test fixture gives LinkedIn a reading of 100 on Monday and 100 on Tuesday, and Instagram has a valid Monday row and a missing Tuesday row. Ask Grok Bot to turn the distinction into test cases, with a delta requiring two valid, consecutive readings for the same platform. The expected output, as the author describes it, is a zero delta for LinkedIn and an unavailable delta for Instagram, with a missing status on the Instagram row. Then change the mock Instagram response to a valid zero: the status must become valid, and its delta must use Monday's known count. If it still shows missing, the script is treating zero like an empty value. The suggested prompt is:

Build a test matrix for YOUR_RULES using YOUR_SAMPLE_ROWS. Show the input rows and exact expected status and delta for an unchanged count, a valid zero, a missing input, a missing previous date, and an invalid value. Say which dates were compared. Flag rules that leave any expected result ambiguous. Return fixtures and assertions for local testing only.

By hand: Build the collector with Grok Bot, then let the script run. Build from the row backward, starting with one approved source or a local fixture and one platform, then add the others. Choose the reporting day and the identity of a record: platform plus reporting date, plus an account alias if several accounts share a platform. Keep the actual observation time. Use a missing status for an unavailable reading and an error status for an input the script cannot accept. Preserve a valid zero. The author would keep the latest observation by timestamp and reject an older retry; a failed retry should leave a valid row intact. Compute deltas in the script from the eligible pair of observations and store the dates alongside the delta. Put expected dates in the dashboard view so a missing row (the collector tried and failed) can be told apart from the absence of a row (the job never started). The copyable record template is:

platform: YOUR_PLATFORM account_alias: YOUR_ACCOUNT_ALIAS reporting_date: YOUR_REPORTING_DATE observed_at: YOUR_OBSERVATION_TIMESTAMP_OR_NULL status: YOUR_STATUS (ok, missing, or error) count: YOUR_VALID_INTEGER_OR_NULL comparison_date: YOUR_PREVIOUS_REPORTING_DATE_OR_NULL delta: YOUR_CALCULATED_DELTA_OR_NULL

The suggested collector prompt is:

Draft a collector in YOUR_LANGUAGE using YOUR_LOCAL_FIXTURE. Follow YOUR_RECORD_TEMPLATE and define the day using YOUR_TIME_ZONE. Keep one row per platform, account alias, and reporting date. Preserve a valid zero. Record missing and invalid input explicitly. Keep the latest valid observation; log a failed retry separately. Calculate daily deltas only from valid consecutive dates. Return code and a local test command with expected rows. The collector must run without a model call. Leave scheduling, live connections, credentials, and delivery outside this draft.

Bot: Worked example 2 (sample inputs). Say a fixture has an Instagram count of 210 on Tuesday, a missed Wednesday, and a Thursday reading of 218, and a later retry for Thursday fails. Give Grok Bot those four events in order and ask it to review the collector's expected state after each, and to identify where an unconditional overwrite would lose the valid 218. The expected output, as the author describes it: Thursday stays at 218, with one Thursday row and a separate failed attempt; Wednesday's gap remains visible; a Thursday daily delta is unavailable; a last-valid comparison can show +8 with Tuesday and Thursday printed beside it. Then replay the successful Thursday event and confirm the row count does not increase, and reverse the order of a fresh and an older valid Thursday observation so the newer observation wins both times. The suggested prompt is:

Review YOUR_COLLECTOR_DRAFT against YOUR_RETRY_FIXTURE. List the stored rows and attempt outcomes after each event. Check that a missing day remains visible, that valid zero survives, and that a failed or older retry cannot overwrite a newer valid row. Show one counterexample per bug and the smallest proposed fix. Return a review draft. Do not run against live data.

The author's checklist before scheduling the collector: every observation can be traced to a platform, an account, and a date; a valid zero, a missing reading, and an invalid reading look different; a retry preserves the last valid observation and its failure still shows up; the dashboard marks gaps and displays the dates behind each reported delta; the collector can finish with zero Grok Bot runs, including on sample failures.

By hand: Give Grok Bot one good Friday question. First design a table with four rows, then compare a model draft against it. Pick the reporting window and define the endpoints before looking at the results; in a test week, use Monday and Friday for every platform, and keep a different window out of a ranking that assumes equal windows. Produce the packet in code, with an identifier, the two dates and counts, the calculated delta, and a note about gaps. If an endpoint is missing, leave the delta blank. Run a manual draft first. If a webhook-triggered Grok Bot routine is later used for the review, test the decision to invoke it outside the model. Read the draft with the table open. Stop at a draft while testing. During a trial, save the exact packet passed to Grok Bot; if a row is corrected later, rebuild the packet and treat the old draft as stale. The article counts summaries separately:

1 summary per Friday × 4 Fridays = 4 summaries 1 summary per Friday × 5 Fridays = 5 summaries Planning shorthand: about 4 summaries per month

If you request one model draft for each of 4 Fridays: 4 summaries × 1 model run per summary = 4 model runs If a template produces those 4 summaries: 0 model runs

Bot: Worked example 3 (sample inputs). In a sample week, X goes from 200 on Monday to 212 on Friday, with Wednesday missing; LinkedIn goes from 300 to 302 over the same dates; TikTok has no Friday endpoint; Instagram is unchanged. Ask Grok Bot which complete endpoint comparison to inspect first, to flag weak coverage, and to give one follow-up question, using only that packet. A defensible draft, as the author describes it, can lead with the +12 observed on X between Monday and Friday and mention the Wednesday gap; LinkedIn's +2 is supported over the same dates; for TikTok, the weekly delta is unavailable; the draft can suggest checking which posts appeared within the window without crediting a particular post. Reject a claim that X gained 12 on Wednesday, or that TikTok was flat, or that X is the fastest-growing account without checking the measure. The suggested prompt is:

Read YOUR_WEEKLY_PACKET for YOUR_READER and YOUR_DATE_RANGE. Answer YOUR_REVIEW_QUESTION in a short draft. Lead with one supported observation. For every comparison, include the platform, date pair, supplied delta, and row identifier. Mention gaps that matter. Do not rank unequal windows together. Keep causes unassigned and add one concrete follow-up question. Return a draft only. Do not send or publish it.

By hand: Know what the setup will not do. The script can only collect what the source makes available. If a source changes the definition of the number, a valid integer can still give a bad comparison. Two endpoints show the difference between two observations; a sentence about steady growth across a week with a gap in between goes beyond the evidence. The follower tracker gives dates to investigate; cause still needs evidence about what happened on those dates. Stress-test ordinary failures: no result, a repeated day, a missing Friday endpoint. Check the verbs in every conclusion. If a Friday draft never arrives, look separately for a record of the collector run, the prepared packet, and the deliberate request for a draft. The suggested claim-check prompt is:

Check YOUR_DRAFT against YOUR_WEEKLY_PACKET. Return each factual claim with its supporting row and dates, or mark it unsupported. Flag invented counts, ambiguous periods, silent gaps, and causal language. Propose a narrower sentence where the evidence allows it. Leave any missing evidence marked as missing. Return a review only.

The author then suggests a seven-day trial on one recurring job whose answer can be verified in one sitting, small enough that a wrong result can be explained by opening the rows.

  1. By hand: Day 1. Inventory the job with prompts 1 and 2. Write down its trigger count and expected output. Save a representative input.
  2. By hand: Day 2. Define the row and build the fixtures with prompt 3. Decide what happens on zero, a gap, or a retry before writing the collector.
  3. Bot: Day 3. Draft the collector with prompt 4. Run it on the fixtures and inspect the rows.
  4. Bot: Day 4. Run the retry review with prompt 5. Replay the same date twice. Check the dashboard or table against the stored output.
  5. By hand: Day 5. Prepare a sample weekly packet and fill the fixed template. Keep it open next to the Grok Bot draft requested with prompt 6.
  6. Bot: Day 6. Check the draft with prompt 7 and decide if it helped make a choice the template left open. Record what would change if it ran again.
  7. Bot: Day 7. Audit the trial with prompt 8. If the new workflow covers the job, retire the redundant scheduled check after the replacement is verified. Keep the weekly review only if the reader knows what is wanted from it. The suggested prompt is:

Review YOUR_TRIAL_LOG and YOUR_EXPECTED_OUTPUTS. Count checks, stored observations, missing readings, and model runs separately. Compare YOUR_TEMPLATE and YOUR_REVIEW_DRAFT against YOUR_REVIEW_QUESTION. Show which checks passed, which evidence is missing, and whether I can retire the old routine. Make a written recommendation only.

The author's final checklist: the reader can replay a sampled day and get the expected records without calling Grok Bot; can trace every number in the draft to a dated comparison; can explain when the review needs a model and when a template is enough; knows which scheduled check to retire once the replacement is verified; and has a clear way to tell a quiet week from a failed collector.

Check: The author describes a running tracker in which a script collects daily counts and Friday gets one summary, but the source does not give results from a measured seven-day trial of these eight prompts, and it gives no usage-bill figures. The 120-check and model-run counts are schedule arithmetic, including a hypothetical design of one model run per platform check (author's claim, not reproduced).

Key points and results

  • The author says a script now does the daily follower checks, and Grok Bot is called when a change needs a real look. LinkedIn, Instagram, X, and TikTok are checked every day, and Friday gets one summary; the daily collection runs without a model (author's claim, not reproduced).
  • Four daily platform checks make 120 checks in a 30-day month. A separate model run per check is a hypothetical design that would also be 120 model runs. Batching would be 30 daily model runs; a script that only counts uses zero model runs for those checks. The author says a bill estimate would need the reader's own usage and plan terms.
  • This article is the next cut after x-sboudis-webhook-wake-routines, which moved the clock out of Grok Bot and woke an agent when there was work. That earlier method is not retold here. The author mentions running about 29 Grok Bot agents (author's claim, not reproduced).
  • Eight sample prompts cover splitting the job, auditing wake-ups, turning rules into tests, drafting the collector, reviewing retries, writing the Friday draft, checking every claim, and reviewing a seven-day trial. Three worked examples use sample inputs: an unchanged LinkedIn count beside a missing Instagram row; a Thursday 218 that a failed retry must not overwrite; and a Friday packet with a Wednesday gap and a missing TikTok endpoint.
  • The seven-day plan and the two checklists are suggested trials, not a measured run reported with results. The short version is: define the row, test the collector, run daily checks in a script, build Friday's table from the same dated observations, and ask Grok Bot one question when the table leaves a decision open.

Source

Platform
X
Author
Pasdawan | AI agents (@sboudis)
Published
Categories
Content and writing

What this evidence label means

Source read in full

We read the source (post, article or transcript). That only means the original was read. It does not mean this site reproduced the author's results.

Read the editorial and evidence policy

Other cases in this scenario

This unofficial community project is independent of xAI. xAI has neither approved nor endorsed it. No sign-up. The methods and figures come from the original authors.