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 70 sightings filed under Automation on Agent Sightings (number 63 by interest), and one of 259 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.
Built an AI agent? Feature your agent on Agent Sightings, free submission or a featured spot.
Browse more like this
Related sightings
- Use Claude Code in a commercial real estate business
- EnergySage used HubSpot Agent CLI to consolidate 504 compliance tickets into 150 in under a day
- Grupo Bimbo uses Copilot Studio
- Gelato embeds thousands of CrewAI agents to map product catalogs and onboard carriers
- Book the best-priced flight and later refund it
- A contractor's personal Claude Code agent allegedly ran inside a secure Pentagon system for two months