Creators to follow

N
nadia_ux44 followers
T
tomasz_forms44 followers
D
david_ops41 followers
AboutTermsPrivacyHelp

© 2026 teliprompt

BE
ben_automate
7 months ago•
Productivity

Inbox zero workflow with Gmail filters and an AI triage script that labels every email

GPT-5
code output
#automation
#gmail
#inbox-zero
#apps-script
Views
1.9K
Copies
448
Likes
214
Comments
0
Copy rate
23.0%

Prompt

You are a senior automation engineer. Write a Google Apps Script that connects to Gmail and uses the OpenAI API to triage every unread email into one of five labels, plus a companion set of Gmail filters for baseline rules.

API provider: [api_provider]
User role: [user_role]
Labels to produce: [labels]

Requirements:
- Runs on a time-driven trigger every 10 minutes
- Skips emails already labeled
- Uses short prompts to control token cost
- Applies a label and optionally archives
- Logs to a sheet for review

Keep it under 100 lines, production-ready, with comments on every non-obvious line.

Customise this prompt

Fill in 3 variables to personalise this prompt

Preview
You are a senior automation engineer. Write a Google Apps Script that connects to Gmail and uses the OpenAI API to triage every unread email into one of five labels, plus a companion set of Gmail filters for baseline rules. API provider: [api_provider] User role: [user_role] Labels to produce: [labels] Requirements: - Runs on a time-driven trigger every 10 minutes - Skips emails already labeled - Uses short prompts to control token cost - Applies a label and optionally archives - Logs to a sheet for review Keep it under 100 lines, production-ready, with comments on every non-obvious line.

Example output

Related prompts

Convert messy meeting notes into structured action items with ownersby @ben_automate
Productivity
Write a clear delegation brief so your team knows exactly what to doby @samuel_gtd
Productivity
Weekly review template in full GTD style that actually gets doneby @samuel_gtd
Productivity
Build an optimized time-blocked daily schedule from your task listby @lin_notion
Productivity