Templates / AI-personalized multi-product email outreach with SMTP rotation (GPT-4o/o3-mini)

AI-personalized multi-product email outreach with SMTP rotation (GPT-4o/o3-mini)

Needs changes

by Badr ✓ · 888 views · created 2025-04-27 · Lead Nurturing, Multimodal AI

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 36 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenAI, OpenAI Chat Model and Gmail.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  2. Generate Google Maps Queries (OpenAI) (OpenAI): uses OpenAI
  3. Process AI-Generated Queries (Code): runs custom JavaScript code
  4. Loop Through Search Queries (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Wait: pauses before continuing
  6. Search Google Maps (HTTP Request): calls an HTTP API
  7. Extract URLs from Google Search (Code): runs custom JavaScript code
  8. Filter: keeps only the items that match a condition
  9. Check if URL Exists (If): checks a condition and branches into true / false
  10. Remove Duplicate URLs (Remove Duplicates): removes duplicate items

…plus 22 more steps. See the full node list below.

Services it uses

OpenAIOpenAI Chat ModelGmail

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Function (legacy) in Set Random Index: replace with Code node, mode 'Run Once for All Items'.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
Function (legacy)
Set Random Index
Code node, mode 'Run Once for All Items'

Nodes used (18)

From the author

Multi Product AI Email Automation with SMTP Rotation & No-Code Workflow(OpenAI GPT-4o or o3-mini) 🚀 Why This Workflow Matters - True Multi-Offer Campaigns Promote any mix of products, services or solutions in one run; no separate workflows needed. - SMTP…

Excerpt from Badr'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.