AppSheet Automation: Email Your Manager the Moment a Job Is Closed, No Code
Build your first AppSheet bot that sends an email every time someone closes a job, with the job name, time and who closed it. Builds on the "Close job" button from the previous article.
Kumron Boonget5 Dec 2026 · 4 min read
In Build an Action Button in AppSheet we made a button that sets a job to "Done" and records the time and the person in one tap. That leaves the question teams always ask next: "How does the manager know the job is closed?"
If someone has to open the app every hour to check, it isn't automated. In this article we'll build a bot in AppSheet Automation that sends an email the moment a job is closed, without writing a single line of code.
How automation works
An AppSheet bot has three parts. Think of them as "when → what → with what".
| Part | Meaning | In this example |
|---|---|---|
| Event | What makes the bot start | The status changes to "Done" |
| Process | The steps the bot runs (one or more) | One step: send an email |
| Task | The work done in a step, such as sending an email or calling a webhook | Send an email |
What you need
The Jobs table from the previous article, with at least these columns:
| Column | Type | Purpose |
|---|---|---|
| JobName | Text | Job name |
| Status | Enum (Waiting, In progress, Done) | Job status |
| ClosedAt | DateTime | When the job was closed |
| ClosedBy | Who closed the job |
1. Create a new bot
- Open your app in the AppSheet editor
- In the left menu, click Automation, then the Bots tab
- Click + (New bot) and choose Create a new bot
- Give the bot a clear name, such as
Notify when job closed
Tip When you click New bot, you can type what you want to do and AppSheet suggests ready-made bots, such as "When Jobs record is updated, send an email". That works too, but here we'll build it step by step so every setting makes sense.
2. Set the event: run when the status becomes "Done"
Click Configure event and set:
| Setting | Value |
|---|---|
| Event name | Status changed to Done |
| Event source | Data change |
| Data change type | Updates (only) |
| Table | Jobs |
The most important setting is the Condition:
AND(
[_THISROW_BEFORE].[Status] <> "Done",
[_THISROW_AFTER].[Status] = "Done"
)[_THISROW_BEFORE]is the row before the edit[_THISROW_AFTER]is the row after the edit
Caution If you only use
[Status] = "Done", the bot emails again every time anyone edits a finished job, even just a note. Checking "wasn't Done before, is Done now" sends exactly one email, when the job is actually closed.
3. Add a step: send the email
- Under the event, in the process, click Add a step
- Name the step, for example
Email manager - Choose Run a task, then the Send an email task
- Set Email Type to Custom template so you can write your own subject and body
| Setting | Value |
|---|---|
| To | The manager's email, e.g. "boss@company.com" |
| Email Subject | Job closed: <<[JobName]>> |
| Email Body | See below |
Example email body:
<<[JobName]>> has been closed.
Closed by: <<[ClosedBy]>>
Time: <<TEXT([ClosedAt], "DD/MM/YYYY HH:MM")>>
Open the app for the details.<<[Column]>>inserts that row's value into the emailTEXT([ClosedAt], "DD/MM/YYYY HH:MM")formats the date so it is easy to read
Tip To email the person who requested the job instead, and your table has a column with their email (for example
RequestedBy), set To to[RequestedBy]. The bot then emails the right person for each job.
4. Save and test
- Click Save at the top right
- In the preview, open a job that isn't done and tap Close job
- Wait a moment, then check your inbox
If no email arrives, open the Automation monitor (under Manage → Monitor in the editor). It shows whether the bot ran and which step failed.
Bot not running? Check these 4 things
- Editing the sheet directly doesn't trigger the bot. Bots only run for changes made through the AppSheet app. Typing "Done" straight into Google Sheets sends nothing.
- The condition text doesn't match. If the app uses "Completed" but the condition says "Done", it never fires. The text must match exactly.
- Data change type isn't set to Updates. Closing a job edits an existing row; it doesn't add one.
- The app isn't deployed. While an app is still a prototype, sending email may be limited. Deploy the app before your team relies on it.
Going further: notify Telegram instead of email
If your team lives in chat rather than email, change the task from Send an email to Call a webhook and send the message to a Telegram bot. How to create the bot and find your chat ID is in Send Telegram alerts from Google Sheets.
| Setting | Value |
|---|---|
| Url | https://api.telegram.org/bot<TOKEN>/sendMessage |
| HTTP Verb | Post |
| HTTP Content Type | JSON |
| Body | See below |
{
"chat_id": "<CHAT_ID>",
"text": "✅ Job closed: <<[JobName]>> by <<[ClosedBy]>>"
}Caution The token in the URL is visible to everyone who can edit this app. If others co-edit the app, use a separate Telegram bot just for this, and if the token leaks, generate a new one in BotFather straight away.
Summary
This first bot uses Event → Process → Task, the same pattern behind every AppSheet automation. Once it clicks, you can build the next ones quickly, such as a morning summary of open jobs with a Schedule event, or a PDF job sheet attached to the email.
One last tip: keep conditions as narrow as possible. A bot that only emails when it matters keeps your team reading the alerts instead of deleting them unread.
Comments
No comments yet. Be the first to share your thoughts or ask a question.