Reply to customer emails with Gmail, OpenAI and Orvanta approvals
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs on Gmail events. Along the way it connects Gmail and OpenAI Chat Model. It also calls app.orvantahq.io over HTTP.
How it runs
Trigger: On Gmail events.
- Check If Real Customer (If): checks a condition and branches into true / false
- Draft Email Reply Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model
- Post to Orvanta Check API (HTTP Request): calls app.orvantahq.io (POST)
- Route by Orvanta Decision (Switch): routes items into 3 branches
- Send Gmail Reply (Gmail): reply
- Wait: pauses until webhook
- Post to Orvanta Log API (HTTP Request): calls app.orvantahq.io (POST)
- Check Approval Status (If): checks a condition and branches into true / false
- Send Approved Gmail Reply (Gmail): reply
Services it uses
Other OpenAI + Gmail templates (1,623)
HTTP calls to: app.orvantahq.io
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.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (When Customer Email Received).
Nodes used (9)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - HTTP Request
n8n-nodes-base.httpRequest - Switch
n8n-nodes-base.switch - Gmail
n8n-nodes-base.gmail - Wait
n8n-nodes-base.wait
From the author
Quick overview This workflow monitors unread Gmail messages, drafts a reply with OpenAI, checks the draft against Orvanta guardrails (with optional approval and a pause/deny control), and then replies in the original email thread while logging the final…