Send a text to yourself from Google Sheets

Yes. Homing Pigeon (homingpigeon.dev) lets a short Apps Script in your spreadsheet text your phone when a cell goes over the number you pick, checked on a timer. Your key stays in Script Properties, out of the cells and the code, and your coding agent can write the script for your sheet.

What to tell your agent

Use Homing Pigeon to text me from my Google Sheet when the total in B2 goes over 2000.

Your agent asks for your number, you read back the six-digit code, and it does the rest.

How it works in code

In your sheet, open Extensions, Apps Script, and replace what is in the editor with this. Use your own sheet name, cell and limit:

const SHEET = "Budget";
const CELL = "B2";
const LIMIT = 2000;

function checkCell() {
  const range = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(SHEET).getRange(CELL);
  const value = range.getValue();
  if (typeof value !== "number" || value <= LIMIT) return;

  const today = Utilities.formatDate(new Date(), Session.getScriptTimeZone(), "yyyy-MM-dd");
  textMe(`${CELL} on ${SHEET} is ${range.getDisplayValue()}, over your limit of ${LIMIT}.`, `${CELL}-over-${LIMIT}-${today}`);
}

function textMe(message, idempotencyKey) {
  const key = PropertiesService.getScriptProperties().getProperty("HOMINGPIGEON_API_KEY");
  UrlFetchApp.fetch("https://homingpigeon.dev/v1/send", {
    method: "post",
    contentType: "application/json",
    headers: { Authorization: `Bearer ${key}` },
    payload: JSON.stringify({ message, idempotency_key: idempotencyKey })
  });
}

Paste this below it. Pick createTrigger in the function menu at the top of the editor and click Run, once. Google asks you to authorize the script the first time, and from then on checkCell runs every hour:

function createTrigger() {
  ScriptApp.newTrigger("checkCell").timeBased().everyHours(1).create();
}

Good to know

  • Verify your phone first with npx -y homingpigeondev verify +15551234567, then again with the six-digit code it texts you. npx -y homingpigeondev key then prints your key.
  • In the Apps Script editor, open Project Settings, the gear icon in the left sidebar, and add a script property named HOMINGPIGEON_API_KEY with your key as its value. Anyone who can edit the sheet can open its script, so share edit access only with people you would trust with the key.
  • getValue reads the number behind the cell, so the check works on a formula too, such as a SUM of a column. The text uses getDisplayValue, so it shows the number as the sheet formats it, such as "B2 on Budget is $2,140.56, over your limit of 2000."
  • The date in the idempotency key means a cell that stays over the limit texts you once a day, not every hour. To hear when it falls below a number instead, change value <= LIMIT to value >= LIMIT, and "over" to "under" in both places.
  • An empty cell, or one holding text or an error, is skipped, so a half-filled sheet never texts you.
  • A timer catches changes that come from formulas, which edit triggers do not. An hourly trigger runs at some point within each hour. To check more often, use .everyMinutes(15) instead, which takes 1, 5, 10, 15 or 30. Run createTrigger only once, and see or delete triggers under Triggers, the clock icon in the left sidebar.
  • If a send fails, UrlFetchApp.fetch throws, and the run shows as failed under Executions in the left sidebar, with Homing Pigeon's error in the message.
  • Messages are limited to 480 characters and go only to the US mobile number you verified. Keep them plain, with no links. Delivery is not guaranteed, so treat each text as a heads-up.

Get started

Add Homing Pigeon to Claude Code, then ask for what you want:

claude mcp add homingpigeondev -- npx -y homingpigeondev mcp

You get 50 free texts every month, on US mobile numbers. See more use cases.