Build an Automated Email Drafting AI Agent with n8n and OpenAI
Press play on the video. It'll jump straight to the section that answers the
title above — no need to watch the full video.
A complete guide to setting up an n8n workflow: connect a Gmail trigger, write system prompts for OpenAI to analyze emails, and automatically create draft replies in Gmail.
Difference Between API Keys & ChatGPT Subscriptions
Paying for ChatGPT Plus (USD20/month) does not provide an API Key. API Keys must be obtained separately via the OpenAI Platform portal using a 'pay-as-you-go' system.
Use Draft Mode for Safety
Always use the 'Create Draft' function instead of 'Send Message' during the initial phases. This allows you to review the AI's response quality (human-in-the-loop) before the email is actually sent to the customer.
GPT-4o-mini Model
For simple tasks like replying to emails, the 'gpt-4o-mini' model is the best choice as it is extremely fast and much cheaper than the larger GPT-4 models.
More from Build & Deploy Autonomous AI Agents
View All
None
n8n
Analyzing Local Business Markets with n8n Google Maps Scraper
n8n
Google Maps
Connect n8n to Remote Server using SSH Node
n8n
Maintain Conversation History in n8n with Claude Code Session IDs
Claude
n8n
Customize agent branding and select AI model in Chatbase
Chatbase
ChatGPT
Automate Gmail Outreach with AI Agent and Zapier Integration
OpenAI Agent Builder
Zapier