An AI-driven email automation system that processes Gmail messages, performs intelligent actions, and ensures reliability with a fault-tolerant error handling workflow.
This project consists of two core workflows:
- MyWorkFlow.json → Handles email processing and automation
- ErrorFlow.json → Manages error handling, logging, retry, and alerts
Together, they form a scalable, event-driven automation system.
- AI-based email classification using OpenAI
- Automatic deletion of spam/transactional emails
- Smart routing of emails based on content
- Meeting scheduling via Google Calendar
- Scheduled workflows for inbox cleanup
- Centralized error handling workflow
- Logs errors for monitoring and debugging
- Automatic retry mechanism for failed executions
- Real-time alerts via Slack and Email
- Ensures fault-tolerant automation
Gmail Trigger → AI Processing → Routing → Action ↓ Error Handling Flow
- Automation: n8n
- AI: OpenAI API
- Email: Gmail API
- Scheduling: Google Calendar API
- Notifications: Slack API
GMAIL-AUTOMATION/ │── MyWorkFlow.json # Main automation workflow │── ErrorFlow.json # Error handling workflow │── LICENSE │── README.md
- Import
MyWorkFlow.jsoninto n8n - Import
ErrorFlow.jsoninto n8n - Configure credentials:
- Gmail API
- OpenAI API
- Slack (optional)
- Google Calendar
- Activate workflows
- Designed AI-powered automation pipelines
- Built event-driven workflows with real-time processing
- Implemented fault-tolerant systems with retries & logging
- Integrated multiple APIs into a unified workflow
- Add dashboard for monitoring logs
- Improve AI classification accuracy
- Add multi-user support
- Add analytics for email insights
This project is licensed under the MIT License.

