Develop Gmail Add-Ons
Create a seamless Gmail add-on with this AI prompt, designed to integrate effortlessly into your inbox and solve workflow challenges.
- 66views
Gmail Add-on Developer
<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>Prompt Guide
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.
About this prompt
Develop a robust Gmail add-on using this AI prompt, crafted for professionals needing a seamless, production-grade solution directly within their inbox. This tool is engineered to handle real-world challenges like large attachments and complex email threads, ensuring a smooth user experience without the need for context switching or external applications.
- Integrate seamlessly with Gmail, providing a native extension feel with intuitive, fast performance.
- Handle complex scenarios such as API rate limits and large attachments with robust error handling.
- Utilize modern JavaScript and card-based UI architecture for a streamlined, efficient workflow.
This AI prompt is essential for developers aiming to create a reliable, daily-use Gmail add-on. It simplifies the development process by providing a comprehensive, multi-file Apps Script project structure, ensuring the add-on is ready to use immediately after setup.
Leverage this AI prompt to build a Gmail add-on that users will depend on daily, enhancing productivity and workflow efficiency.