Draft Gmail reply drafts automatically with Google Gemini

Go to Workflow
0 views
Built by Kanishka Shrivastava Kanishka Shrivastava
Created on July 28, 2026

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 (5)

AI Agent
@n8n/n8n-nodes-langchain.agent
Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
Gmail
n8n-nodes-base.gmail
Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured