GenAiHub

Last checked 8 October 2026 — responded normally.

Draft and approve Gmail replies and follow-ups with OpenAI

Quick overview

Live
Open / InstallLast updated October 8, 2026

Description

Quick overview This workflow monitors your Gmail inbox for new unread messages, uses OpenAI to classify them and draft fact-based replies, and then emails the draft to an owner for approval before replying in the original Gmail thread. How it works Triggers every minute when a new unread email arrives in Gmail, excluding messages from yourself, no-reply senders, and promotional/social/update/forum categories. Sends the email content and your predefined business facts to OpenAI to categorize the message and generate a draft reply in the requested tone and language. Validates and safety-checks the AI output, flagging complaints, money-related topics, empty/overlong drafts, malformed responses, or amounts not present in your business facts. If the draft is safe, sends an approval email to the owner in Gmail and pauses up to 2 days for an approve/decline response. If approved, replies to the customer in the same Gmail thread using the suggested draft; if declined or timed out, no message is sent. If the draft is not safe, sends the owner a “needs your answer” email with the reason, the original message, and any suggested draft without replying to the customer. Setup Connect your Gmail OAuth2 credentials for the Gmail trigger and the Gmail send/reply steps. Add your OpenAI API credentials and confirm the chat model selection in the OpenAI step. Update “Your settings” with the owner email address, business facts allowed for drafting, desired tone, sign-off name, and maximum draft length. Review and adjust the Gmail search filter (query/labels/categories) to match which inbox messages should be included. Send a test email from another address and verify the approve/decline flow before activating the workflow. Requirements A Gmail account and an OpenAI API key. Customization To handle only some emails, add a label to the trigger filter (for example label:support), change the model in OpenAI model, and edit the rules in Classify and draft a reply and the checks in Check the draft. Additional info Nothing reaches a customer without the owner pressing Send this reply. Do not send, or no answer within 2 days, sends nothing. Money questions, complaints and drafts that fail the checks go to the owner to answer. An n8n automation workflow template by Thiago Cavalcanti.

Community Metrics

Views
0
Avg Rating
N/A
Ratings
0
Likes
0
Comments
—

Author

Thiago Cavalcanti

Platform

web

Pricing model

free

Categories

  • Automation
  • AI

Tags

  • n8n
  • workflow
  • gmail
  • code
  • basic-llm-chain
  • openai-chat-model

Capabilities

  • 4 nodes

Information

TypeWorkflow
Sourcen8n
AddedOctober 6, 2026

Comments

?

Others in the same category, ranked by how often they are opened.