Pick a raffle winner from a Google Sheet
Claude Code selects a random row from a Google Sheet of giveaway submissions for a Slack community raffle.
- Agent or tool
- Claude Code
- Topic
- Automation
- Reported on
- Lenny's Newsletter
- Added
- 2026-10-15
Why it matters
Automation used to mean wiring up rigid rules. Agents can handle the messy, in-between steps that rules miss, which makes many more workflows worth automating. It is one of 19 sightings filed under Automation on Agent Sightings (number 12 by interest), and one of 164 involving Claude Code.
How you could try it
Here is a reusable prompt, written by us in our own words, that captures the task. Paste it into Claude Code or any similar agent and adjust the details to your situation.
Open this Google Sheet of raffle entries, pick one random valid row as the winner, and report the name and email. Exclude blank or duplicate rows.
Tip: Start small: run it once on a low-stakes example, read what the agent did, and only then let it run on real work.
Source
Read the original first-hand account on Lenny's Newsletter: https://www.lennysnewsletter.com/p/everyone-should-be-using-claude-code. Our summary is a paraphrase; details are in the source.