Email-triggered webhook wakes Grok Bot for new leads; personalized reply in 2 minutes
Overview
A local service business owner replaces Grok Bot inbox-polling Routines with a pipeline that forwards email to a Cloudflare Worker, classifies it with a cheap model, and wakes the right bot by webhook only when a worthwhile message lands.
Workflow
Trigger: Stop wasting Grok Bot usage on empty inbox scans. The author describes the typical Grok Bot email setup: a Routine runs every 5, 15, 30 or 60 minutes and checks the inbox, scanning all recent emails, including ones already answered, even when no new mail has arrived; at one check per 15 minutes that is 96 checks a day. The article also shows another user, Monte, complaining about Grok Bot usage in a screenshot that was not archived, so the quoted text itself is not stated in the source. The author's principle: you want the email coming to the bot, not the bot going to the email inbox.
- By hand: Forward the email from the inbox. Incoming mail is forwarded out of the inbox as an event, so an arriving message, not a timer, starts the work. The author lists support emails, deposits, bank notifications, leads, bookings, signing completions and receipts as the mail the author handles this way.
- By hand: A Cloudflare Worker catches the forwarded email. The Worker receives each forwarded message as the second stage of the author's four-step fix. The exact Worker code or configuration is not stated in the source.
- By hand: A cheap system-one model decides whether the email is worthwhile. Jev, a "System One" AI model developed by TypeSafe AI, is the decision maker: it decides what the email is and whether it is worthwhile to wake the bots. Routing can send each email "type" to the correct bot, for example receipts, payment notifications, refund requests and other money emails go to Accounting Bots, while spam, promo and phishing emails wake nothing.
- Bot: Worthwhile emails hit the Grok Bot(s) via webhook. Only a worthwhile message wakes the matching Grok Bot, which then acts on that single email. When someone submits a lead form on the author's local service business website, a bot wakes and a personalized email with quotes and next steps goes to that lead within 2 minutes (author's claim, not reproduced).
Check: The author says this exact setup runs the author's local service business and reports the 2-minute lead replies, but the source does not say how the author checked the result, and it gives no usage figures from before or after the switch.
Key points and results
- A timed inbox Routine runs even when nothing new arrived. One check every 15 minutes is 96 checks a day, and each scan looks at all recent emails, including already-answered ones; the author wants usage saved for high-priority tasks instead.
- The design rule: the email comes to the bot. The author decides which emails wake which bots and which emails never wake any bot, rather than bots checking the whole inbox on a timer.
- Reported result: lead replies within 2 minutes. A submitted lead form wakes a bot and a personalized email with quotes and next steps goes out within 2 minutes, while the author says competitors take 48 hours to reply to new leads (author's claim, not reproduced). This is the author's claim; the source gives no comparison figures.
- Cost: less than $5 a month for most businesses. Implementing it needs a Cloudflare account and a $5 Worker subscription, which the author contrasts with ripping through the whole Grok Bot usage allowance in a day.
- Closing advice: feed the article to your bots and let them build it. The author suggests starting with the Cloudflare account and subscription, feeding the article into your bots to see which emails matter most, and letting the Bot handle the heavy lifting of the setup; bots should wake when work needs doing, not on a timed routine.
- The source gives no usage numbers before or after the switch and no measured response-time comparison, and the embedded screenshots, including the Monte post, were not archived.
Contributions from others
Added by others (not the author)
- @xumisli (reply, https://x.com/xumisli/status/2125288862046159022) adds a safeguard for the automatic quote email: track each lead by a unique ID and check the send state before any retry, so a duplicate event cannot trigger a second email, and decide which email data each model actually needs.
Source
- Platform
- X
- Author
- Tyler Dooks
- Published
- Categories
- Mail and calendar, Limits
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.