Templates / Automate sponsored deal email responses with Gmail and GPT-4

Automate sponsored deal email responses with Gmail and GPT-4

Ready for 3.0

by Pramod Rathoure ✓ · 481 views · created 2025-08-17 · AI Summarization, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 10 nodes and runs on Gmail events. Along the way it connects Gmail and OpenAI Chat Model.

How it runs

Trigger: On Gmail events.

  1. Edit Fields (Edit Fields (Set)): sets 3 fields: From, Subject, Email_Body
  2. AI Agent: runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
  3. If: checks a condition and branches into true / false
  4. AI Agent: runs an AI agent, with model: OpenAI Chat Model
  5. Gmail: reply

Services it uses

GmailOpenAI Chat Model

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) (Gmail Trigger).

Nodes used (8)

From the author

Automate Sponsored Deal Emails with n8n + AI 🚀 Managing inbound emails can be exhausting — especially when your inbox is flooded with sponsored deal requests that don’t always fit your brand. Manually reading, filtering, and politely declining each one eats…

Excerpt from Pramod Rathoure's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.