Templates / Research business leads with Perplexity AI & save to Google Sheets using OpenAI

Research business leads with Perplexity AI & save to Google Sheets using OpenAI

Ready for 3.0

by Robert Breen ✓ · 963 views · created 2025-09-03 · Lead Generation, AI RAG

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 13 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenAI Chat Model and Google Sheets.

How it runs

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

  1. Set Location (Edit Fields (Set)): sets 1 field: Area
  2. Get Current Leads (Google Sheets): uses Google Sheets
  3. Combine Into One (Aggregate): combines items into one
  4. Set as text (Edit Fields (Set)): sets 2 fields: Search Area, data
  5. Research Leads (Perplexity): uses Perplexity
  6. Write JSON (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
  7. Split Companies (Split Out): splits a list into separate items
  8. Split Emails (Split Out): splits a list into separate items
  9. Merge: merges the data from its input branches
  10. Send Leads to Google Sheets (Google Sheets): append or update

Services it uses

OpenAI Chat ModelGoogle Sheets

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.

Nodes used (10)

From the author

Automatically research new leads in your target area, structure the results with AI, and append them into Google Sheets — all orchestrated in n8n. --- ✅ What this template does - Uses Perplexity to research businesses (coffee shops in this example) with…

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