An n8n workflow automation that fetches random inspirational quotes and delivers them to your email inbox daily.
This workflow is built for n8n - a fair-code licensed workflow automation tool. n8n allows you to connect different services and automate repetitive tasks with a visual workflow editor.
This workflow consists of three main components:
- Manual Trigger - Starts the workflow execution
- HTTP Request - Fetches a random quote from ZenQuotes API
- Gmail Node - Sends the quote via email
- π§ Automatic email delivery of daily quotes
- π Uses ZenQuotes.io free API for inspirational quotes
- β‘ Simple manual trigger or can be scheduled
- π― Customizable email content and recipients
- n8n installation (self-hosted or cloud)
- Gmail account with OAuth2 credentials set up in n8n
- Copy the contents of
daily-quotes-workflow.json - In your n8n interface, go to Workflows > Import from File
- Paste the JSON content or upload the file
- Go to Credentials in your n8n instance
- Create a new Gmail OAuth2 credential
- Follow the authentication process with your Google account
- Update the credential ID in the "Send a message" node
- Email Recipient: Change
your-email@example.comto your desired email address - Subject Line: Modify the email subject if needed
- Message Content: Customize the email template in the Gmail node
- Open the workflow in n8n
- Click the "Execute Workflow" button
- The workflow will fetch a quote and send it to the configured email
To run this workflow daily:
- Replace the Manual Trigger with a Cron node
- Set the cron expression for daily execution (e.g.,
0 9 * * *for 9 AM daily) - Save and activate the workflow
This workflow uses the ZenQuotes.io API:
- Endpoint:
http://zenquotes.io/api/random - Method: GET
- Rate Limit: Free tier allows reasonable usage
- Response: Returns a random inspirational quote
Gmail Authentication Error
- Ensure OAuth2 credentials are properly configured
- Check if Gmail API is enabled in Google Cloud Console
- Verify the credential ID matches in the workflow
Quote Not Displaying
- Check if the API response structure matches the expected format
- The current setup expects the quote in
{{ $json.h }}field - You may need to adjust the message template based on API response
Workflow Not Triggering
- Verify the workflow is activated
- Check cron expression if using scheduled trigger
- Review execution history for error details
- π¨ Add HTML formatting to emails
- π Store quotes in a database for history
- π Add fallback quote sources
- π± Send quotes via other channels (Slack, Discord, etc.)
- π― Filter quotes by category or author
- π Send different quote types for different days
Feel free to fork this workflow and submit improvements! Some ideas for contributions:
- Better error handling
- Multiple quote sources
- Email template improvements
- Additional notification channels
This workflow is provided as-is for educational and personal use. Please respect the terms of service of the ZenQuotes.io API.
Note: Remember to keep your credentials secure and never commit them to version control. The provided JSON file has placeholder values for security.
