Automate Gmail tasks with Gemini AI assistant and contact management
--- Use cases are many: Automate Gmail tasks such as sending, replying, labeling, deleting, and fetching emails — all with AI assistance. Perfect for YouTubers managing viewer emails, sales teams handling inquiries, f...
Template notes
---
Use cases are many: Automate Gmail tasks such as sending, replying, labeling, deleting, and fetching emails — all with AI assistance. Perfect for YouTubers managing viewer emails, sales teams handling inquiries, freelancers responding to client requests, or professionals keeping their inbox organized.
---
Good to know
At time of writing, each Gemini request is billed per token. See [Gemini Pricing](https://ai.google.dev/pricing) for updated details. The workflow uses Gmail labels (e.g., youtube-viewers, sales-inquiry, meeting-request, potential-clients, collaboration-requests) for classification — make sure these exist in your Gmail account.
---
How it works
Chat Trigger: You interact with the agent via a chat interface (webhook). AI Agent: Gemini-powered assistant interprets your instructions (send, reply, label, delete, fetch emails). Email Actions: Based on your request, the assistant uses Gmail tools to act on emails (Send, Reply, Label, Delete, Get Many). Contact Lookup: If only a name is provided, the agent checks Google Sheets for the matching email address. If not found, it prompts you to add it. Memory: A buffer memory stores chat context so the assistant can maintain continuity across multiple interactions. Labeling: Emails can be auto-labeled for better organization (e.g., client inquiries, meeting requests).