Update sales CRM and tasks from Gmail with Google Gemini and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs on Gmail events. Along the way it connects Gmail, Google Gemini Chat Model, Google Sheets and Slack.
How it runs
Trigger: On Gmail events.
- Extract Deal Update with Gemini (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Deal Parser
- Shape Deal Update (Code): runs custom JavaScript code
- Update CRM Row (Google Sheets): append or update
- Log Next Action (Google Sheets): append
- Draft Follow-up Reply (Gmail): work with draft
- Route by Deal Risk (Switch): routes items into 2 branches
- Alert Deal at Risk (Slack): uses Slack
- Announce Closed Won (Slack): uses Slack
- Mark Email Processed (Gmail): mark as read
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack
From the author
Quick Overview This workflow monitors unread Gmail messages labeled “sales”, uses Google Gemini to extract structured deal updates and a suggested reply, writes the deal and next action to Google Sheets, drafts a follow-up email in the original thread, and…