Skip to content

Gmail Summary Automation with n8n and Google GeminiImplementing Gmail summary automation using n8n and Google Gemini.

Notifications You must be signed in to change notification settings

akshaykarthicks/-Gmail-Summary-AI-Agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

📬 Gmail Summary Automation with n8n and Google Gemini

This workflow automates the process of summarizing recent Gmail messages using Google's Gemini language model via n8n.

🔁 Workflow Name

My workflow 2


🧩 Workflow Overview

  1. ⏰ Schedule Trigger Executes daily at 8 PM.

  2. 📥 Gmail Node Retrieves the latest 10 email snippets from your Gmail inbox.

  3. 📊 Aggregate Node Extracts and prepares the snippet fields from the emails.

  4. 🧠 Summary Agent Uses Google Gemini (PaLM) via LangChain to generate a concise summary of the email snippets.

  5. 📝 Gmail Draft Node Sends the generated summary as a draft email with the subject "Your Gmail Summary".


⚙️ Technologies Used

  • n8n
  • Gmail API (OAuth2)
  • LangChain Agent with Google Gemini
  • Google Gemini (PaLM)
  • Aggregate Node for data shaping

🧪 Setup Instructions

  1. Clone or import the workflow into your n8n instance.

  2. Configure the following credentials:

    • gmailOAuth2: Link to your Gmail account.
    • googlePalmApi: Access to Gemini API.
  3. Ensure the schedule is correct (default is 8 PM).

  4. Activate the workflow.


🛡️ Notes

  • Ensure required Gmail and Gemini API credentials are properly set up and authorized in your n8n instance.
  • This workflow creates drafts and does not auto-send emails.
  • Modify the prompt or output format if needed to suit your email summarization style.

About

Gmail Summary Automation with n8n and Google GeminiImplementing Gmail summary automation using n8n and Google Gemini.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published