Build a WhatsApp Sales Inbox in Google Sheets (Apps Script + GPT-4o-mini) A developer built a WhatsApp sales inbox in Google Sheets using Apps Script and GPT-4o-mini, solving the problem of multiple sales reps chasing the same lead. The system logs messages, scores buying intent via AI, and locks leads to one rep for 15 minutes. The entire solution runs on about 80 lines of Apps Script code. Last month a client's two sales reps both spent an hour chasing the same WhatsApp lead. Neither closed it — the customer felt double-teamed and went quiet. Their "system" was one shared WhatsApp login and a lot of hope. I rebuilt it as a Google Sheets sales inbox: every WhatsApp message lands in a sheet, gets an AI buying-intent score, and gets locked to one rep for 15 minutes. This post is the whole build, with the code — about 80 lines of Apps Script you can copy and adapt. A shared WhatsApp number is fine until two people open it at once. There's no record of who's handling what, no way to see which leads are actually hot, and no lock to stop two reps replying to the same person. The usual fix — a $150/user/month CRM with a WhatsApp add-on — is overkill for a 3-person team and still doesn't score intent out of the box. You already have a shared database your team knows: a Google Sheet. Apps Script can be the backend. We need exactly three pieces — a webhook to catch messages, an LLM call to score them, and a lock to assign them. php flowchart LR A Customer WhatsApp msg -- B Provider webhook