π« Draft Gmail reply drafts automatically with Google Gemini
β‘ 70 views Β· π« Ticket Management & Triage
Description
Quick overview
This workflow watches for new Gmail messages, uses Google Gemini to draft a concise reply based on the email content, and saves the response as a Gmail draft in the original thread for you to review before sending.
How it works
- Triggers every minute when a new email is received in Gmail.
- Sends the email subject, sender, and snippet to Google Gemini with instructions to write a professional reply under 100 words matching the senderβs tone.
- Creates a Gmail draft containing the generated reply and sets the subject to βRe:β while attaching it to the original email thread.
Setup
- Connect a Gmail OAuth2 credential and ensure the trigger has access to the inbox you want to monitor.
- Add a Google Gemini (PaLM) API credential for the Gemini chat model.
- Review the reply prompt and the Gmail trigger polling interval, then activate the workflow. No additional setup is required the workflow is ready to run as soon as both credentials are connected.
π Nodes Used
Gmail, Gmail Trigger, AI Agent, Basic LLM Chain, Structured Output Parser, Google Gemini Chat Model
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File