A robust automated email scheduling application built with n8n. It allows users to fetch inspirational quotes from the ZenQuotes API and send them automatically via Gmail on a daily schedule.
- n8n (Workflow Automation)
- Gmail API (OAuth2)
- ZenQuotes API
- JSON
# Clone the repository
git clone https://github.com/wayne2604/schedule-send-email.git
# Navigate to the directory
cd schedule-send-emailEnsure you have a local or cloud instance of n8n running. Import the Send a email.json file to get started.
- Schedule Trigger Automated triggers to run the workflow daily at a set time (default: 6:00 AM).
- Inspirational Quotes Fetches high-quality random quotes dynamically from the ZenQuotes API.
- Data Transformation Filters and prepares the quote and author properties using the Edit Fields node.
- Gmail Delivery Securely delivers emails using Google's OAuth2 authentication protocol.
The workflow follows a modular node-based architecture designed for reliability and ease of use:
- Time-Based Scheduling: Utilizes n8n's native
scheduleTriggerto manage automated execution intervals. - Dynamic Content Retrieval: Uses a GET request with
httpRequestto fetch fresh quote payloads in real-time. - Variable Mapping: Uses the
setnode to transform JSON structures into friendly, reusable workflow variables. - Mailing Integration: Integrates the
gmailnode to handle authenticated OAuth2 requests for sending email.
/
Send a email.json # Core n8n workflow definition
README.md # Project documentation and setup guide
Wayne github.com/wayne2604