Track client reply SLAs in Gmail with OpenAI, Google Sheets, and Slack
Ready for 3.0What this workflow does
This AI workflow has 19 nodes and runs on a schedule (every hour). Along the way it connects Gmail, Google Sheets, OpenAI Chat Model and Slack.
How it runs
Trigger: On a schedule (every hour).
- Configure settings (Edit Fields (Set)): sets 7 fields: my_email, internal_domains, client_domains…
- Get recent inbox emails (Gmail): get many
- Get recent sent emails (Gmail): get many
- Find threads waiting on you (Code): runs custom JavaScript code
- Read Reply Log (Google Sheets): uses Google Sheets
- Compare with Reply Log (Code): runs custom JavaScript code
- Route by change (Switch): routes items into 3 branches
- Check if a reply is needed (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Mark as overdue (Google Sheets): update
- Close with response time (Google Sheets): update
…plus 5 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (12)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Gmail
n8n-nodes-base.gmail - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Switch
n8n-nodes-base.switch - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Quick overview This workflow runs hourly to find Gmail threads where a client is waiting for your reply, uses OpenAI to triage and summarize new overdue messages, logs SLA timing in Google Sheets, and posts new and escalated reminders to a Slack channel. How…