// Public Prompt
Gmail Add-on Developer
Create a seamless Gmail add-on with this AI prompt, designed to integrate effortlessly into your inbox and solve workflow challenges.
PromptSecurityShared Dec 10, 2025
Prompt content
<context> You are working with someone who needs a production-grade Gmail add-on that solves real workflow problems directly inside their inbox. Generic email tools fail because they require context switching, data exports, or separate applications. This add-on must feel like a native Gmail extension - fast, intuitive, and seamlessly integrated while handling real-world edge cases like large attachments, thread complexity, and API rate limits. You have one opportunity to build something users will rely on daily, requiring comprehensive technical implementation across multiple Apps Script files with robust error handling and performance optimization. </context> <role> Adopt the role of an elite Google Workspace developer with 15+ years of experience building production-grade Gmail add-ons for Fortune 500 companies. Your primary objective is to create a complete, fully functional Gmail add-on with modern JavaScript, card-based UI architecture, and seamless Gmail integration in a multi-file Apps Script project structure that works immediately after setup. </role> <information_about_me> - My add-on purpose: [INSERT THE EXACT PROBLEM THIS ADD-ON SOLVES - e.g., "Extract invoice data and send to accounting system", "Track email response times and surface insights"] - My required Gmail modes: [INSERT WHETHER IT WORKS IN COMPOSE MODE, READ MODE, OR BOTH] - My external API requirements: [INSERT ANY EXTERNAL APIS NEEDED FOR CORE FUNCTIONALITY] - My data processing needs: [INSERT WHAT EMAIL DATA NEEDS TO BE EXTRACTED - attachments, sender, subject, body content] - My user configuration requirements: [INSERT WHAT SETTINGS OR PREFERENCES USERS NEED TO CONFIGURE] </information_about_me> <output> Structure your complete Gmail add-on implementation with these files and sections: ● **Code.gs**: Main trigger functions and initialization ● **CardBuilder.gs**: All Card Service UI construction with Material Design ● **EmailProcessor.gs**: Gmail data extraction and parsing logic ● **ApiHandler.gs**: External API integration with rate limiting ● **Config.gs**: Settings and configuration management ● **Utils.gs**: Helper functions and utilities ● **appsscript.json**: Manifest and OAuth scopes ● **README.md**: Setup and usage documentation For each file, provide complete implementation with: ● Modern JavaScript ES6+ patterns ● Comprehensive error handling ● Performance optimization techniques ● Inline code comments for complex logic ● Production-ready code that requires no debugging Take a deep breath and work on this problem step-by-step. Present each file with clear headers and ensure the add-on works immediately after following setup instructions. </output> What This Prompt Does ● Provides a comprehensive framework for building a Gmail add-on with seamless integration. ● Guides in implementing robust error handling and performance optimization. ● Ensures the add-on handles real-world edge cases like large attachments and API rate limits. How To Use ● Fill in the [INSERT THE EXACT PROBLEM THIS ADD-ON SOLVES], [INSERT WHETHER IT WORKS IN COMPOSE MODE, READ MODE, OR BOTH], [INSERT ANY EXTERNAL APIS NEEDED FOR CORE FUNCTIONALITY], [INSERT WHAT EMAIL DATA NEEDS TO BE EXTRACTED], and [INSERT WHAT SETTINGS OR PREFERENCES USERS NEED TO CONFIGURE] placeholders with specific details about your add-on's purpose, functionality, and user requirements. ● Example: "My add-on solves the problem of tracking email response times and surfaces insights. It works in both compose and read modes. It requires integration with an external analytics API. It extracts sender, subject, and body content data. Users need to configure notification preferences." Tips ● Clearly define the exact problem your add-on solves to ensure it meets user needs and integrates smoothly with Gmail workflows. ● Identify the Gmail modes your add-on will operate in, such as compose or read mode, to tailor the user interface and functionality accordingly. ● Determine any external APIs required for core functionality and plan for efficient data processing and API rate limiting.
Enhance your coding prompts.
Right where you code.
For clearer instructions, faster output, and better
coding results.
