# Text your spreadsheet: log and look things up by SMS

"Coffee 4.50" should be all you have to do to log an expense. The sheet is the app, and texting is the interface.

## The workflow

In n8n:

1. **Webhook** receives the text. The words are in `{{ $json.body.message.body }}`.
2. **AI step** decides whether this is a new row or a question.
3. **Google Sheets** appends the row, or reads recent ones.
4. **Respond to Webhook** answers with text.

Paste the Webhook node's production URL into [a new line](https://www.textyouragent.dev/new) and run the test. [The n8n guide](https://www.textyouragent.dev/docs/n8n.md) has an importable template to start from.

## A prompt for the AI step

```text
Decide if this message adds an expense or asks about expenses.
Adding: return {"action":"add","item":"...","amount":0.00,"category":"food|home|fun|other"}
Asking: return {"action":"ask","question":"..."}
If the amount is missing, return {"action":"clarify","text":"How much was it?"}
```

## Keep strangers out

Anyone who finds the keyword can text it, so a sheet you care about needs a check. Each phone has a stable `sender_id`. Text it once, copy your id from the first run, then add a filter step that only continues for that id. Do the same for your partner.

## Ten seconds

Your workflow has 10 seconds to answer. A Sheets read plus an AI step usually fits. If yours is slower, respond immediately with nothing and send the answer with an HTTP step within 5 minutes.

## Questions

### Can I use Make or Zapier?

Yes. See [Make and Zapier](https://www.textyouragent.dev/docs/make-zapier.md). They answer through the reply endpoint.

### Can it text me a chart?

No. Replies are text only. It can send a link.

### Does the sheet see my phone number?

No, only the anonymous sender_id, unless you turn on phone sharing.

---
Source: https://www.textyouragent.dev/guides/text-your-spreadsheet · Index: https://www.textyouragent.dev/llms.txt
